From f560b4469287da1390433e4677e44a43d3987510 Mon Sep 17 00:00:00 2001 From: Youyuan Wu Date: Sat, 18 Nov 2023 16:25:18 -0800 Subject: [PATCH] update windows-rs to 0.51 --- .github/workflows/build.yaml | 4 +- Cargo.lock | 182 +- Cargo.toml | 14 +- bindings.txt | 8 + crates/fabric/ext/Cargo.toml | 12 +- crates/fabric/ext/src/fasync/mod.rs | 11 +- crates/fabric/ext/src/lib.rs | 45 +- crates/samples/client/Cargo.toml | 7 +- crates/samples/client/src/main.rs | 2 +- crates/samples/echomain/Cargo.toml | 10 +- crates/samples/echomain/src/app.rs | 30 +- crates/samples/echomain/src/main.rs | 9 +- crates/tools/api/Cargo.toml | 6 +- crates/tools/api/src/main.rs | 73 +- .../FabricCommon/FabricClient/impl.rs | 6847 +-- .../FabricCommon/FabricClient/mod.rs | 37532 ++++++++-------- .../FabricCommon/FabricRuntime/impl.rs | 3166 +- .../FabricCommon/FabricRuntime/mod.rs | 10872 ++--- .../FabricCommon/FabricTransport/impl.rs | 377 +- .../FabricCommon/FabricTransport/mod.rs | 789 +- .../ServiceFabric/FabricCommon/impl.rs | 100 +- .../ServiceFabric/FabricCommon/mod.rs | 208 +- src/Microsoft/ServiceFabric/impl.rs | 1 - src/Microsoft/ServiceFabric/mod.rs | 17863 ++++---- src/Microsoft/impl.rs | 1 - src/Microsoft/mod.rs | 3 +- src/lib.rs | 3 +- 27 files changed, 39164 insertions(+), 39011 deletions(-) create mode 100644 bindings.txt delete mode 100644 src/Microsoft/ServiceFabric/impl.rs delete mode 100644 src/Microsoft/impl.rs diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1ba408e0..3d5d3e04 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -33,8 +33,8 @@ jobs: - name: Remove conflict dll paths shell: powershell run: | - get-command libprotobuf.dll - Remove-Item -Recurse -Force C:\mysql\bin + get-command libprotobuf.dll | format-list + Remove-Item -Recurse -Force "C:\Program Files\MySQL\MySQL Server 8.0\bin" - name: check sf exist run: Powershell.exe -File .\build\_deps\service_fabric_cpp-src\scripts\check_sf_installed.ps1 diff --git a/Cargo.lock b/Cargo.lock index ae98d635..f9742d59 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -46,6 +46,39 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "crossbeam-deque" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef" +dependencies = [ + "cfg-if", + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" +dependencies = [ + "autocfg", + "cfg-if", + "crossbeam-utils", + "memoffset", + "scopeguard", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" +dependencies = [ + "cfg-if", +] + [[package]] name = "ctrlc" version = "3.2.3" @@ -56,6 +89,12 @@ dependencies = [ "winapi", ] +[[package]] +name = "either" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" + [[package]] name = "env_logger" version = "0.9.1" @@ -84,6 +123,7 @@ dependencies = [ "service-fabric-rs", "tokio", "windows", + "windows-core", ] [[package]] @@ -132,6 +172,15 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +[[package]] +name = "memoffset" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" +dependencies = [ + "autocfg", +] + [[package]] name = "mio" version = "0.8.4" @@ -203,22 +252,42 @@ checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" [[package]] name = "proc-macro2" -version = "1.0.46" +version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94e2ef8dbfc347b10c094890f778ee2e36ca9bb4262e86dc99cd217e35f3470b" +checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.21" +version = "1.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" +checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" dependencies = [ "proc-macro2", ] +[[package]] +name = "rayon" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c27db03db7734835b3f53954b534c91069375ce6ccaa2e065441e07d9b6cdb1" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ce3fb6ad83f861aac485e76e1985cd109d9a3713802152be56c3b1f0e0658ed" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + [[package]] name = "redox_syscall" version = "0.2.16" @@ -252,6 +321,7 @@ dependencies = [ "fabric_ext", "service-fabric-rs", "windows", + "windows-core", ] [[package]] @@ -265,6 +335,7 @@ dependencies = [ "service-fabric-rs", "tokio", "windows", + "windows-core", ] [[package]] @@ -285,6 +356,7 @@ version = "0.0.2" dependencies = [ "fabric-metadata", "windows", + "windows-core", ] [[package]] @@ -323,6 +395,17 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "syn" +version = "2.0.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "termcolor" version = "1.1.3" @@ -360,7 +443,7 @@ checksum = "9724f9a975fb987ef7a3cd9be0350edcbe130698af5b8f7a631e23d42d052484" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 1.0.101", ] [[package]] @@ -417,58 +500,64 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows" -version = "0.43.0" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04662ed0e3e5630dfa9b26e4cb823b817f1a9addda855d973a9458c236556244" +checksum = "ca229916c5ee38c2f2bc1e9d8f04df975b4bd93f9955dc69fabb5d91270045c9" dependencies = [ + "windows-core", "windows-implement", "windows-interface", - "windows_aarch64_gnullvm", - "windows_aarch64_msvc 0.42.0", - "windows_i686_gnu 0.42.0", - "windows_i686_msvc 0.42.0", - "windows_x86_64_gnu 0.42.0", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc 0.42.0", + "windows-targets", ] [[package]] name = "windows-bindgen" -version = "0.43.0" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27a53bbcdeded4e690dbfba77bccc4fe2a6d896ec8191254fc739e1ce49e5925" +checksum = "bc1f16b778125675feee0d15d6dd9f6af0e3ac52b3233d63a10aa39230c1cd75" dependencies = [ + "proc-macro2", + "rayon", + "syn 2.0.39", "windows-metadata", - "windows-tokens", +] + +[[package]] +name = "windows-core" +version = "0.51.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1f8cf84f35d2db49a46868f947758c7a1138116f7fac3bc844f43ade1292e64" +dependencies = [ + "windows-targets", ] [[package]] name = "windows-implement" -version = "0.43.0" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e29b056dc743c5b8f70010774e894bb54ac4f95a62a848c3458a6f5baef807" +checksum = "fb2b158efec5af20d8846836622f50a87e6556b9153a42772fa047f773c0e555" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.39", ] [[package]] name = "windows-interface" -version = "0.43.0" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc8d4fbef035748e3904ff0fde0188361e8ba730530b8501328d3ca6d854b919" +checksum = "0546e63e1ce64c04403d2311fa0e3ab5ae3a367bd524b4a38d8d8d18c70cfa76" dependencies = [ "proc-macro2", "quote", - "syn", + "syn 2.0.39", ] [[package]] name = "windows-metadata" -version = "0.43.0" +version = "0.51.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d78850a4a8852ba8593fd006dfa22a042f96b9d48f963c556fc494ddb9ee6a18" +checksum = "753135d996f9da437c0b31dbde3032489a61708361929bcc07d4fba0b161000e" [[package]] name = "windows-sys" @@ -484,16 +573,25 @@ dependencies = [ ] [[package]] -name = "windows-tokens" -version = "0.42.0" +name = "windows-targets" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63933cde113d4e17e105129217d6fcd1f520bcdc615f3d480263504c4b804316" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc 0.48.5", +] [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_msvc" @@ -503,9 +601,9 @@ checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" [[package]] name = "windows_aarch64_msvc" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_i686_gnu" @@ -515,9 +613,9 @@ checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" [[package]] name = "windows_i686_gnu" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_msvc" @@ -527,9 +625,9 @@ checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" [[package]] name = "windows_i686_msvc" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_x86_64_gnu" @@ -539,15 +637,15 @@ checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" [[package]] name = "windows_x86_64_gnu" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_msvc" @@ -557,6 +655,6 @@ checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" [[package]] name = "windows_x86_64_msvc" -version = "0.42.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" diff --git a/Cargo.toml b/Cargo.toml index 8492a1e7..9a2f1d01 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,12 +23,20 @@ targets = [] [dependencies] fabric-metadata = { git = "https://github.com/youyuanwu/fabric-metadata.git", rev = "9d62ca15573a0716fb9828dce03a489ae4b8a4a7"} +windows-core = "0.51" [dependencies.windows] -version = "0.43" +version = "0.51" features = [ - "Win32_Foundation" + "Win32_Foundation", + "implement" ] [features] -implement = [] \ No newline at end of file +implement = [] +Win32_Foundation = [] +ServiceFabric = [] +ServiceFabric_FabricCommon = ["ServiceFabric"] +ServiceFabric_FabricCommon_FabricClient = ["ServiceFabric_FabricCommon"] +ServiceFabric_FabricCommon_FabricRuntime = ["ServiceFabric_FabricCommon"] +ServiceFabric_FabricCommon_FabricTransport = ["ServiceFabric_FabricCommon"] diff --git a/bindings.txt b/bindings.txt new file mode 100644 index 00000000..89628d1e --- /dev/null +++ b/bindings.txt @@ -0,0 +1,8 @@ +--in ./build/_deps/fabric_metadata-src/.windows/winmd/Microsoft.ServiceFabric.winmd +--out src/Microsoft.rs + +--filter + Microsoft + +--config + package=true \ No newline at end of file diff --git a/crates/fabric/ext/Cargo.toml b/crates/fabric/ext/Cargo.toml index 159b0413..763e8366 100644 --- a/crates/fabric/ext/Cargo.toml +++ b/crates/fabric/ext/Cargo.toml @@ -8,16 +8,22 @@ log = "0.4" env_logger = "*" tokio = { version = "1", features = ["full"] } paste = "1.0" +windows-core = "0.51" [dependencies.windows] -version = "0.43" +version = "0.51" features = [ "implement", - "interface" + "Win32_System_Com", + "Win32_Foundation" ] [dependencies.service-fabric-rs] path = "../../../" features = [ - "implement" + "implement", + "Win32_Foundation", + "ServiceFabric", + "ServiceFabric_FabricCommon", + "ServiceFabric_FabricCommon_FabricClient" ] \ No newline at end of file diff --git a/crates/fabric/ext/src/fasync/mod.rs b/crates/fabric/ext/src/fasync/mod.rs index 917639b1..500b6a61 100644 --- a/crates/fabric/ext/src/fasync/mod.rs +++ b/crates/fabric/ext/src/fasync/mod.rs @@ -24,9 +24,10 @@ use service_fabric_rs::{ }, FABRIC_NODE_QUERY_DESCRIPTION, }; -use windows::core::{implement, Interface, Vtable}; - +use windows::core::{implement, Interface}; +//use windows_core::com_interface::ComInterface; use windows::core::HSTRING; +use windows_core::ComInterface; /// Shared state between the future and the waiting thread #[derive(Debug)] @@ -44,7 +45,7 @@ pub struct SharedState { // fabric code begins here -#[windows::core::interface("a9445a72-838b-4ed3-8073-bb6423198241")] +#[windows::core::interface] pub unsafe trait IFabricAwaitableCallback: IFabricAsyncOperationCallback { // This has warning pub unsafe fn get_token(&self) -> AwaitableToken; @@ -52,7 +53,7 @@ pub unsafe trait IFabricAwaitableCallback: IFabricAsyncOperationCallback { // This is implement a call back the supports rust .await syntax #[derive(Debug)] -#[implement(IFabricAsyncOperationCallback, IFabricAwaitableCallback)] +#[implement(IFabricAwaitableCallback)] pub struct AwaitableCallback { shared_state: Arc>, } @@ -70,7 +71,7 @@ impl AwaitableCallback { impl IFabricAsyncOperationCallback_Impl for AwaitableCallback { // notify the function has been invoked. - fn Invoke(&self, _context: &core::option::Option) { + fn Invoke(&self, _context: ::core::option::Option<&IFabricAsyncOperationContext>) { let mut shared_state = self.shared_state.lock().unwrap(); // Signal that the timer has completed and wake up the last // task on which the future was polled, if one exists. diff --git a/crates/fabric/ext/src/lib.rs b/crates/fabric/ext/src/lib.rs index e4b6b6d7..6e4ba3ac 100644 --- a/crates/fabric/ext/src/lib.rs +++ b/crates/fabric/ext/src/lib.rs @@ -21,6 +21,7 @@ use service_fabric_rs::FabricCommon::{ IFabricAsyncOperationContext_Impl, IFabricStringResult, IFabricStringResult_Impl, }; use windows::core::implement; +use windows_core::PCWSTR; // Interface for waitable async callback. // This is a common use case to combine fabric Begin* and End* apis. @@ -45,7 +46,7 @@ impl WaitableCallback { impl IFabricAsyncOperationCallback_Impl for WaitableCallback { // notify the function has been invoked. - fn Invoke(&self, _context: &core::option::Option) { + fn Invoke(&self, _context: ::core::option::Option<&IFabricAsyncOperationContext>) { //println!("WaitableCallback Invoke."); let (lock, cvar) = &*self.pair_; let mut started = lock.lock().unwrap(); @@ -67,22 +68,22 @@ impl IFabricWaitableCallback_Impl for WaitableCallback { } } -// pub fn pwstr_to_string(p: PCWSTR) -> String { -// if p.0.is_null() { -// return String::new(); -// } - -// let mut end = p.0; -// unsafe { -// while *end != 0 { -// end = end.add(1); -// } -// } -// let ret: String = unsafe { -// String::from_utf16_lossy(std::slice::from_raw_parts(p.0, end.offset_from(p.0) as _)) -// }; -// return ret; -// } +pub fn pwstr_to_string(p: PCWSTR) -> String { + if p.0.is_null() { + return String::new(); + } + + let mut end = p.0; + unsafe { + while *end != 0 { + end = end.add(1); + } + } + let ret: String = unsafe { + String::from_utf16_lossy(std::slice::from_raw_parts(p.0, end.offset_from(p.0) as _)) + }; + return ret; +} // The basic implementation of async context // which use needs to trigger callback synchronously @@ -96,12 +97,12 @@ impl AsyncContext { // construct ctx. Note: caller needs to invoke callback. // This is different from cpp impl. pub fn new( - callback: &core::option::Option< - service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback, + callback: core::option::Option< + &service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback, >, ) -> AsyncContext { info!("AsyncContext::new"); - let callback_copy: IFabricAsyncOperationCallback = callback.clone().expect("msg"); + let callback_copy: IFabricAsyncOperationCallback = callback.expect("msg").clone(); let ctx = AsyncContext { callback_: callback_copy, @@ -155,9 +156,9 @@ impl StringResult { } impl IFabricStringResult_Impl for StringResult { - fn get_String(&self) -> windows::core::PWSTR { + fn get_String(&self) -> windows::core::PCWSTR { // This is some hack to get the raw pointer out. let ptr: *mut u16 = self.vec_.as_ptr() as *mut u16; - return windows::core::PWSTR::from_raw(ptr); + return windows::core::PCWSTR::from_raw(ptr); } } diff --git a/crates/samples/client/Cargo.toml b/crates/samples/client/Cargo.toml index 89b1826d..5fa4d340 100644 --- a/crates/samples/client/Cargo.toml +++ b/crates/samples/client/Cargo.toml @@ -4,7 +4,7 @@ version = "0.0.1" edition = "2018" [dependencies.windows] -version = "0.43" +version = "0.51" features = [ "implement" ] @@ -16,4 +16,7 @@ features = [ ] [dependencies.fabric_ext] -path = "../../../crates/fabric/ext" \ No newline at end of file +path = "../../../crates/fabric/ext" + +[dependencies] +windows-core = "0.51" \ No newline at end of file diff --git a/crates/samples/client/src/main.rs b/crates/samples/client/src/main.rs index 4d77ce77..b5178591 100644 --- a/crates/samples/client/src/main.rs +++ b/crates/samples/client/src/main.rs @@ -7,7 +7,7 @@ use fabric_ext::{IFabricWaitableCallback, WaitableCallback}; use service_fabric_rs::FabricCommon::{FabricClient::*, IFabricAsyncOperationCallback}; use service_fabric_rs::{FABRIC_NODE_QUERY_DESCRIPTION, FABRIC_NODE_QUERY_RESULT_ITEM}; -use windows::core::*; +use windows_core::{ComInterface, Interface}; fn main() -> windows::core::Result<()> { println!("GetNodeCli"); diff --git a/crates/samples/echomain/Cargo.toml b/crates/samples/echomain/Cargo.toml index 8551d807..57b17f56 100644 --- a/crates/samples/echomain/Cargo.toml +++ b/crates/samples/echomain/Cargo.toml @@ -8,9 +8,10 @@ log = "0.4" env_logger = "*" ctrlc = { version = "3.0", features = ["termination"] } tokio = { version = "1", features = ["full"] } +windows-core = "0.51" [dependencies.windows] -version = "0.43" +version = "0.51" features = [ "implement" ] @@ -18,8 +19,11 @@ features = [ [dependencies.service-fabric-rs] path = "../../../" features = [ - "implement" + "implement", + "ServiceFabric", + "ServiceFabric_FabricCommon", + "ServiceFabric_FabricCommon_FabricRuntime" ] [dependencies.fabric_ext] -path = "../../../crates/fabric/ext" \ No newline at end of file +path = "../../../crates/fabric/ext" diff --git a/crates/samples/echomain/src/app.rs b/crates/samples/echomain/src/app.rs index 3f0961b1..bcd7d93f 100644 --- a/crates/samples/echomain/src/app.rs +++ b/crates/samples/echomain/src/app.rs @@ -18,7 +18,7 @@ use service_fabric_rs::FabricCommon::FabricRuntime::{ use service_fabric_rs::FabricCommon::{IFabricAsyncOperationContext, IFabricStringResult}; use tokio::sync::oneshot::{self, Sender}; use windows::core::implement; -use windows::w; +use windows::core::w; mod echo; @@ -50,15 +50,13 @@ impl ServiceFactory { impl IFabricStatelessServiceFactory_Impl for ServiceFactory { fn CreateInstance( &self, - servicetypename: &windows::core::PCWSTR, + servicetypename: &::windows::core::PCWSTR, servicename: *const u16, initializationdatalength: u32, initializationdata: *const u8, - partitionid: &windows::core::GUID, + partitionid: &::windows::core::GUID, instanceid: i64, - ) -> windows::core::Result< - service_fabric_rs::FabricCommon::FabricRuntime::IFabricStatelessServiceInstance, - > { + ) -> ::windows::core::Result { let mut init_data: String = "".to_string(); if initializationdata != null() && initializationdatalength != 0 { init_data = unsafe { @@ -107,11 +105,11 @@ impl AppInstance { impl IFabricStatelessServiceInstance_Impl for AppInstance { fn BeginOpen( &self, - partition: &core::option::Option< - service_fabric_rs::FabricCommon::FabricRuntime::IFabricStatelessServicePartition, + partition: core::option::Option< + &service_fabric_rs::FabricCommon::FabricRuntime::IFabricStatelessServicePartition, >, - callback: &core::option::Option< - service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback, + callback: core::option::Option< + &service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback, >, ) -> windows::core::Result { let p = partition.as_ref().expect("get partition failed"); @@ -139,8 +137,8 @@ impl IFabricStatelessServiceInstance_Impl for AppInstance { fn EndOpen( &self, - context: &core::option::Option< - service_fabric_rs::FabricCommon::IFabricAsyncOperationContext, + context: core::option::Option< + &service_fabric_rs::FabricCommon::IFabricAsyncOperationContext, >, ) -> windows::core::Result { info!("AppInstance::EndOpen"); @@ -163,8 +161,8 @@ impl IFabricStatelessServiceInstance_Impl for AppInstance { fn BeginClose( &self, - callback: &core::option::Option< - service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback, + callback: core::option::Option< + &service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback, >, ) -> windows::core::Result { info!("AppInstance::BeginClose"); @@ -203,8 +201,8 @@ impl IFabricStatelessServiceInstance_Impl for AppInstance { fn EndClose( &self, - context: &core::option::Option< - service_fabric_rs::FabricCommon::IFabricAsyncOperationContext, + context: core::option::Option< + &service_fabric_rs::FabricCommon::IFabricAsyncOperationContext, >, ) -> windows::core::Result<()> { info!("AppInstance::EndClose"); diff --git a/crates/samples/echomain/src/main.rs b/crates/samples/echomain/src/main.rs index 5d60d8aa..237c482d 100644 --- a/crates/samples/echomain/src/main.rs +++ b/crates/samples/echomain/src/main.rs @@ -17,8 +17,9 @@ use service_fabric_rs::FabricCommon::FabricRuntime::{ }; use service_fabric_rs::FabricCommon::IFabricAsyncOperationCallback; use std::sync::mpsc::channel; -use windows::core::{Interface, Vtable, PCWSTR}; -use windows::w; +use windows::core::w; +use windows::core::{Interface, PCWSTR}; +use windows_core::ComInterface; pub mod app; fn main() -> windows::core::Result<()> { @@ -74,7 +75,9 @@ fn get_hostname() -> OsString { // let result = String::from_utf16_lossy(std::slice::from_raw_parts( let callback: IFabricWaitableCallback = WaitableCallback::new().into(); - let callback_arg: IFabricAsyncOperationCallback = callback.cast().expect("castfailed"); + let callback_arg = callback + .cast::() + .expect("castfailed"); let ctx = unsafe { FabricBeginGetNodeContext(1000, &callback_arg).expect("getctx failed") }; unsafe { callback.wait() }; diff --git a/crates/tools/api/Cargo.toml b/crates/tools/api/Cargo.toml index 64b4c3bb..e7c7e9aa 100644 --- a/crates/tools/api/Cargo.toml +++ b/crates/tools/api/Cargo.toml @@ -6,5 +6,7 @@ publish = false [dependencies] serde = "1.0.136" -windows-bindgen = "0.43" -windows-metadata = "0.43" \ No newline at end of file +windows-bindgen = "0.51" +windows-metadata = "0.51" +#windows-targets = "0.51" +#windows-core = "0.51" \ No newline at end of file diff --git a/crates/tools/api/src/main.rs b/crates/tools/api/src/main.rs index 4f60f82b..0e7cc74d 100644 --- a/crates/tools/api/src/main.rs +++ b/crates/tools/api/src/main.rs @@ -1,70 +1,7 @@ -use std::io::prelude::*; -use windows_metadata::reader::{File, Reader, Tree}; +use windows_bindgen::{bindgen, Result}; -fn main() { - let start = std::time::Instant::now(); - let mut output_path = std::path::PathBuf::from(""); - - output_path.push("src/Microsoft"); - let _ = std::fs::remove_dir_all(&output_path); - output_path.pop(); - - // use winmd files from fabric-metadata repo - let winmd_files = [ - File::new("build/_deps/fabric_metadata-src/.windows/winmd/Microsoft.ServiceFabric.winmd") - .unwrap(), - File::new("build/_deps/fabric_metadata-src/.windows/winmd/Windows.Win32.winmd").unwrap() - ]; - let reader = Reader::new(&winmd_files); - let root = reader - .tree("Microsoft", &[]) - .expect("Microsoft namespace not found"); - - let trees = root.flatten(); - trees - .iter() - .for_each(|tree| gen_tree(&reader, &output_path, tree)); - - println!("Elapsed: {} ms", start.elapsed().as_millis()); -} - -fn gen_tree(reader: &Reader, output: &std::path::Path, tree: &Tree) { - let mut path = std::path::PathBuf::from(output); - - path.push(tree.namespace.replace('.', "/")); - std::fs::create_dir_all(&path).unwrap(); - - let mut gen = windows_bindgen::Gen::new(reader); - gen.namespace = tree.namespace; - gen.cfg = false; - gen.doc = false; - - let mut tokens = windows_bindgen::namespace(&gen, tree); - tokens.push_str(r#"#[cfg(feature = "implement")] ::core::include!("impl.rs");"#); - fmt_tokens(tree.namespace, &mut tokens); - std::fs::write(path.join("mod.rs"), tokens).unwrap(); - - let mut tokens = windows_bindgen::namespace_impl(&gen, tree); - fmt_tokens(tree.namespace, &mut tokens); - std::fs::write(path.join("impl.rs"), tokens).unwrap(); -} - -fn fmt_tokens(namespace: &str, tokens: &mut String) { - let mut child = std::process::Command::new("rustfmt") - .stdin(std::process::Stdio::piped()) - .stdout(std::process::Stdio::piped()) - .stderr(std::process::Stdio::null()) - .spawn() - .expect("Failed to spawn `rustfmt`"); - - let mut stdin = child.stdin.take().expect("Failed to open stdin"); - stdin.write_all(tokens.as_bytes()).unwrap(); - drop(stdin); - let output = child.wait_with_output().unwrap(); - - if output.status.success() { - *tokens = String::from_utf8(output.stdout).expect("Failed to parse UTF-8"); - } else { - println!("** {} - rustfmt failed", namespace); - } +fn main() -> Result<()> { + let log = bindgen(["--etc", "bindings.txt"])?; + println!("{}", log); + Ok(()) } diff --git a/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/impl.rs b/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/impl.rs index 6f4c324c..722c3c40 100644 --- a/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/impl.rs +++ b/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/impl.rs @@ -1,15 +1,19 @@ +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricApplicationHealthResult_Impl: Sized { fn get_ApplicationHealth(&self) -> *mut super::super::FABRIC_APPLICATION_HEALTH; } -impl ::windows::core::RuntimeName for IFabricApplicationHealthResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricApplicationHealthResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricApplicationHealthResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationHealthResult_Impl, const OFFSET: isize, >() -> IFabricApplicationHealthResult_Vtbl { unsafe extern "system" fn get_ApplicationHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationHealthResult_Impl, const OFFSET: isize, >( @@ -20,134 +24,135 @@ impl IFabricApplicationHealthResult_Vtbl { this.get_ApplicationHealth() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ApplicationHealth: get_ApplicationHealth::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricApplicationManagementClient_Impl: Sized { fn BeginProvisionApplicationType( &self, - applicationbuildpath: &::windows::core::PCWSTR, + applicationbuildpath: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndProvisionApplicationType( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginCreateApplication( &self, description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCreateApplication( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginUpgradeApplication( &self, upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUpgradeApplication( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetApplicationUpgradeProgress( &self, applicationname: *const u16, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetApplicationUpgradeProgress( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginMoveNextApplicationUpgradeDomain( &self, - progress: &::core::option::Option, + progress: ::core::option::Option<&IFabricApplicationUpgradeProgressResult2>, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndMoveNextApplicationUpgradeDomain( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginDeleteApplication( &self, applicationname: *const u16, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndDeleteApplication( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginUnprovisionApplicationType( &self, - applicationtypename: &::windows::core::PCWSTR, - applicationtypeversion: &::windows::core::PCWSTR, + applicationtypename: &::windows_core::PCWSTR, + applicationtypeversion: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUnprovisionApplicationType( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient {} +impl ::windows_core::RuntimeName for IFabricApplicationManagementClient {} impl IFabricApplicationManagementClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >() -> IFabricApplicationManagementClient_Vtbl { unsafe extern "system" fn BeginProvisionApplicationType< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - applicationbuildpath: ::windows::core::PCWSTR, + applicationbuildpath: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginProvisionApplicationType( ::core::mem::transmute(&applicationbuildpath), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndProvisionApplicationType< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndProvisionApplicationType(::core::mem::transmute(&context)) + this.EndProvisionApplicationType(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginCreateApplication< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( @@ -156,36 +161,36 @@ impl IFabricApplicationManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCreateApplication( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCreateApplication< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndCreateApplication(::core::mem::transmute(&context)) + this.EndCreateApplication(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginUpgradeApplication< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( @@ -194,36 +199,36 @@ impl IFabricApplicationManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUpgradeApplication( ::core::mem::transmute_copy(&upgradedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUpgradeApplication< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUpgradeApplication(::core::mem::transmute(&context)) + this.EndUpgradeApplication(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetApplicationUpgradeProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( @@ -232,42 +237,43 @@ impl IFabricApplicationManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetApplicationUpgradeProgress( ::core::mem::transmute_copy(&applicationname), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationUpgradeProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetApplicationUpgradeProgress(::core::mem::transmute(&context)) { + match this.EndGetApplicationUpgradeProgress(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginMoveNextApplicationUpgradeDomain< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( @@ -276,36 +282,36 @@ impl IFabricApplicationManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginMoveNextApplicationUpgradeDomain( - ::core::mem::transmute(&progress), + ::windows_core::from_raw_borrowed(&progress), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndMoveNextApplicationUpgradeDomain< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndMoveNextApplicationUpgradeDomain(::core::mem::transmute(&context)) + this.EndMoveNextApplicationUpgradeDomain(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginDeleteApplication< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( @@ -314,76 +320,76 @@ impl IFabricApplicationManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginDeleteApplication( ::core::mem::transmute_copy(&applicationname), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteApplication< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndDeleteApplication(::core::mem::transmute(&context)) + this.EndDeleteApplication(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginUnprovisionApplicationType< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, + 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUnprovisionApplicationType( ::core::mem::transmute(&applicationtypename), ::core::mem::transmute(&applicationtypeversion), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUnprovisionApplicationType< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUnprovisionApplicationType(::core::mem::transmute(&context)) + this.EndUnprovisionApplicationType(::windows_core::from_raw_borrowed(&context)) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginProvisionApplicationType: BeginProvisionApplicationType::, EndProvisionApplicationType: EndProvisionApplicationType::, BeginCreateApplication: BeginCreateApplication::, @@ -420,10 +426,12 @@ impl IFabricApplicationManagementClient_Vtbl { EndUnprovisionApplicationType: EndUnprovisionApplicationType::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricApplicationManagementClient10_Impl: Sized + IFabricApplicationManagementClient9_Impl { @@ -431,22 +439,24 @@ pub trait IFabricApplicationManagementClient10_Impl: &self, description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndProvisionApplicationType3( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient10 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricApplicationManagementClient10 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricApplicationManagementClient10_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient10_Impl, const OFFSET: isize, >() -> IFabricApplicationManagementClient10_Vtbl { unsafe extern "system" fn BeginProvisionApplicationType3< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient10_Impl, const OFFSET: isize, >( @@ -455,32 +465,32 @@ impl IFabricApplicationManagementClient10_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginProvisionApplicationType3( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndProvisionApplicationType3< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient10_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndProvisionApplicationType3(::core::mem::transmute(&context)) + this.EndProvisionApplicationType3(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -489,136 +499,137 @@ impl IFabricApplicationManagementClient10_Vtbl { 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 + 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricApplicationManagementClient2_Impl: Sized + IFabricApplicationManagementClient_Impl { fn BeginGetApplicationManifest( &self, - applicationtypename: &::windows::core::PCWSTR, - applicationtypeversion: &::windows::core::PCWSTR, + applicationtypename: &::windows_core::PCWSTR, + applicationtypeversion: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetApplicationManifest( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginMoveNextApplicationUpgradeDomain2( &self, applicationname: *const u16, - nextupgradedomain: &::windows::core::PCWSTR, + nextupgradedomain: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndMoveNextApplicationUpgradeDomain2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient2 {} +impl ::windows_core::RuntimeName for IFabricApplicationManagementClient2 {} impl IFabricApplicationManagementClient2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient2_Impl, const OFFSET: isize, >() -> IFabricApplicationManagementClient2_Vtbl { unsafe extern "system" fn BeginGetApplicationManifest< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, + 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetApplicationManifest( ::core::mem::transmute(&applicationtypename), ::core::mem::transmute(&applicationtypeversion), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationManifest< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetApplicationManifest(::core::mem::transmute(&context)) { + match this.EndGetApplicationManifest(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginMoveNextApplicationUpgradeDomain2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, applicationname: *const u16, - nextupgradedomain: ::windows::core::PCWSTR, + nextupgradedomain: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginMoveNextApplicationUpgradeDomain2( ::core::mem::transmute_copy(&applicationname), ::core::mem::transmute(&nextupgradedomain), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndMoveNextApplicationUpgradeDomain2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndMoveNextApplicationUpgradeDomain2(::core::mem::transmute(&context)) + this.EndMoveNextApplicationUpgradeDomain2(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -637,11 +648,12 @@ impl IFabricApplicationManagementClient2_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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricApplicationManagementClient3_Impl: Sized + IFabricApplicationManagementClient2_Impl { @@ -649,43 +661,43 @@ pub trait IFabricApplicationManagementClient3_Impl: &self, description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUpdateApplicationUpgrade( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginRestartDeployedCodePackage( &self, restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRestartDeployedCodePackage( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn CopyApplicationPackage( &self, - imagestoreconnectionstring: &::windows::core::PCWSTR, - applicationpackagepath: &::windows::core::PCWSTR, - applicationpackagepathinimagestore: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<()>; + 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<()>; + imagestoreconnectionstring: &::windows_core::PCWSTR, + applicationpackagepathinimagestore: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient3 {} +impl ::windows_core::RuntimeName for IFabricApplicationManagementClient3 {} impl IFabricApplicationManagementClient3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient3_Impl, const OFFSET: isize, >() -> IFabricApplicationManagementClient3_Vtbl { unsafe extern "system" fn BeginUpdateApplicationUpgrade< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient3_Impl, const OFFSET: isize, >( @@ -694,36 +706,36 @@ impl IFabricApplicationManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUpdateApplicationUpgrade( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateApplicationUpgrade< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUpdateApplicationUpgrade(::core::mem::transmute(&context)) + this.EndUpdateApplicationUpgrade(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginRestartDeployedCodePackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient3_Impl, const OFFSET: isize, >( @@ -732,44 +744,44 @@ impl IFabricApplicationManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRestartDeployedCodePackage( ::core::mem::transmute_copy(&restartcodepackagedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRestartDeployedCodePackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRestartDeployedCodePackage(::core::mem::transmute(&context)) + this.EndRestartDeployedCodePackage(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn CopyApplicationPackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + imagestoreconnectionstring: ::windows_core::PCWSTR, + applicationpackagepath: ::windows_core::PCWSTR, + applicationpackagepathinimagestore: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CopyApplicationPackage( @@ -780,14 +792,14 @@ impl IFabricApplicationManagementClient3_Vtbl { .into() } unsafe extern "system" fn RemoveApplicationPackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - imagestoreconnectionstring: ::windows::core::PCWSTR, - applicationpackagepathinimagestore: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { + imagestoreconnectionstring: ::windows_core::PCWSTR, + applicationpackagepathinimagestore: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveApplicationPackage( @@ -810,52 +822,53 @@ impl IFabricApplicationManagementClient3_Vtbl { RemoveApplicationPackage: RemoveApplicationPackage::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricApplicationManagementClient4_Impl: Sized + IFabricApplicationManagementClient3_Impl { fn BeginDeployServicePackageToNode( &self, - applicationtypename: &::windows::core::PCWSTR, - applicationtypeversion: &::windows::core::PCWSTR, - servicemanifestname: &::windows::core::PCWSTR, + applicationtypename: &::windows_core::PCWSTR, + applicationtypeversion: &::windows_core::PCWSTR, + servicemanifestname: &::windows_core::PCWSTR, sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: &::windows::core::PCWSTR, + nodename: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndDeployServicePackageToNode( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient4 {} +impl ::windows_core::RuntimeName for IFabricApplicationManagementClient4 {} impl IFabricApplicationManagementClient4_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient4_Impl, const OFFSET: isize, >() -> IFabricApplicationManagementClient4_Vtbl { unsafe extern "system" fn BeginDeployServicePackageToNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, - servicemanifestname: ::windows::core::PCWSTR, + applicationtypename: ::windows_core::PCWSTR, + applicationtypeversion: ::windows_core::PCWSTR, + servicemanifestname: ::windows_core::PCWSTR, sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: ::windows::core::PCWSTR, + nodename: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginDeployServicePackageToNode( @@ -865,26 +878,26 @@ impl IFabricApplicationManagementClient4_Vtbl { ::core::mem::transmute_copy(&sharingpolicy), ::core::mem::transmute(&nodename), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndDeployServicePackageToNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndDeployServicePackageToNode(::core::mem::transmute(&context)) + this.EndDeployServicePackageToNode(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -897,13 +910,14 @@ impl IFabricApplicationManagementClient4_Vtbl { EndDeployServicePackageToNode: EndDeployServicePackageToNode::, } } - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricApplicationManagementClient5_Impl: Sized + IFabricApplicationManagementClient4_Impl { @@ -911,22 +925,22 @@ pub trait IFabricApplicationManagementClient5_Impl: &self, applicationname: *const u16, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRollbackApplicationUpgrade( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient5 {} +impl ::windows_core::RuntimeName for IFabricApplicationManagementClient5 {} impl IFabricApplicationManagementClient5_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient5_Impl, const OFFSET: isize, >() -> IFabricApplicationManagementClient5_Vtbl { unsafe extern "system" fn BeginRollbackApplicationUpgrade< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient5_Impl, const OFFSET: isize, >( @@ -935,32 +949,32 @@ impl IFabricApplicationManagementClient5_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRollbackApplicationUpgrade( ::core::mem::transmute_copy(&applicationname), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRollbackApplicationUpgrade< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRollbackApplicationUpgrade(::core::mem::transmute(&context)) + this.EndRollbackApplicationUpgrade(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -973,14 +987,16 @@ impl IFabricApplicationManagementClient5_Vtbl { EndRollbackApplicationUpgrade: EndRollbackApplicationUpgrade::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricApplicationManagementClient6_Impl: Sized + IFabricApplicationManagementClient5_Impl { @@ -988,22 +1004,24 @@ pub trait IFabricApplicationManagementClient6_Impl: &self, applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUpdateApplication( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient6 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricApplicationManagementClient6 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricApplicationManagementClient6_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient6_Impl, const OFFSET: isize, >() -> IFabricApplicationManagementClient6_Vtbl { unsafe extern "system" fn BeginUpdateApplication< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient6_Impl, const OFFSET: isize, >( @@ -1012,32 +1030,32 @@ impl IFabricApplicationManagementClient6_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUpdateApplication( ::core::mem::transmute_copy(&applicationupdatedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateApplication< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient6_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUpdateApplication(::core::mem::transmute(&context)) + this.EndUpdateApplication(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -1046,15 +1064,17 @@ impl IFabricApplicationManagementClient6_Vtbl { EndUpdateApplication: EndUpdateApplication::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricApplicationManagementClient7_Impl: Sized + IFabricApplicationManagementClient6_Impl { @@ -1062,22 +1082,24 @@ pub trait IFabricApplicationManagementClient7_Impl: &self, deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndDeleteApplication2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient7 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricApplicationManagementClient7 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricApplicationManagementClient7_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient7_Impl, const OFFSET: isize, >() -> IFabricApplicationManagementClient7_Vtbl { unsafe extern "system" fn BeginDeleteApplication2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient7_Impl, const OFFSET: isize, >( @@ -1086,32 +1108,32 @@ impl IFabricApplicationManagementClient7_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginDeleteApplication2( ::core::mem::transmute_copy(&deletedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteApplication2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient7_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndDeleteApplication2(::core::mem::transmute(&context)) + this.EndDeleteApplication2(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -1120,16 +1142,18 @@ impl IFabricApplicationManagementClient7_Vtbl { EndDeleteApplication2: EndDeleteApplication2::, } } - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricApplicationManagementClient8_Impl: Sized + IFabricApplicationManagementClient7_Impl { @@ -1137,22 +1161,24 @@ pub trait IFabricApplicationManagementClient8_Impl: &self, description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndProvisionApplicationType2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient8 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricApplicationManagementClient8 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricApplicationManagementClient8_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient8_Impl, const OFFSET: isize, >() -> IFabricApplicationManagementClient8_Vtbl { unsafe extern "system" fn BeginProvisionApplicationType2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient8_Impl, const OFFSET: isize, >( @@ -1161,32 +1187,32 @@ impl IFabricApplicationManagementClient8_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginProvisionApplicationType2( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndProvisionApplicationType2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient8_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndProvisionApplicationType2(::core::mem::transmute(&context)) + this.EndProvisionApplicationType2(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -1195,17 +1221,19 @@ impl IFabricApplicationManagementClient8_Vtbl { EndProvisionApplicationType2: EndProvisionApplicationType2::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || 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 + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricApplicationManagementClient9_Impl: Sized + IFabricApplicationManagementClient8_Impl { @@ -1213,22 +1241,24 @@ pub trait IFabricApplicationManagementClient9_Impl: &self, description: *const super::super::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUnprovisionApplicationType2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricApplicationManagementClient9 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricApplicationManagementClient9 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricApplicationManagementClient9_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient9_Impl, const OFFSET: isize, >() -> IFabricApplicationManagementClient9_Vtbl { unsafe extern "system" fn BeginUnprovisionApplicationType2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient9_Impl, const OFFSET: isize, >( @@ -1237,32 +1267,32 @@ impl IFabricApplicationManagementClient9_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUnprovisionApplicationType2( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUnprovisionApplicationType2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationManagementClient9_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUnprovisionApplicationType2(::core::mem::transmute(&context)) + this.EndUnprovisionApplicationType2(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -1275,44 +1305,45 @@ impl IFabricApplicationManagementClient9_Vtbl { 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 + 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricApplicationUpgradeProgressResult_Impl: Sized { fn get_ApplicationName(&self) -> *mut u16; - fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR; - fn get_TargetApplicationTypeVersion(&self) -> ::windows::core::PWSTR; + fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR; + fn get_TargetApplicationTypeVersion(&self) -> ::windows_core::PCWSTR; fn get_UpgradeState(&self) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE; fn GetUpgradeDomains( &self, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn GetChangedUpgradeDomains( &self, - previousprogress: &::core::option::Option, + previousprogress: ::core::option::Option<&IFabricApplicationUpgradeProgressResult>, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricApplicationUpgradeProgressResult {} +impl ::windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult {} impl IFabricApplicationUpgradeProgressResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationUpgradeProgressResult_Impl, const OFFSET: isize, >() -> IFabricApplicationUpgradeProgressResult_Vtbl { unsafe extern "system" fn get_ApplicationName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationUpgradeProgressResult_Impl, const OFFSET: isize, >( @@ -1323,29 +1354,29 @@ impl IFabricApplicationUpgradeProgressResult_Vtbl { this.get_ApplicationName() } unsafe extern "system" fn get_ApplicationTypeName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationUpgradeProgressResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_ApplicationTypeName() } unsafe extern "system" fn get_TargetApplicationTypeVersion< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationUpgradeProgressResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_TargetApplicationTypeVersion() } unsafe extern "system" fn get_UpgradeState< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationUpgradeProgressResult_Impl, const OFFSET: isize, >( @@ -1356,14 +1387,14 @@ impl IFabricApplicationUpgradeProgressResult_Vtbl { this.get_UpgradeState() } unsafe extern "system" fn GetUpgradeDomains< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationUpgradeProgressResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetUpgradeDomains( @@ -1373,7 +1404,7 @@ impl IFabricApplicationUpgradeProgressResult_Vtbl { .into() } unsafe extern "system" fn GetChangedUpgradeDomains< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationUpgradeProgressResult_Impl, const OFFSET: isize, >( @@ -1381,18 +1412,18 @@ impl IFabricApplicationUpgradeProgressResult_Vtbl { previousprogress: *mut ::core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetChangedUpgradeDomains( - ::core::mem::transmute(&previousprogress), + ::windows_core::from_raw_borrowed(&previousprogress), ::core::mem::transmute_copy(&itemcount), ::core::mem::transmute_copy(&buffereditems), ) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ApplicationName: get_ApplicationName::, get_ApplicationTypeName: get_ApplicationTypeName::, get_TargetApplicationTypeVersion: get_TargetApplicationTypeVersion::< @@ -1405,25 +1436,26 @@ impl IFabricApplicationUpgradeProgressResult_Vtbl { GetChangedUpgradeDomains: GetChangedUpgradeDomains::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricApplicationUpgradeProgressResult2_Impl: Sized + IFabricApplicationUpgradeProgressResult_Impl { fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE; - fn get_NextUpgradeDomain(&self) -> ::windows::core::PWSTR; + fn get_NextUpgradeDomain(&self) -> ::windows_core::PCWSTR; } -impl ::windows::core::RuntimeName for IFabricApplicationUpgradeProgressResult2 {} +impl ::windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult2 {} impl IFabricApplicationUpgradeProgressResult2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationUpgradeProgressResult2_Impl, const OFFSET: isize, >() -> IFabricApplicationUpgradeProgressResult2_Vtbl { unsafe extern "system" fn get_RollingUpgradeMode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationUpgradeProgressResult2_Impl, const OFFSET: isize, >( @@ -1434,12 +1466,12 @@ impl IFabricApplicationUpgradeProgressResult2_Vtbl { this.get_RollingUpgradeMode() } unsafe extern "system" fn get_NextUpgradeDomain< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationUpgradeProgressResult2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_NextUpgradeDomain() @@ -1450,25 +1482,27 @@ impl IFabricApplicationUpgradeProgressResult2_Vtbl { get_NextUpgradeDomain: get_NextUpgradeDomain::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricApplicationUpgradeProgressResult3_Impl: Sized + IFabricApplicationUpgradeProgressResult2_Impl { fn get_UpgradeProgress(&self) -> *mut super::super::FABRIC_APPLICATION_UPGRADE_PROGRESS; } -impl ::windows::core::RuntimeName for IFabricApplicationUpgradeProgressResult3 {} +impl ::windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult3 {} impl IFabricApplicationUpgradeProgressResult3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationUpgradeProgressResult3_Impl, const OFFSET: isize, >() -> IFabricApplicationUpgradeProgressResult3_Vtbl { unsafe extern "system" fn get_UpgradeProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricApplicationUpgradeProgressResult3_Impl, const OFFSET: isize, >( @@ -1483,24 +1517,30 @@ impl IFabricApplicationUpgradeProgressResult3_Vtbl { get_UpgradeProgress: get_UpgradeProgress::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid + == &::IID + || iid + == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricChaosDescriptionResult_Impl: Sized { fn get_ChaosDescriptionResult(&self) -> *mut super::super::FABRIC_CHAOS_DESCRIPTION; } -impl ::windows::core::RuntimeName for IFabricChaosDescriptionResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricChaosDescriptionResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricChaosDescriptionResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricChaosDescriptionResult_Impl, const OFFSET: isize, >() -> IFabricChaosDescriptionResult_Vtbl { unsafe extern "system" fn get_ChaosDescriptionResult< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricChaosDescriptionResult_Impl, const OFFSET: isize, >( @@ -1511,26 +1551,27 @@ impl IFabricChaosDescriptionResult_Vtbl { this.get_ChaosDescriptionResult() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ChaosDescriptionResult: get_ChaosDescriptionResult::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricChaosEventsSegmentResult_Impl: Sized { fn get_ChaosEventsSegmentResult(&self) -> *mut super::super::FABRIC_CHAOS_EVENTS_SEGMENT; } -impl ::windows::core::RuntimeName for IFabricChaosEventsSegmentResult {} +impl ::windows_core::RuntimeName for IFabricChaosEventsSegmentResult {} impl IFabricChaosEventsSegmentResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricChaosEventsSegmentResult_Impl, const OFFSET: isize, >() -> IFabricChaosEventsSegmentResult_Vtbl { unsafe extern "system" fn get_ChaosEventsSegmentResult< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricChaosEventsSegmentResult_Impl, const OFFSET: isize, >( @@ -1541,26 +1582,30 @@ impl IFabricChaosEventsSegmentResult_Vtbl { this.get_ChaosEventsSegmentResult() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ChaosEventsSegmentResult: get_ChaosEventsSegmentResult::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricChaosReportResult_Impl: Sized { fn get_ChaosReportResult(&self) -> *mut super::super::FABRIC_CHAOS_REPORT; } -impl ::windows::core::RuntimeName for IFabricChaosReportResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricChaosReportResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricChaosReportResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricChaosReportResult_Impl, const OFFSET: isize, >() -> IFabricChaosReportResult_Vtbl { unsafe extern "system" fn get_ChaosReportResult< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricChaosReportResult_Impl, const OFFSET: isize, >( @@ -1571,28 +1616,32 @@ impl IFabricChaosReportResult_Vtbl { this.get_ChaosReportResult() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ChaosReportResult: get_ChaosReportResult::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricChaosScheduleDescriptionResult_Impl: Sized { fn get_ChaosScheduleDescriptionResult( &self, ) -> *mut super::super::FABRIC_CHAOS_SCHEDULE_DESCRIPTION; } -impl ::windows::core::RuntimeName for IFabricChaosScheduleDescriptionResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricChaosScheduleDescriptionResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricChaosScheduleDescriptionResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricChaosScheduleDescriptionResult_Impl, const OFFSET: isize, >() -> IFabricChaosScheduleDescriptionResult_Vtbl { unsafe extern "system" fn get_ChaosScheduleDescriptionResult< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricChaosScheduleDescriptionResult_Impl, const OFFSET: isize, >( @@ -1603,7 +1652,7 @@ impl IFabricChaosScheduleDescriptionResult_Vtbl { this.get_ChaosScheduleDescriptionResult() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ChaosScheduleDescriptionResult: get_ChaosScheduleDescriptionResult::< Identity, Impl, @@ -1611,101 +1660,103 @@ impl IFabricChaosScheduleDescriptionResult_Vtbl { >, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricClientConnectionEventHandler_Impl: Sized { fn OnConnected( &self, - __midl__ifabricclientconnectioneventhandler0000: &::core::option::Option< - IFabricGatewayInformationResult, + __midl__ifabricclientconnectioneventhandler0000: ::core::option::Option< + &IFabricGatewayInformationResult, >, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn OnDisconnected( &self, - __midl__ifabricclientconnectioneventhandler0001: &::core::option::Option< - IFabricGatewayInformationResult, + __midl__ifabricclientconnectioneventhandler0001: ::core::option::Option< + &IFabricGatewayInformationResult, >, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricClientConnectionEventHandler {} +impl ::windows_core::RuntimeName for IFabricClientConnectionEventHandler {} impl IFabricClientConnectionEventHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientConnectionEventHandler_Impl, const OFFSET: isize, >() -> IFabricClientConnectionEventHandler_Vtbl { unsafe extern "system" fn OnConnected< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientConnectionEventHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, __midl__ifabricclientconnectioneventhandler0000: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.OnConnected(::core::mem::transmute( + this.OnConnected(::windows_core::from_raw_borrowed( &__midl__ifabricclientconnectioneventhandler0000, )) .into() } unsafe extern "system" fn OnDisconnected< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientConnectionEventHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, __midl__ifabricclientconnectioneventhandler0001: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.OnDisconnected(::core::mem::transmute( + this.OnDisconnected(::windows_core::from_raw_borrowed( &__midl__ifabricclientconnectioneventhandler0001, )) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), OnConnected: OnConnected::, OnDisconnected: OnDisconnected::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricClientConnectionEventHandler2_Impl: Sized + IFabricClientConnectionEventHandler_Impl { fn OnClaimsRetrieval( &self, metadata: *const super::super::FABRIC_CLAIMS_RETRIEVAL_METADATA, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricClientConnectionEventHandler2 {} +impl ::windows_core::RuntimeName for IFabricClientConnectionEventHandler2 {} impl IFabricClientConnectionEventHandler2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientConnectionEventHandler2_Impl, const OFFSET: isize, >() -> IFabricClientConnectionEventHandler2_Vtbl { unsafe extern "system" fn OnClaimsRetrieval< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientConnectionEventHandler2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, metadata: *const super::super::FABRIC_CLAIMS_RETRIEVAL_METADATA, token: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.OnClaimsRetrieval(::core::mem::transmute_copy(&metadata)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(token, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -1715,101 +1766,103 @@ impl IFabricClientConnectionEventHandler2_Vtbl { OnClaimsRetrieval: OnClaimsRetrieval::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricClientSettings_Impl: Sized { fn SetSecurityCredentials( &self, securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, - ) -> ::windows::core::Result<()>; - fn SetKeepAlive(&self, keepaliveintervalinseconds: u32) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; + fn SetKeepAlive(&self, keepaliveintervalinseconds: u32) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricClientSettings {} +impl ::windows_core::RuntimeName for IFabricClientSettings {} impl IFabricClientSettings_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientSettings_Impl, const OFFSET: isize, >() -> IFabricClientSettings_Vtbl { unsafe extern "system" fn SetSecurityCredentials< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientSettings_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSecurityCredentials(::core::mem::transmute_copy(&securitycredentials)) .into() } unsafe extern "system" fn SetKeepAlive< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientSettings_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, keepaliveintervalinseconds: u32, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetKeepAlive(::core::mem::transmute_copy(&keepaliveintervalinseconds)) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), SetSecurityCredentials: SetSecurityCredentials::, SetKeepAlive: SetKeepAlive::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricClientSettings2_Impl: Sized + IFabricClientSettings_Impl { - fn GetSettings(&self) -> ::windows::core::Result; + fn GetSettings(&self) -> ::windows_core::Result; fn SetSettings( &self, fabricclientsettings: *const super::super::FABRIC_CLIENT_SETTINGS, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricClientSettings2 {} +impl ::windows_core::RuntimeName for IFabricClientSettings2 {} impl IFabricClientSettings2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientSettings2_Impl, const OFFSET: isize, >() -> IFabricClientSettings2_Vtbl { unsafe extern "system" fn GetSettings< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientSettings2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSettings() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn SetSettings< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientSettings2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, fabricclientsettings: *const super::super::FABRIC_CLIENT_SETTINGS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.SetSettings(::core::mem::transmute_copy(&fabricclientsettings)) @@ -1821,23 +1874,24 @@ impl IFabricClientSettings2_Vtbl { SetSettings: SetSettings::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricClientSettingsResult_Impl: Sized { fn get_Settings(&self) -> *mut super::super::FABRIC_CLIENT_SETTINGS; } -impl ::windows::core::RuntimeName for IFabricClientSettingsResult {} +impl ::windows_core::RuntimeName for IFabricClientSettingsResult {} impl IFabricClientSettingsResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientSettingsResult_Impl, const OFFSET: isize, >() -> IFabricClientSettingsResult_Vtbl { unsafe extern "system" fn get_Settings< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClientSettingsResult_Impl, const OFFSET: isize, >( @@ -1848,26 +1902,27 @@ impl IFabricClientSettingsResult_Vtbl { this.get_Settings() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Settings: get_Settings::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricClusterHealthResult_Impl: Sized { fn get_ClusterHealth(&self) -> *mut super::super::FABRIC_CLUSTER_HEALTH; } -impl ::windows::core::RuntimeName for IFabricClusterHealthResult {} +impl ::windows_core::RuntimeName for IFabricClusterHealthResult {} impl IFabricClusterHealthResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterHealthResult_Impl, const OFFSET: isize, >() -> IFabricClusterHealthResult_Vtbl { unsafe extern "system" fn get_ClusterHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterHealthResult_Impl, const OFFSET: isize, >( @@ -1878,82 +1933,83 @@ impl IFabricClusterHealthResult_Vtbl { this.get_ClusterHealth() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ClusterHealth: get_ClusterHealth::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricClusterManagementClient_Impl: Sized { fn BeginNodeStateRemoved( &self, - nodename: &::windows::core::PCWSTR, + nodename: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndNodeStateRemoved( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginRecoverPartitions( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRecoverPartitions( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricClusterManagementClient {} +impl ::windows_core::RuntimeName for IFabricClusterManagementClient {} impl IFabricClusterManagementClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient_Impl, const OFFSET: isize, >() -> IFabricClusterManagementClient_Vtbl { unsafe extern "system" fn BeginNodeStateRemoved< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, + nodename: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginNodeStateRemoved( ::core::mem::transmute(&nodename), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndNodeStateRemoved< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndNodeStateRemoved(::core::mem::transmute(&context)) + this.EndNodeStateRemoved(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginRecoverPartitions< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient_Impl, const OFFSET: isize, >( @@ -1961,106 +2017,110 @@ impl IFabricClusterManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRecoverPartitions( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRecoverPartitions< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRecoverPartitions(::core::mem::transmute(&context)) + this.EndRecoverPartitions(::windows_core::from_raw_borrowed(&context)) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginNodeStateRemoved: BeginNodeStateRemoved::, EndNodeStateRemoved: EndNodeStateRemoved::, BeginRecoverPartitions: BeginRecoverPartitions::, EndRecoverPartitions: EndRecoverPartitions::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricClusterManagementClient10_Impl: Sized + IFabricClusterManagementClient9_Impl { fn BeginGetClusterConfiguration2( &self, - apiversion: &::windows::core::PCWSTR, + apiversion: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetClusterConfiguration2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricClusterManagementClient10 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricClusterManagementClient10 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricClusterManagementClient10_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient10_Impl, const OFFSET: isize, >() -> IFabricClusterManagementClient10_Vtbl { unsafe extern "system" fn BeginGetClusterConfiguration2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient10_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - apiversion: ::windows::core::PCWSTR, + apiversion: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetClusterConfiguration2( ::core::mem::transmute(&apiversion), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetClusterConfiguration2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetClusterConfiguration2(::core::mem::transmute(&context)) { + match this.EndGetClusterConfiguration2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -2071,270 +2131,271 @@ impl IFabricClusterManagementClient10_Vtbl { 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 + 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricClusterManagementClient2_Impl: Sized + IFabricClusterManagementClient_Impl { fn BeginDeactivateNode( &self, - nodename: &::windows::core::PCWSTR, + nodename: &::windows_core::PCWSTR, intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndDeactivateNode( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginActivateNode( &self, - nodename: &::windows::core::PCWSTR, + nodename: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndActivateNode( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginProvisionFabric( &self, - codefilepath: &::windows::core::PCWSTR, - clustermanifestfilepath: &::windows::core::PCWSTR, + codefilepath: &::windows_core::PCWSTR, + clustermanifestfilepath: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndProvisionFabric( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginUpgradeFabric( &self, upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUpgradeFabric( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetFabricUpgradeProgress( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetFabricUpgradeProgress( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginMoveNextFabricUpgradeDomain( &self, - progress: &::core::option::Option, + progress: ::core::option::Option<&IFabricUpgradeProgressResult2>, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndMoveNextFabricUpgradeDomain( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginMoveNextFabricUpgradeDomain2( &self, - nextupgradedomain: &::windows::core::PCWSTR, + nextupgradedomain: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndMoveNextFabricUpgradeDomain2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginUnprovisionFabric( &self, - codeversion: &::windows::core::PCWSTR, - configversion: &::windows::core::PCWSTR, + codeversion: &::windows_core::PCWSTR, + configversion: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUnprovisionFabric( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetClusterManifest( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetClusterManifest( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginRecoverPartition( &self, - partitionid: &::windows::core::GUID, + partitionid: &::windows_core::GUID, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRecoverPartition( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginRecoverServicePartitions( &self, servicename: *const u16, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRecoverServicePartitions( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginRecoverSystemPartitions( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRecoverSystemPartitions( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricClusterManagementClient2 {} +impl ::windows_core::RuntimeName for IFabricClusterManagementClient2 {} impl IFabricClusterManagementClient2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >() -> IFabricClusterManagementClient2_Vtbl { unsafe extern "system" fn BeginDeactivateNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, + nodename: ::windows_core::PCWSTR, intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginDeactivateNode( ::core::mem::transmute(&nodename), ::core::mem::transmute_copy(&intent), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndDeactivateNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndDeactivateNode(::core::mem::transmute(&context)) + this.EndDeactivateNode(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginActivateNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, + nodename: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginActivateNode( ::core::mem::transmute(&nodename), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndActivateNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndActivateNode(::core::mem::transmute(&context)) + this.EndActivateNode(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginProvisionFabric< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - codefilepath: ::windows::core::PCWSTR, - clustermanifestfilepath: ::windows::core::PCWSTR, + 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginProvisionFabric( ::core::mem::transmute(&codefilepath), ::core::mem::transmute(&clustermanifestfilepath), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndProvisionFabric< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndProvisionFabric(::core::mem::transmute(&context)) + this.EndProvisionFabric(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginUpgradeFabric< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( @@ -2343,36 +2404,36 @@ impl IFabricClusterManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUpgradeFabric( ::core::mem::transmute_copy(&upgradedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUpgradeFabric< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUpgradeFabric(::core::mem::transmute(&context)) + this.EndUpgradeFabric(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetFabricUpgradeProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( @@ -2380,41 +2441,41 @@ impl IFabricClusterManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetFabricUpgradeProgress( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetFabricUpgradeProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetFabricUpgradeProgress(::core::mem::transmute(&context)) { + match this.EndGetFabricUpgradeProgress(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginMoveNextFabricUpgradeDomain< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( @@ -2423,114 +2484,114 @@ impl IFabricClusterManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginMoveNextFabricUpgradeDomain( - ::core::mem::transmute(&progress), + ::windows_core::from_raw_borrowed(&progress), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndMoveNextFabricUpgradeDomain< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndMoveNextFabricUpgradeDomain(::core::mem::transmute(&context)) + this.EndMoveNextFabricUpgradeDomain(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginMoveNextFabricUpgradeDomain2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - nextupgradedomain: ::windows::core::PCWSTR, + nextupgradedomain: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginMoveNextFabricUpgradeDomain2( ::core::mem::transmute(&nextupgradedomain), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndMoveNextFabricUpgradeDomain2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndMoveNextFabricUpgradeDomain2(::core::mem::transmute(&context)) + this.EndMoveNextFabricUpgradeDomain2(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginUnprovisionFabric< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - codeversion: ::windows::core::PCWSTR, - configversion: ::windows::core::PCWSTR, + 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUnprovisionFabric( ::core::mem::transmute(&codeversion), ::core::mem::transmute(&configversion), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUnprovisionFabric< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUnprovisionFabric(::core::mem::transmute(&context)) + this.EndUnprovisionFabric(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetClusterManifest< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( @@ -2538,79 +2599,79 @@ impl IFabricClusterManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetClusterManifest( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetClusterManifest< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetClusterManifest(::core::mem::transmute(&context)) { + match this.EndGetClusterManifest(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginRecoverPartition< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRecoverPartition( ::core::mem::transmute(&partitionid), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRecoverPartition< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRecoverPartition(::core::mem::transmute(&context)) + this.EndRecoverPartition(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginRecoverServicePartitions< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( @@ -2619,36 +2680,36 @@ impl IFabricClusterManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRecoverServicePartitions( ::core::mem::transmute_copy(&servicename), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRecoverServicePartitions< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRecoverServicePartitions(::core::mem::transmute(&context)) + this.EndRecoverServicePartitions(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginRecoverSystemPartitions< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( @@ -2656,31 +2717,31 @@ impl IFabricClusterManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRecoverSystemPartitions( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRecoverSystemPartitions< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRecoverSystemPartitions(::core::mem::transmute(&context)) + this.EndRecoverSystemPartitions(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -2723,11 +2784,12 @@ impl IFabricClusterManagementClient2_Vtbl { EndRecoverSystemPartitions: EndRecoverSystemPartitions::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricClusterManagementClient3_Impl: Sized + IFabricClusterManagementClient2_Impl { @@ -2735,66 +2797,66 @@ pub trait IFabricClusterManagementClient3_Impl: &self, description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUpdateFabricUpgrade( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginStopNode( &self, stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndStopNode( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginRestartNode( &self, restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRestartNode( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginStartNode( &self, startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndStartNode( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn CopyClusterPackage( &self, - imagestoreconnectionstring: &::windows::core::PCWSTR, - clustermanifestpath: &::windows::core::PCWSTR, - clustermanifestpathinimagestore: &::windows::core::PCWSTR, - codepackagepath: &::windows::core::PCWSTR, - codepackagepathinimagestore: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<()>; + 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, - imagestoreconnectionstring: &::windows::core::PCWSTR, - clustermanifestpathinimagestore: &::windows::core::PCWSTR, - codepackagepathinimagestore: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<()>; + imagestoreconnectionstring: &::windows_core::PCWSTR, + clustermanifestpathinimagestore: &::windows_core::PCWSTR, + codepackagepathinimagestore: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricClusterManagementClient3 {} +impl ::windows_core::RuntimeName for IFabricClusterManagementClient3 {} impl IFabricClusterManagementClient3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient3_Impl, const OFFSET: isize, >() -> IFabricClusterManagementClient3_Vtbl { unsafe extern "system" fn BeginUpdateFabricUpgrade< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient3_Impl, const OFFSET: isize, >( @@ -2803,36 +2865,36 @@ impl IFabricClusterManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUpdateFabricUpgrade( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateFabricUpgrade< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUpdateFabricUpgrade(::core::mem::transmute(&context)) + this.EndUpdateFabricUpgrade(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginStopNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient3_Impl, const OFFSET: isize, >( @@ -2841,35 +2903,36 @@ impl IFabricClusterManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginStopNode( ::core::mem::transmute_copy(&stopnodedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndStopNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndStopNode(::core::mem::transmute(&context)).into() + this.EndStopNode(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn BeginRestartNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient3_Impl, const OFFSET: isize, >( @@ -2878,35 +2941,36 @@ impl IFabricClusterManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRestartNode( ::core::mem::transmute_copy(&restartnodedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRestartNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRestartNode(::core::mem::transmute(&context)).into() + this.EndRestartNode(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn BeginStartNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient3_Impl, const OFFSET: isize, >( @@ -2915,45 +2979,46 @@ impl IFabricClusterManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginStartNode( ::core::mem::transmute_copy(&startnodedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndStartNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndStartNode(::core::mem::transmute(&context)).into() + this.EndStartNode(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn CopyClusterPackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + imagestoreconnectionstring: ::windows_core::PCWSTR, + clustermanifestpath: ::windows_core::PCWSTR, + clustermanifestpathinimagestore: ::windows_core::PCWSTR, + codepackagepath: ::windows_core::PCWSTR, + codepackagepathinimagestore: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CopyClusterPackage( @@ -2966,15 +3031,15 @@ impl IFabricClusterManagementClient3_Vtbl { .into() } unsafe extern "system" fn RemoveClusterPackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + imagestoreconnectionstring: ::windows_core::PCWSTR, + clustermanifestpathinimagestore: ::windows_core::PCWSTR, + codepackagepathinimagestore: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveClusterPackage( @@ -2998,34 +3063,35 @@ impl IFabricClusterManagementClient3_Vtbl { RemoveClusterPackage: RemoveClusterPackage::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricClusterManagementClient4_Impl: Sized + IFabricClusterManagementClient3_Impl { fn BeginRollbackFabricUpgrade( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRollbackFabricUpgrade( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricClusterManagementClient4 {} +impl ::windows_core::RuntimeName for IFabricClusterManagementClient4 {} impl IFabricClusterManagementClient4_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient4_Impl, const OFFSET: isize, >() -> IFabricClusterManagementClient4_Vtbl { unsafe extern "system" fn BeginRollbackFabricUpgrade< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient4_Impl, const OFFSET: isize, >( @@ -3033,31 +3099,31 @@ impl IFabricClusterManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRollbackFabricUpgrade( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRollbackFabricUpgrade< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRollbackFabricUpgrade(::core::mem::transmute(&context)) + this.EndRollbackFabricUpgrade(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -3066,70 +3132,71 @@ impl IFabricClusterManagementClient4_Vtbl { EndRollbackFabricUpgrade: EndRollbackFabricUpgrade::, } } - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricClusterManagementClient5_Impl: Sized + IFabricClusterManagementClient4_Impl { fn BeginResetPartitionLoad( &self, - partitionid: &::windows::core::GUID, + partitionid: &::windows_core::GUID, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndResetPartitionLoad( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricClusterManagementClient5 {} +impl ::windows_core::RuntimeName for IFabricClusterManagementClient5 {} impl IFabricClusterManagementClient5_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient5_Impl, const OFFSET: isize, >() -> IFabricClusterManagementClient5_Vtbl { unsafe extern "system" fn BeginResetPartitionLoad< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginResetPartitionLoad( ::core::mem::transmute(&partitionid), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndResetPartitionLoad< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndResetPartitionLoad(::core::mem::transmute(&context)) + this.EndResetPartitionLoad(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -3138,14 +3205,16 @@ impl IFabricClusterManagementClient5_Vtbl { EndResetPartitionLoad: EndResetPartitionLoad::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricClusterManagementClient6_Impl: Sized + IFabricClusterManagementClient5_Impl { @@ -3153,22 +3222,24 @@ pub trait IFabricClusterManagementClient6_Impl: &self, enabled: ::windows::Win32::Foundation::BOOLEAN, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndToggleVerboseServicePlacementHealthReporting( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricClusterManagementClient6 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricClusterManagementClient6 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricClusterManagementClient6_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient6_Impl, const OFFSET: isize, >() -> IFabricClusterManagementClient6_Vtbl { unsafe extern "system" fn BeginToggleVerboseServicePlacementHealthReporting< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient6_Impl, const OFFSET: isize, >( @@ -3177,33 +3248,35 @@ impl IFabricClusterManagementClient6_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginToggleVerboseServicePlacementHealthReporting( ::core::mem::transmute_copy(&enabled), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndToggleVerboseServicePlacementHealthReporting< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient6_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndToggleVerboseServicePlacementHealthReporting(::core::mem::transmute(&context)) - .into() + this.EndToggleVerboseServicePlacementHealthReporting(::windows_core::from_raw_borrowed( + &context, + )) + .into() } Self { base__: IFabricClusterManagementClient5_Vtbl::new::(), @@ -3213,15 +3286,17 @@ impl IFabricClusterManagementClient6_Vtbl { EndToggleVerboseServicePlacementHealthReporting::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricClusterManagementClient7_Impl: Sized + IFabricClusterManagementClient6_Impl { @@ -3229,58 +3304,60 @@ pub trait IFabricClusterManagementClient7_Impl: &self, startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUpgradeConfiguration( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetClusterConfigurationUpgradeStatus( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetClusterConfigurationUpgradeStatus( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetClusterConfiguration( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetClusterConfiguration( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetUpgradesPendingApproval( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetUpgradesPendingApproval( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginStartApprovedUpgrades( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndStartApprovedUpgrades( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricClusterManagementClient7 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricClusterManagementClient7 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricClusterManagementClient7_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient7_Impl, const OFFSET: isize, >() -> IFabricClusterManagementClient7_Vtbl { unsafe extern "system" fn BeginUpgradeConfiguration< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient7_Impl, const OFFSET: isize, >( @@ -3289,36 +3366,36 @@ impl IFabricClusterManagementClient7_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUpgradeConfiguration( ::core::mem::transmute_copy(&startupgradedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUpgradeConfiguration< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient7_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUpgradeConfiguration(::core::mem::transmute(&context)) + this.EndUpgradeConfiguration(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetClusterConfigurationUpgradeStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient7_Impl, const OFFSET: isize, >( @@ -3326,41 +3403,43 @@ impl IFabricClusterManagementClient7_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetClusterConfigurationUpgradeStatus( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetClusterConfigurationUpgradeStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetClusterConfigurationUpgradeStatus(::core::mem::transmute(&context)) { + match this.EndGetClusterConfigurationUpgradeStatus(::windows_core::from_raw_borrowed( + &context, + )) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetClusterConfiguration< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient7_Impl, const OFFSET: isize, >( @@ -3368,41 +3447,41 @@ impl IFabricClusterManagementClient7_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetClusterConfiguration( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetClusterConfiguration< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetClusterConfiguration(::core::mem::transmute(&context)) { + match this.EndGetClusterConfiguration(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetUpgradesPendingApproval< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient7_Impl, const OFFSET: isize, >( @@ -3410,35 +3489,35 @@ impl IFabricClusterManagementClient7_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetUpgradesPendingApproval( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetUpgradesPendingApproval< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient7_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndGetUpgradesPendingApproval(::core::mem::transmute(&context)) + this.EndGetUpgradesPendingApproval(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginStartApprovedUpgrades< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient7_Impl, const OFFSET: isize, >( @@ -3446,31 +3525,31 @@ impl IFabricClusterManagementClient7_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginStartApprovedUpgrades( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndStartApprovedUpgrades< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient7_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndStartApprovedUpgrades(::core::mem::transmute(&context)) + this.EndStartApprovedUpgrades(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -3499,16 +3578,18 @@ impl IFabricClusterManagementClient7_Vtbl { EndStartApprovedUpgrades: EndStartApprovedUpgrades::, } } - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricClusterManagementClient8_Impl: Sized + IFabricClusterManagementClient7_Impl { @@ -3516,22 +3597,24 @@ pub trait IFabricClusterManagementClient8_Impl: &self, querydescription: *const super::super::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetClusterManifest2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricClusterManagementClient8 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricClusterManagementClient8 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricClusterManagementClient8_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient8_Impl, const OFFSET: isize, >() -> IFabricClusterManagementClient8_Vtbl { unsafe extern "system" fn BeginGetClusterManifest2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient8_Impl, const OFFSET: isize, >( @@ -3540,36 +3623,36 @@ impl IFabricClusterManagementClient8_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetClusterManifest2( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetClusterManifest2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient8_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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetClusterManifest2(::core::mem::transmute(&context)) { + match this.EndGetClusterManifest2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -3580,49 +3663,53 @@ impl IFabricClusterManagementClient8_Vtbl { EndGetClusterManifest2: EndGetClusterManifest2::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || 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 + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricClusterManagementClient9_Impl: Sized + IFabricClusterManagementClient8_Impl { fn BeginGetUpgradeOrchestrationServiceState( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetUpgradeOrchestrationServiceState( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginSetUpgradeOrchestrationServiceState( &self, - state: &::windows::core::PCWSTR, + state: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndSetUpgradeOrchestrationServiceState( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricClusterManagementClient9 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricClusterManagementClient9 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricClusterManagementClient9_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient9_Impl, const OFFSET: isize, >() -> IFabricClusterManagementClient9_Vtbl { unsafe extern "system" fn BeginGetUpgradeOrchestrationServiceState< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient9_Impl, const OFFSET: isize, >( @@ -3630,79 +3717,83 @@ impl IFabricClusterManagementClient9_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetUpgradeOrchestrationServiceState( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetUpgradeOrchestrationServiceState< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient9_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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetUpgradeOrchestrationServiceState(::core::mem::transmute(&context)) { + match this + .EndGetUpgradeOrchestrationServiceState(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginSetUpgradeOrchestrationServiceState< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient9_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - state: ::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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginSetUpgradeOrchestrationServiceState( ::core::mem::transmute(&state), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndSetUpgradeOrchestrationServiceState< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricClusterManagementClient9_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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndSetUpgradeOrchestrationServiceState(::core::mem::transmute(&context)) { + match this + .EndSetUpgradeOrchestrationServiceState(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -3731,32 +3822,36 @@ impl IFabricClusterManagementClient9_Vtbl { >, } } - 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 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricDeployedApplicationHealthResult_Impl: Sized { fn get_DeployedApplicationHealth( &self, ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH; } -impl ::windows::core::RuntimeName for IFabricDeployedApplicationHealthResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricDeployedApplicationHealthResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricDeployedApplicationHealthResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricDeployedApplicationHealthResult_Impl, const OFFSET: isize, >() -> IFabricDeployedApplicationHealthResult_Vtbl { unsafe extern "system" fn get_DeployedApplicationHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricDeployedApplicationHealthResult_Impl, const OFFSET: isize, >( @@ -3767,28 +3862,32 @@ impl IFabricDeployedApplicationHealthResult_Vtbl { this.get_DeployedApplicationHealth() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_DeployedApplicationHealth: get_DeployedApplicationHealth::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricDeployedServicePackageHealthResult_Impl: Sized { fn get_DeployedServicePackageHealth( &self, ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH; } -impl ::windows::core::RuntimeName for IFabricDeployedServicePackageHealthResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricDeployedServicePackageHealthResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricDeployedServicePackageHealthResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricDeployedServicePackageHealthResult_Impl, const OFFSET: isize, >() -> IFabricDeployedServicePackageHealthResult_Vtbl { unsafe extern "system" fn get_DeployedServicePackageHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricDeployedServicePackageHealthResult_Impl, const OFFSET: isize, >( @@ -3799,7 +3898,7 @@ impl IFabricDeployedServicePackageHealthResult_Vtbl { this.get_DeployedServicePackageHealth() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_DeployedServicePackageHealth: get_DeployedServicePackageHealth::< Identity, Impl, @@ -3807,81 +3906,82 @@ impl IFabricDeployedServicePackageHealthResult_Vtbl { >, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricFaultManagementClient_Impl: Sized { fn BeginRestartNode( &self, description: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION2, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRestartNode( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginStartNode( &self, description: *const super::super::FABRIC_START_NODE_DESCRIPTION2, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndStartNode( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginStopNode( &self, description: *const super::super::FABRIC_STOP_NODE_DESCRIPTION2, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndStopNode( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginRestartDeployedCodePackage( &self, description: *const super::super::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRestartDeployedCodePackage( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginMovePrimary( &self, description: *const super::super::FABRIC_MOVE_PRIMARY_DESCRIPTION2, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndMovePrimary( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginMoveSecondary( &self, description: *const super::super::FABRIC_MOVE_SECONDARY_DESCRIPTION2, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndMoveSecondary( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricFaultManagementClient {} +impl ::windows_core::RuntimeName for IFabricFaultManagementClient {} impl IFabricFaultManagementClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricFaultManagementClient_Impl, const OFFSET: isize, >() -> IFabricFaultManagementClient_Vtbl { unsafe extern "system" fn BeginRestartNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( @@ -3890,42 +3990,42 @@ impl IFabricFaultManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRestartNode( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRestartNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndRestartNode(::core::mem::transmute(&context)) { + match this.EndRestartNode(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginStartNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( @@ -3934,42 +4034,42 @@ impl IFabricFaultManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginStartNode( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndStartNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndStartNode(::core::mem::transmute(&context)) { + match this.EndStartNode(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginStopNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( @@ -3978,42 +4078,42 @@ impl IFabricFaultManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginStopNode( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndStopNode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndStopNode(::core::mem::transmute(&context)) { + match this.EndStopNode(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginRestartDeployedCodePackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( @@ -4022,42 +4122,42 @@ impl IFabricFaultManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRestartDeployedCodePackage( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRestartDeployedCodePackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndRestartDeployedCodePackage(::core::mem::transmute(&context)) { + match this.EndRestartDeployedCodePackage(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginMovePrimary< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( @@ -4066,42 +4166,42 @@ impl IFabricFaultManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginMovePrimary( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndMovePrimary< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndMovePrimary(::core::mem::transmute(&context)) { + match this.EndMovePrimary(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginMoveSecondary< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricFaultManagementClient_Impl, const OFFSET: isize, >( @@ -4110,42 +4210,42 @@ impl IFabricFaultManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginMoveSecondary( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndMoveSecondary< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndMoveSecondary(::core::mem::transmute(&context)) { + match this.EndMoveSecondary(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginRestartNode: BeginRestartNode::, EndRestartNode: EndRestartNode::, BeginStartNode: BeginStartNode::, @@ -4164,22 +4264,23 @@ impl IFabricFaultManagementClient_Vtbl { EndMoveSecondary: EndMoveSecondary::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGatewayInformationResult_Impl: Sized { fn get_GatewayInformation(&self) -> *mut super::super::FABRIC_GATEWAY_INFORMATION; } -impl ::windows::core::RuntimeName for IFabricGatewayInformationResult {} +impl ::windows_core::RuntimeName for IFabricGatewayInformationResult {} impl IFabricGatewayInformationResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGatewayInformationResult_Impl, const OFFSET: isize, >() -> IFabricGatewayInformationResult_Vtbl { unsafe extern "system" fn get_GatewayInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGatewayInformationResult_Impl, const OFFSET: isize, >( @@ -4190,26 +4291,27 @@ impl IFabricGatewayInformationResult_Vtbl { this.get_GatewayInformation() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_GatewayInformation: get_GatewayInformation::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetApplicationListResult_Impl: Sized { fn get_ApplicationList(&self) -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetApplicationListResult {} +impl ::windows_core::RuntimeName for IFabricGetApplicationListResult {} impl IFabricGetApplicationListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationListResult_Impl, const OFFSET: isize, >() -> IFabricGetApplicationListResult_Vtbl { unsafe extern "system" fn get_ApplicationList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationListResult_Impl, const OFFSET: isize, >( @@ -4220,28 +4322,29 @@ impl IFabricGetApplicationListResult_Vtbl { this.get_ApplicationList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ApplicationList: get_ApplicationList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetApplicationListResult2_Impl: Sized + IFabricGetApplicationListResult_Impl { fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetApplicationListResult2 {} +impl ::windows_core::RuntimeName for IFabricGetApplicationListResult2 {} impl IFabricGetApplicationListResult2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationListResult2_Impl, const OFFSET: isize, >() -> IFabricGetApplicationListResult2_Vtbl { unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationListResult2_Impl, const OFFSET: isize, >( @@ -4256,25 +4359,26 @@ impl IFabricGetApplicationListResult2_Vtbl { get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetApplicationLoadInformationResult_Impl: Sized { fn get_ApplicationLoadInformation( &self, ) -> *mut super::super::FABRIC_APPLICATION_LOAD_INFORMATION; } -impl ::windows::core::RuntimeName for IFabricGetApplicationLoadInformationResult {} +impl ::windows_core::RuntimeName for IFabricGetApplicationLoadInformationResult {} impl IFabricGetApplicationLoadInformationResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationLoadInformationResult_Impl, const OFFSET: isize, >() -> IFabricGetApplicationLoadInformationResult_Vtbl { unsafe extern "system" fn get_ApplicationLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationLoadInformationResult_Impl, const OFFSET: isize, >( @@ -4285,26 +4389,27 @@ impl IFabricGetApplicationLoadInformationResult_Vtbl { this.get_ApplicationLoadInformation() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ApplicationLoadInformation: get_ApplicationLoadInformation::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetApplicationNameResult_Impl: Sized { fn get_ApplicationName(&self) -> *mut super::super::FABRIC_APPLICATION_NAME_QUERY_RESULT; } -impl ::windows::core::RuntimeName for IFabricGetApplicationNameResult {} +impl ::windows_core::RuntimeName for IFabricGetApplicationNameResult {} impl IFabricGetApplicationNameResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationNameResult_Impl, const OFFSET: isize, >() -> IFabricGetApplicationNameResult_Vtbl { unsafe extern "system" fn get_ApplicationName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationNameResult_Impl, const OFFSET: isize, >( @@ -4315,29 +4420,30 @@ impl IFabricGetApplicationNameResult_Vtbl { this.get_ApplicationName() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ApplicationName: get_ApplicationName::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetApplicationNetworkListResult_Impl: Sized { fn get_ApplicationNetworkList( &self, ) -> *mut super::super::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST; fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetApplicationNetworkListResult {} +impl ::windows_core::RuntimeName for IFabricGetApplicationNetworkListResult {} impl IFabricGetApplicationNetworkListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationNetworkListResult_Impl, const OFFSET: isize, >() -> IFabricGetApplicationNetworkListResult_Vtbl { unsafe extern "system" fn get_ApplicationNetworkList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationNetworkListResult_Impl, const OFFSET: isize, >( @@ -4348,7 +4454,7 @@ impl IFabricGetApplicationNetworkListResult_Vtbl { this.get_ApplicationNetworkList() } unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationNetworkListResult_Impl, const OFFSET: isize, >( @@ -4359,29 +4465,30 @@ impl IFabricGetApplicationNetworkListResult_Vtbl { this.get_PagingStatus() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ApplicationNetworkList: get_ApplicationNetworkList::, get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetApplicationTypeListResult_Impl: Sized { fn get_ApplicationTypeList( &self, ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetApplicationTypeListResult {} +impl ::windows_core::RuntimeName for IFabricGetApplicationTypeListResult {} impl IFabricGetApplicationTypeListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationTypeListResult_Impl, const OFFSET: isize, >() -> IFabricGetApplicationTypeListResult_Vtbl { unsafe extern "system" fn get_ApplicationTypeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationTypeListResult_Impl, const OFFSET: isize, >( @@ -4392,29 +4499,30 @@ impl IFabricGetApplicationTypeListResult_Vtbl { this.get_ApplicationTypeList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ApplicationTypeList: get_ApplicationTypeList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetApplicationTypePagedListResult_Impl: Sized { fn get_ApplicationTypePagedList( &self, ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST; fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetApplicationTypePagedListResult {} +impl ::windows_core::RuntimeName for IFabricGetApplicationTypePagedListResult {} impl IFabricGetApplicationTypePagedListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationTypePagedListResult_Impl, const OFFSET: isize, >() -> IFabricGetApplicationTypePagedListResult_Vtbl { unsafe extern "system" fn get_ApplicationTypePagedList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationTypePagedListResult_Impl, const OFFSET: isize, >( @@ -4425,7 +4533,7 @@ impl IFabricGetApplicationTypePagedListResult_Vtbl { this.get_ApplicationTypePagedList() } unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetApplicationTypePagedListResult_Impl, const OFFSET: isize, >( @@ -4436,27 +4544,28 @@ impl IFabricGetApplicationTypePagedListResult_Vtbl { this.get_PagingStatus() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ApplicationTypePagedList: get_ApplicationTypePagedList::, get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetClusterHealthChunkResult_Impl: Sized { fn get_ClusterHealthChunk(&self) -> *mut super::super::FABRIC_CLUSTER_HEALTH_CHUNK; } -impl ::windows::core::RuntimeName for IFabricGetClusterHealthChunkResult {} +impl ::windows_core::RuntimeName for IFabricGetClusterHealthChunkResult {} impl IFabricGetClusterHealthChunkResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetClusterHealthChunkResult_Impl, const OFFSET: isize, >() -> IFabricGetClusterHealthChunkResult_Vtbl { unsafe extern "system" fn get_ClusterHealthChunk< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetClusterHealthChunkResult_Impl, const OFFSET: isize, >( @@ -4467,26 +4576,30 @@ impl IFabricGetClusterHealthChunkResult_Vtbl { this.get_ClusterHealthChunk() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ClusterHealthChunk: get_ClusterHealthChunk::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricGetClusterLoadInformationResult_Impl: Sized { fn get_ClusterLoadInformation(&self) -> *mut super::super::FABRIC_CLUSTER_LOAD_INFORMATION; } -impl ::windows::core::RuntimeName for IFabricGetClusterLoadInformationResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricGetClusterLoadInformationResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricGetClusterLoadInformationResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetClusterLoadInformationResult_Impl, const OFFSET: isize, >() -> IFabricGetClusterLoadInformationResult_Vtbl { unsafe extern "system" fn get_ClusterLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetClusterLoadInformationResult_Impl, const OFFSET: isize, >( @@ -4497,28 +4610,29 @@ impl IFabricGetClusterLoadInformationResult_Vtbl { this.get_ClusterLoadInformation() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ClusterLoadInformation: get_ClusterLoadInformation::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetDeployedApplicationListResult_Impl: Sized { fn get_DeployedApplicationList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetDeployedApplicationListResult {} +impl ::windows_core::RuntimeName for IFabricGetDeployedApplicationListResult {} impl IFabricGetDeployedApplicationListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedApplicationListResult_Impl, const OFFSET: isize, >() -> IFabricGetDeployedApplicationListResult_Vtbl { unsafe extern "system" fn get_DeployedApplicationList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedApplicationListResult_Impl, const OFFSET: isize, >( @@ -4529,29 +4643,30 @@ impl IFabricGetDeployedApplicationListResult_Vtbl { this.get_DeployedApplicationList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_DeployedApplicationList: get_DeployedApplicationList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetDeployedApplicationPagedListResult_Impl: Sized { fn get_DeployedApplicationPagedList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST; fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetDeployedApplicationPagedListResult {} +impl ::windows_core::RuntimeName for IFabricGetDeployedApplicationPagedListResult {} impl IFabricGetDeployedApplicationPagedListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedApplicationPagedListResult_Impl, const OFFSET: isize, >() -> IFabricGetDeployedApplicationPagedListResult_Vtbl { unsafe extern "system" fn get_DeployedApplicationPagedList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedApplicationPagedListResult_Impl, const OFFSET: isize, >( @@ -4562,7 +4677,7 @@ impl IFabricGetDeployedApplicationPagedListResult_Vtbl { this.get_DeployedApplicationPagedList() } unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedApplicationPagedListResult_Impl, const OFFSET: isize, >( @@ -4573,7 +4688,7 @@ impl IFabricGetDeployedApplicationPagedListResult_Vtbl { this.get_PagingStatus() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_DeployedApplicationPagedList: get_DeployedApplicationPagedList::< Identity, Impl, @@ -4582,24 +4697,28 @@ impl IFabricGetDeployedApplicationPagedListResult_Vtbl { get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricGetDeployedCodePackageListResult_Impl: Sized { fn get_DeployedCodePackageList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetDeployedCodePackageListResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricGetDeployedCodePackageListResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricGetDeployedCodePackageListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedCodePackageListResult_Impl, const OFFSET: isize, >() -> IFabricGetDeployedCodePackageListResult_Vtbl { unsafe extern "system" fn get_DeployedCodePackageList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedCodePackageListResult_Impl, const OFFSET: isize, >( @@ -4610,29 +4729,30 @@ impl IFabricGetDeployedCodePackageListResult_Vtbl { this.get_DeployedCodePackageList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_DeployedCodePackageList: get_DeployedCodePackageList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetDeployedNetworkCodePackageListResult_Impl: Sized { fn get_DeployedNetworkCodePackageList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST; fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetDeployedNetworkCodePackageListResult {} +impl ::windows_core::RuntimeName for IFabricGetDeployedNetworkCodePackageListResult {} impl IFabricGetDeployedNetworkCodePackageListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedNetworkCodePackageListResult_Impl, const OFFSET: isize, >() -> IFabricGetDeployedNetworkCodePackageListResult_Vtbl { unsafe extern "system" fn get_DeployedNetworkCodePackageList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedNetworkCodePackageListResult_Impl, const OFFSET: isize, >( @@ -4643,7 +4763,7 @@ impl IFabricGetDeployedNetworkCodePackageListResult_Vtbl { this.get_DeployedNetworkCodePackageList() } unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedNetworkCodePackageListResult_Impl, const OFFSET: isize, >( @@ -4654,7 +4774,7 @@ impl IFabricGetDeployedNetworkCodePackageListResult_Vtbl { this.get_PagingStatus() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_DeployedNetworkCodePackageList: get_DeployedNetworkCodePackageList::< Identity, Impl, @@ -4663,25 +4783,26 @@ impl IFabricGetDeployedNetworkCodePackageListResult_Vtbl { get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetDeployedNetworkCodePackageListResult < > as::windows_core::ComInterface >::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetDeployedNetworkListResult_Impl: Sized { fn get_DeployedNetworkList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST; fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetDeployedNetworkListResult {} +impl ::windows_core::RuntimeName for IFabricGetDeployedNetworkListResult {} impl IFabricGetDeployedNetworkListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedNetworkListResult_Impl, const OFFSET: isize, >() -> IFabricGetDeployedNetworkListResult_Vtbl { unsafe extern "system" fn get_DeployedNetworkList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedNetworkListResult_Impl, const OFFSET: isize, >( @@ -4692,7 +4813,7 @@ impl IFabricGetDeployedNetworkListResult_Vtbl { this.get_DeployedNetworkList() } unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedNetworkListResult_Impl, const OFFSET: isize, >( @@ -4703,29 +4824,30 @@ impl IFabricGetDeployedNetworkListResult_Vtbl { this.get_PagingStatus() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_DeployedNetworkList: get_DeployedNetworkList::, get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetDeployedReplicaListResult_Impl: Sized { fn get_DeployedReplicaList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetDeployedReplicaListResult {} +impl ::windows_core::RuntimeName for IFabricGetDeployedReplicaListResult {} impl IFabricGetDeployedReplicaListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedReplicaListResult_Impl, const OFFSET: isize, >() -> IFabricGetDeployedReplicaListResult_Vtbl { unsafe extern "system" fn get_DeployedReplicaList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedReplicaListResult_Impl, const OFFSET: isize, >( @@ -4736,28 +4858,29 @@ impl IFabricGetDeployedReplicaListResult_Vtbl { this.get_DeployedReplicaList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_DeployedReplicaList: get_DeployedReplicaList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetDeployedServicePackageListResult_Impl: Sized { fn get_DeployedServicePackageList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetDeployedServicePackageListResult {} +impl ::windows_core::RuntimeName for IFabricGetDeployedServicePackageListResult {} impl IFabricGetDeployedServicePackageListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedServicePackageListResult_Impl, const OFFSET: isize, >() -> IFabricGetDeployedServicePackageListResult_Vtbl { unsafe extern "system" fn get_DeployedServicePackageList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedServicePackageListResult_Impl, const OFFSET: isize, >( @@ -4768,28 +4891,29 @@ impl IFabricGetDeployedServicePackageListResult_Vtbl { this.get_DeployedServicePackageList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_DeployedServicePackageList: get_DeployedServicePackageList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetDeployedServiceReplicaDetailResult_Impl: Sized { fn get_ReplicaDetail( &self, ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM; } -impl ::windows::core::RuntimeName for IFabricGetDeployedServiceReplicaDetailResult {} +impl ::windows_core::RuntimeName for IFabricGetDeployedServiceReplicaDetailResult {} impl IFabricGetDeployedServiceReplicaDetailResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedServiceReplicaDetailResult_Impl, const OFFSET: isize, >() -> IFabricGetDeployedServiceReplicaDetailResult_Vtbl { unsafe extern "system" fn get_ReplicaDetail< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedServiceReplicaDetailResult_Impl, const OFFSET: isize, >( @@ -4800,28 +4924,29 @@ impl IFabricGetDeployedServiceReplicaDetailResult_Vtbl { this.get_ReplicaDetail() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ReplicaDetail: get_ReplicaDetail::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetDeployedServiceTypeListResult_Impl: Sized { fn get_DeployedServiceTypeList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetDeployedServiceTypeListResult {} +impl ::windows_core::RuntimeName for IFabricGetDeployedServiceTypeListResult {} impl IFabricGetDeployedServiceTypeListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedServiceTypeListResult_Impl, const OFFSET: isize, >() -> IFabricGetDeployedServiceTypeListResult_Vtbl { unsafe extern "system" fn get_DeployedServiceTypeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetDeployedServiceTypeListResult_Impl, const OFFSET: isize, >( @@ -4832,29 +4957,30 @@ impl IFabricGetDeployedServiceTypeListResult_Vtbl { this.get_DeployedServiceTypeList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_DeployedServiceTypeList: get_DeployedServiceTypeList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetNetworkApplicationListResult_Impl: Sized { fn get_NetworkApplicationList( &self, ) -> *mut super::super::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST; fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetNetworkApplicationListResult {} +impl ::windows_core::RuntimeName for IFabricGetNetworkApplicationListResult {} impl IFabricGetNetworkApplicationListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNetworkApplicationListResult_Impl, const OFFSET: isize, >() -> IFabricGetNetworkApplicationListResult_Vtbl { unsafe extern "system" fn get_NetworkApplicationList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNetworkApplicationListResult_Impl, const OFFSET: isize, >( @@ -4865,7 +4991,7 @@ impl IFabricGetNetworkApplicationListResult_Vtbl { this.get_NetworkApplicationList() } unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNetworkApplicationListResult_Impl, const OFFSET: isize, >( @@ -4876,28 +5002,29 @@ impl IFabricGetNetworkApplicationListResult_Vtbl { this.get_PagingStatus() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_NetworkApplicationList: get_NetworkApplicationList::, get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetNetworkListResult_Impl: Sized { fn get_NetworkList(&self) -> *mut super::super::FABRIC_NETWORK_QUERY_RESULT_LIST; fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetNetworkListResult {} +impl ::windows_core::RuntimeName for IFabricGetNetworkListResult {} impl IFabricGetNetworkListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNetworkListResult_Impl, const OFFSET: isize, >() -> IFabricGetNetworkListResult_Vtbl { unsafe extern "system" fn get_NetworkList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNetworkListResult_Impl, const OFFSET: isize, >( @@ -4908,7 +5035,7 @@ impl IFabricGetNetworkListResult_Vtbl { this.get_NetworkList() } unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNetworkListResult_Impl, const OFFSET: isize, >( @@ -4919,28 +5046,29 @@ impl IFabricGetNetworkListResult_Vtbl { this.get_PagingStatus() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_NetworkList: get_NetworkList::, get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetNetworkNodeListResult_Impl: Sized { fn get_NetworkNodeList(&self) -> *mut super::super::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST; fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetNetworkNodeListResult {} +impl ::windows_core::RuntimeName for IFabricGetNetworkNodeListResult {} impl IFabricGetNetworkNodeListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNetworkNodeListResult_Impl, const OFFSET: isize, >() -> IFabricGetNetworkNodeListResult_Vtbl { unsafe extern "system" fn get_NetworkNodeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNetworkNodeListResult_Impl, const OFFSET: isize, >( @@ -4951,7 +5079,7 @@ impl IFabricGetNetworkNodeListResult_Vtbl { this.get_NetworkNodeList() } unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNetworkNodeListResult_Impl, const OFFSET: isize, >( @@ -4962,27 +5090,31 @@ impl IFabricGetNetworkNodeListResult_Vtbl { this.get_PagingStatus() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_NetworkNodeList: get_NetworkNodeList::, get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricGetNodeListResult_Impl: Sized { fn get_NodeList(&self) -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetNodeListResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricGetNodeListResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricGetNodeListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNodeListResult_Impl, const OFFSET: isize, >() -> IFabricGetNodeListResult_Vtbl { unsafe extern "system" fn get_NodeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNodeListResult_Impl, const OFFSET: isize, >( @@ -4993,26 +5125,30 @@ impl IFabricGetNodeListResult_Vtbl { this.get_NodeList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_NodeList: get_NodeList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricGetNodeListResult2_Impl: Sized + IFabricGetNodeListResult_Impl { fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetNodeListResult2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricGetNodeListResult2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricGetNodeListResult2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNodeListResult2_Impl, const OFFSET: isize, >() -> IFabricGetNodeListResult2_Vtbl { unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNodeListResult2_Impl, const OFFSET: isize, >( @@ -5027,23 +5163,27 @@ impl IFabricGetNodeListResult2_Vtbl { get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricGetNodeLoadInformationResult_Impl: Sized { fn get_NodeLoadInformation(&self) -> *mut super::super::FABRIC_NODE_LOAD_INFORMATION; } -impl ::windows::core::RuntimeName for IFabricGetNodeLoadInformationResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricGetNodeLoadInformationResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricGetNodeLoadInformationResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNodeLoadInformationResult_Impl, const OFFSET: isize, >() -> IFabricGetNodeLoadInformationResult_Vtbl { unsafe extern "system" fn get_NodeLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetNodeLoadInformationResult_Impl, const OFFSET: isize, >( @@ -5054,26 +5194,27 @@ impl IFabricGetNodeLoadInformationResult_Vtbl { this.get_NodeLoadInformation() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_NodeLoadInformation: get_NodeLoadInformation::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetPartitionListResult_Impl: Sized { fn get_PartitionList(&self) -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetPartitionListResult {} +impl ::windows_core::RuntimeName for IFabricGetPartitionListResult {} impl IFabricGetPartitionListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetPartitionListResult_Impl, const OFFSET: isize, >() -> IFabricGetPartitionListResult_Vtbl { unsafe extern "system" fn get_PartitionList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetPartitionListResult_Impl, const OFFSET: isize, >( @@ -5084,26 +5225,27 @@ impl IFabricGetPartitionListResult_Vtbl { this.get_PartitionList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_PartitionList: get_PartitionList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetPartitionListResult2_Impl: Sized + IFabricGetPartitionListResult_Impl { fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetPartitionListResult2 {} +impl ::windows_core::RuntimeName for IFabricGetPartitionListResult2 {} impl IFabricGetPartitionListResult2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetPartitionListResult2_Impl, const OFFSET: isize, >() -> IFabricGetPartitionListResult2_Vtbl { unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetPartitionListResult2_Impl, const OFFSET: isize, >( @@ -5118,23 +5260,27 @@ impl IFabricGetPartitionListResult2_Vtbl { get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricGetPartitionLoadInformationResult_Impl: Sized { fn get_PartitionLoadInformation(&self) -> *mut super::super::FABRIC_PARTITION_LOAD_INFORMATION; } -impl ::windows::core::RuntimeName for IFabricGetPartitionLoadInformationResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricGetPartitionLoadInformationResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricGetPartitionLoadInformationResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetPartitionLoadInformationResult_Impl, const OFFSET: isize, >() -> IFabricGetPartitionLoadInformationResult_Vtbl { unsafe extern "system" fn get_PartitionLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetPartitionLoadInformationResult_Impl, const OFFSET: isize, >( @@ -5145,28 +5291,29 @@ impl IFabricGetPartitionLoadInformationResult_Vtbl { this.get_PartitionLoadInformation() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_PartitionLoadInformation: get_PartitionLoadInformation::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetProvisionedCodeVersionListResult_Impl: Sized { fn get_ProvisionedCodeVersionList( &self, ) -> *mut super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetProvisionedCodeVersionListResult {} +impl ::windows_core::RuntimeName for IFabricGetProvisionedCodeVersionListResult {} impl IFabricGetProvisionedCodeVersionListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetProvisionedCodeVersionListResult_Impl, const OFFSET: isize, >() -> IFabricGetProvisionedCodeVersionListResult_Vtbl { unsafe extern "system" fn get_ProvisionedCodeVersionList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetProvisionedCodeVersionListResult_Impl, const OFFSET: isize, >( @@ -5177,28 +5324,29 @@ impl IFabricGetProvisionedCodeVersionListResult_Vtbl { this.get_ProvisionedCodeVersionList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ProvisionedCodeVersionList: get_ProvisionedCodeVersionList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetProvisionedConfigVersionListResult_Impl: Sized { fn get_ProvisionedConfigVersionList( &self, ) -> *mut super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetProvisionedConfigVersionListResult {} +impl ::windows_core::RuntimeName for IFabricGetProvisionedConfigVersionListResult {} impl IFabricGetProvisionedConfigVersionListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetProvisionedConfigVersionListResult_Impl, const OFFSET: isize, >() -> IFabricGetProvisionedConfigVersionListResult_Vtbl { unsafe extern "system" fn get_ProvisionedConfigVersionList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetProvisionedConfigVersionListResult_Impl, const OFFSET: isize, >( @@ -5209,7 +5357,7 @@ impl IFabricGetProvisionedConfigVersionListResult_Vtbl { this.get_ProvisionedConfigVersionList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ProvisionedConfigVersionList: get_ProvisionedConfigVersionList::< Identity, Impl, @@ -5217,22 +5365,26 @@ impl IFabricGetProvisionedConfigVersionListResult_Vtbl { >, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricGetRepairTaskListResult_Impl: Sized { fn get_Tasks(&self) -> *mut super::super::FABRIC_REPAIR_TASK_LIST; } -impl ::windows::core::RuntimeName for IFabricGetRepairTaskListResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricGetRepairTaskListResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricGetRepairTaskListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetRepairTaskListResult_Impl, const OFFSET: isize, >() -> IFabricGetRepairTaskListResult_Vtbl { unsafe extern "system" fn get_Tasks< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetRepairTaskListResult_Impl, const OFFSET: isize, >( @@ -5243,26 +5395,27 @@ impl IFabricGetRepairTaskListResult_Vtbl { this.get_Tasks() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Tasks: get_Tasks::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetReplicaListResult_Impl: Sized { fn get_ReplicaList(&self) -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetReplicaListResult {} +impl ::windows_core::RuntimeName for IFabricGetReplicaListResult {} impl IFabricGetReplicaListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetReplicaListResult_Impl, const OFFSET: isize, >() -> IFabricGetReplicaListResult_Vtbl { unsafe extern "system" fn get_ReplicaList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetReplicaListResult_Impl, const OFFSET: isize, >( @@ -5273,26 +5426,27 @@ impl IFabricGetReplicaListResult_Vtbl { this.get_ReplicaList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ReplicaList: get_ReplicaList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetReplicaListResult2_Impl: Sized + IFabricGetReplicaListResult_Impl { fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetReplicaListResult2 {} +impl ::windows_core::RuntimeName for IFabricGetReplicaListResult2 {} impl IFabricGetReplicaListResult2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetReplicaListResult2_Impl, const OFFSET: isize, >() -> IFabricGetReplicaListResult2_Vtbl { unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetReplicaListResult2_Impl, const OFFSET: isize, >( @@ -5307,23 +5461,27 @@ impl IFabricGetReplicaListResult2_Vtbl { get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricGetReplicaLoadInformationResult_Impl: Sized { fn get_ReplicaLoadInformation(&self) -> *mut super::super::FABRIC_REPLICA_LOAD_INFORMATION; } -impl ::windows::core::RuntimeName for IFabricGetReplicaLoadInformationResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricGetReplicaLoadInformationResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricGetReplicaLoadInformationResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetReplicaLoadInformationResult_Impl, const OFFSET: isize, >() -> IFabricGetReplicaLoadInformationResult_Vtbl { unsafe extern "system" fn get_ReplicaLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetReplicaLoadInformationResult_Impl, const OFFSET: isize, >( @@ -5334,26 +5492,27 @@ impl IFabricGetReplicaLoadInformationResult_Vtbl { this.get_ReplicaLoadInformation() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ReplicaLoadInformation: get_ReplicaLoadInformation::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetRollingUpgradeMonitoringPolicyResult_Impl: Sized { fn get_Policy(&self) -> *mut super::super::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY; } -impl ::windows::core::RuntimeName for IFabricGetRollingUpgradeMonitoringPolicyResult {} +impl ::windows_core::RuntimeName for IFabricGetRollingUpgradeMonitoringPolicyResult {} impl IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetRollingUpgradeMonitoringPolicyResult_Impl, const OFFSET: isize, >() -> IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { unsafe extern "system" fn get_Policy< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetRollingUpgradeMonitoringPolicyResult_Impl, const OFFSET: isize, >( @@ -5364,28 +5523,29 @@ impl IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { this.get_Policy() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Policy: get_Policy::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricGetRollingUpgradeMonitoringPolicyResult < > as::windows_core::ComInterface >::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetServiceGroupMemberListResult_Impl: Sized { fn get_ServiceGroupMemberList( &self, ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetServiceGroupMemberListResult {} +impl ::windows_core::RuntimeName for IFabricGetServiceGroupMemberListResult {} impl IFabricGetServiceGroupMemberListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetServiceGroupMemberListResult_Impl, const OFFSET: isize, >() -> IFabricGetServiceGroupMemberListResult_Vtbl { unsafe extern "system" fn get_ServiceGroupMemberList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetServiceGroupMemberListResult_Impl, const OFFSET: isize, >( @@ -5396,28 +5556,29 @@ impl IFabricGetServiceGroupMemberListResult_Vtbl { this.get_ServiceGroupMemberList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ServiceGroupMemberList: get_ServiceGroupMemberList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetServiceGroupMemberTypeListResult_Impl: Sized { fn get_ServiceGroupMemberTypeList( &self, ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetServiceGroupMemberTypeListResult {} +impl ::windows_core::RuntimeName for IFabricGetServiceGroupMemberTypeListResult {} impl IFabricGetServiceGroupMemberTypeListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetServiceGroupMemberTypeListResult_Impl, const OFFSET: isize, >() -> IFabricGetServiceGroupMemberTypeListResult_Vtbl { unsafe extern "system" fn get_ServiceGroupMemberTypeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetServiceGroupMemberTypeListResult_Impl, const OFFSET: isize, >( @@ -5428,26 +5589,27 @@ impl IFabricGetServiceGroupMemberTypeListResult_Vtbl { this.get_ServiceGroupMemberTypeList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ServiceGroupMemberTypeList: get_ServiceGroupMemberTypeList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetServiceListResult_Impl: Sized { fn get_ServiceList(&self) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetServiceListResult {} +impl ::windows_core::RuntimeName for IFabricGetServiceListResult {} impl IFabricGetServiceListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetServiceListResult_Impl, const OFFSET: isize, >() -> IFabricGetServiceListResult_Vtbl { unsafe extern "system" fn get_ServiceList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetServiceListResult_Impl, const OFFSET: isize, >( @@ -5458,26 +5620,27 @@ impl IFabricGetServiceListResult_Vtbl { this.get_ServiceList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ServiceList: get_ServiceList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetServiceListResult2_Impl: Sized + IFabricGetServiceListResult_Impl { fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS; } -impl ::windows::core::RuntimeName for IFabricGetServiceListResult2 {} +impl ::windows_core::RuntimeName for IFabricGetServiceListResult2 {} impl IFabricGetServiceListResult2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetServiceListResult2_Impl, const OFFSET: isize, >() -> IFabricGetServiceListResult2_Vtbl { unsafe extern "system" fn get_PagingStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetServiceListResult2_Impl, const OFFSET: isize, >( @@ -5492,23 +5655,24 @@ impl IFabricGetServiceListResult2_Vtbl { get_PagingStatus: get_PagingStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetServiceNameResult_Impl: Sized { fn get_ServiceName(&self) -> *mut super::super::FABRIC_SERVICE_NAME_QUERY_RESULT; } -impl ::windows::core::RuntimeName for IFabricGetServiceNameResult {} +impl ::windows_core::RuntimeName for IFabricGetServiceNameResult {} impl IFabricGetServiceNameResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetServiceNameResult_Impl, const OFFSET: isize, >() -> IFabricGetServiceNameResult_Vtbl { unsafe extern "system" fn get_ServiceName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetServiceNameResult_Impl, const OFFSET: isize, >( @@ -5519,26 +5683,27 @@ impl IFabricGetServiceNameResult_Vtbl { this.get_ServiceName() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ServiceName: get_ServiceName::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetServiceTypeListResult_Impl: Sized { fn get_ServiceTypeList(&self) -> *mut super::super::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricGetServiceTypeListResult {} +impl ::windows_core::RuntimeName for IFabricGetServiceTypeListResult {} impl IFabricGetServiceTypeListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetServiceTypeListResult_Impl, const OFFSET: isize, >() -> IFabricGetServiceTypeListResult_Vtbl { unsafe extern "system" fn get_ServiceTypeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetServiceTypeListResult_Impl, const OFFSET: isize, >( @@ -5549,28 +5714,29 @@ impl IFabricGetServiceTypeListResult_Vtbl { this.get_ServiceTypeList() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ServiceTypeList: get_ServiceTypeList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricGetUnplacedReplicaInformationResult_Impl: Sized { fn get_UnplacedReplicaInformation( &self, ) -> *mut super::super::FABRIC_UNPLACED_REPLICA_INFORMATION; } -impl ::windows::core::RuntimeName for IFabricGetUnplacedReplicaInformationResult {} +impl ::windows_core::RuntimeName for IFabricGetUnplacedReplicaInformationResult {} impl IFabricGetUnplacedReplicaInformationResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetUnplacedReplicaInformationResult_Impl, const OFFSET: isize, >() -> IFabricGetUnplacedReplicaInformationResult_Vtbl { unsafe extern "system" fn get_UnplacedReplicaInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetUnplacedReplicaInformationResult_Impl, const OFFSET: isize, >( @@ -5581,133 +5747,137 @@ impl IFabricGetUnplacedReplicaInformationResult_Vtbl { this.get_UnplacedReplicaInformation() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_UnplacedReplicaInformation: get_UnplacedReplicaInformation::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricHealthClient_Impl: Sized { fn ReportHealth( &self, healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn BeginGetClusterHealth( &self, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetClusterHealth( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetNodeHealth( &self, - nodename: &::windows::core::PCWSTR, + nodename: &::windows_core::PCWSTR, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetNodeHealth( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetApplicationHealth( &self, applicationname: *const u16, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetApplicationHealth( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetServiceHealth( &self, servicename: *const u16, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetServiceHealth( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetPartitionHealth( &self, - partitionid: &::windows::core::GUID, + partitionid: &::windows_core::GUID, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetPartitionHealth( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetReplicaHealth( &self, - partitionid: &::windows::core::GUID, + partitionid: &::windows_core::GUID, replicaid: i64, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetReplicaHealth( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetDeployedApplicationHealth( &self, applicationname: *const u16, - nodename: &::windows::core::PCWSTR, + nodename: &::windows_core::PCWSTR, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedApplicationHealth( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetDeployedServicePackageHealth( &self, applicationname: *const u16, - servicemanifestname: &::windows::core::PCWSTR, - nodename: &::windows::core::PCWSTR, + servicemanifestname: &::windows_core::PCWSTR, + nodename: &::windows_core::PCWSTR, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedServicePackageHealth( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricHealthClient {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricHealthClient {} +#[cfg(feature = "Win32_Foundation")] impl IFabricHealthClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient_Impl, const OFFSET: isize, >() -> IFabricHealthClient_Vtbl { unsafe extern "system" fn ReportHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportHealth(::core::mem::transmute_copy(&healthreport)) .into() } unsafe extern "system" fn BeginGetClusterHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient_Impl, const OFFSET: isize, >( @@ -5716,88 +5886,88 @@ impl IFabricHealthClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetClusterHealth( ::core::mem::transmute_copy(&healthpolicy), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetClusterHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetClusterHealth(::core::mem::transmute(&context)) { + match this.EndGetClusterHealth(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetNodeHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, + nodename: ::windows_core::PCWSTR, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetNodeHealth( ::core::mem::transmute(&nodename), ::core::mem::transmute_copy(&healthpolicy), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetNodeHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetNodeHealth(::core::mem::transmute(&context)) { + match this.EndGetNodeHealth(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetApplicationHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient_Impl, const OFFSET: isize, >( @@ -5807,43 +5977,43 @@ impl IFabricHealthClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetApplicationHealth( ::core::mem::transmute_copy(&applicationname), ::core::mem::transmute_copy(&healthpolicy), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetApplicationHealth(::core::mem::transmute(&context)) { + match this.EndGetApplicationHealth(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetServiceHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient_Impl, const OFFSET: isize, >( @@ -5853,100 +6023,100 @@ impl IFabricHealthClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetServiceHealth( ::core::mem::transmute_copy(&servicename), ::core::mem::transmute_copy(&healthpolicy), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetServiceHealth(::core::mem::transmute(&context)) { + match this.EndGetServiceHealth(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetPartitionHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetPartitionHealth( ::core::mem::transmute(&partitionid), ::core::mem::transmute_copy(&healthpolicy), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetPartitionHealth(::core::mem::transmute(&context)) { + match this.EndGetPartitionHealth(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetReplicaHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetReplicaHealth( @@ -5954,47 +6124,47 @@ impl IFabricHealthClient_Vtbl { ::core::mem::transmute_copy(&replicaid), ::core::mem::transmute_copy(&healthpolicy), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetReplicaHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetReplicaHealth(::core::mem::transmute(&context)) { + match this.EndGetReplicaHealth(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedApplicationHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, applicationname: *const u16, - nodename: ::windows::core::PCWSTR, + nodename: ::windows_core::PCWSTR, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedApplicationHealth( @@ -6002,48 +6172,49 @@ impl IFabricHealthClient_Vtbl { ::core::mem::transmute(&nodename), ::core::mem::transmute_copy(&healthpolicy), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedApplicationHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedApplicationHealth(::core::mem::transmute(&context)) { + match this.EndGetDeployedApplicationHealth(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedServicePackageHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, applicationname: *const u16, - servicemanifestname: ::windows::core::PCWSTR, - nodename: ::windows::core::PCWSTR, + servicemanifestname: ::windows_core::PCWSTR, + nodename: ::windows_core::PCWSTR, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedServicePackageHealth( @@ -6052,36 +6223,38 @@ impl IFabricHealthClient_Vtbl { ::core::mem::transmute(&nodename), ::core::mem::transmute_copy(&healthpolicy), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedServicePackageHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedServicePackageHealth(::core::mem::transmute(&context)) { + match this + .EndGetDeployedServicePackageHealth(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), ReportHealth: ReportHealth::, BeginGetClusterHealth: BeginGetClusterHealth::, EndGetClusterHealth: EndGetClusterHealth::, @@ -6117,101 +6290,105 @@ impl IFabricHealthClient_Vtbl { >, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricHealthClient2_Impl: Sized + IFabricHealthClient_Impl { fn BeginGetClusterHealth2( &self, querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetClusterHealth2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetNodeHealth2( &self, querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetNodeHealth2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetApplicationHealth2( &self, querydescription: *const super::super::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetApplicationHealth2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetServiceHealth2( &self, querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetServiceHealth2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetPartitionHealth2( &self, querydescription: *const super::super::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetPartitionHealth2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetReplicaHealth2( &self, querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetReplicaHealth2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetDeployedApplicationHealth2( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedApplicationHealth2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetDeployedServicePackageHealth2( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedServicePackageHealth2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricHealthClient2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricHealthClient2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricHealthClient2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient2_Impl, const OFFSET: isize, >() -> IFabricHealthClient2_Vtbl { unsafe extern "system" fn BeginGetClusterHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient2_Impl, const OFFSET: isize, >( @@ -6220,42 +6397,42 @@ impl IFabricHealthClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetClusterHealth2( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetClusterHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetClusterHealth2(::core::mem::transmute(&context)) { + match this.EndGetClusterHealth2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetNodeHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient2_Impl, const OFFSET: isize, >( @@ -6264,42 +6441,42 @@ impl IFabricHealthClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetNodeHealth2( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetNodeHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetNodeHealth2(::core::mem::transmute(&context)) { + match this.EndGetNodeHealth2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetApplicationHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient2_Impl, const OFFSET: isize, >( @@ -6308,42 +6485,42 @@ impl IFabricHealthClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetApplicationHealth2( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetApplicationHealth2(::core::mem::transmute(&context)) { + match this.EndGetApplicationHealth2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetServiceHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient2_Impl, const OFFSET: isize, >( @@ -6352,42 +6529,42 @@ impl IFabricHealthClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetServiceHealth2( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetServiceHealth2(::core::mem::transmute(&context)) { + match this.EndGetServiceHealth2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetPartitionHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient2_Impl, const OFFSET: isize, >( @@ -6396,42 +6573,42 @@ impl IFabricHealthClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetPartitionHealth2( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetPartitionHealth2(::core::mem::transmute(&context)) { + match this.EndGetPartitionHealth2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetReplicaHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient2_Impl, const OFFSET: isize, >( @@ -6440,42 +6617,42 @@ impl IFabricHealthClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetReplicaHealth2( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetReplicaHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetReplicaHealth2(::core::mem::transmute(&context)) { + match this.EndGetReplicaHealth2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedApplicationHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient2_Impl, const OFFSET: isize, >( @@ -6484,42 +6661,43 @@ impl IFabricHealthClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedApplicationHealth2( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedApplicationHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedApplicationHealth2(::core::mem::transmute(&context)) { + match this.EndGetDeployedApplicationHealth2(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedServicePackageHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient2_Impl, const OFFSET: isize, >( @@ -6528,36 +6706,38 @@ impl IFabricHealthClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedServicePackageHealth2( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedServicePackageHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedServicePackageHealth2(::core::mem::transmute(&context)) { + match this + .EndGetDeployedServicePackageHealth2(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -6598,32 +6778,36 @@ impl IFabricHealthClient2_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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricHealthClient3_Impl: Sized + IFabricHealthClient2_Impl { fn BeginGetClusterHealthChunk( &self, querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetClusterHealthChunk( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricHealthClient3 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricHealthClient3 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricHealthClient3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient3_Impl, const OFFSET: isize, >() -> IFabricHealthClient3_Vtbl { unsafe extern "system" fn BeginGetClusterHealthChunk< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient3_Impl, const OFFSET: isize, >( @@ -6632,36 +6816,36 @@ impl IFabricHealthClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetClusterHealthChunk( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetClusterHealthChunk< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient3_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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetClusterHealthChunk(::core::mem::transmute(&context)) { + match this.EndGetClusterHealthChunk(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -6672,35 +6856,39 @@ impl IFabricHealthClient3_Vtbl { EndGetClusterHealthChunk: EndGetClusterHealthChunk::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricHealthClient4_Impl: Sized + IFabricHealthClient3_Impl { fn ReportHealth2( &self, healthreport: *const super::super::FABRIC_HEALTH_REPORT, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricHealthClient4 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricHealthClient4 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricHealthClient4_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient4_Impl, const OFFSET: isize, >() -> IFabricHealthClient4_Vtbl { unsafe extern "system" fn ReportHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricHealthClient4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthreport: *const super::super::FABRIC_HEALTH_REPORT, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportHealth2( @@ -6714,138 +6902,139 @@ impl IFabricHealthClient4_Vtbl { ReportHealth2: ReportHealth2::, } } - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricInfrastructureServiceClient_Impl: Sized { fn BeginInvokeInfrastructureCommand( &self, servicename: *const u16, - command: &::windows::core::PCWSTR, + command: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndInvokeInfrastructureCommand( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginInvokeInfrastructureQuery( &self, servicename: *const u16, - command: &::windows::core::PCWSTR, + command: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndInvokeInfrastructureQuery( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricInfrastructureServiceClient {} +impl ::windows_core::RuntimeName for IFabricInfrastructureServiceClient {} impl IFabricInfrastructureServiceClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricInfrastructureServiceClient_Impl, const OFFSET: isize, >() -> IFabricInfrastructureServiceClient_Vtbl { unsafe extern "system" fn BeginInvokeInfrastructureCommand< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricInfrastructureServiceClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, servicename: *const u16, - command: ::windows::core::PCWSTR, + command: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginInvokeInfrastructureCommand( ::core::mem::transmute_copy(&servicename), ::core::mem::transmute(&command), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndInvokeInfrastructureCommand< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndInvokeInfrastructureCommand(::core::mem::transmute(&context)) { + match this.EndInvokeInfrastructureCommand(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginInvokeInfrastructureQuery< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricInfrastructureServiceClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, servicename: *const u16, - command: ::windows::core::PCWSTR, + command: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginInvokeInfrastructureQuery( ::core::mem::transmute_copy(&servicename), ::core::mem::transmute(&command), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndInvokeInfrastructureQuery< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndInvokeInfrastructureQuery(::core::mem::transmute(&context)) { + match this.EndInvokeInfrastructureQuery(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginInvokeInfrastructureCommand: BeginInvokeInfrastructureCommand::< Identity, Impl, @@ -6856,22 +7045,23 @@ impl IFabricInfrastructureServiceClient_Vtbl { EndInvokeInfrastructureQuery: EndInvokeInfrastructureQuery::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricMovePrimaryResult_Impl: Sized { fn get_Result(&self) -> *mut super::super::FABRIC_MOVE_PRIMARY_RESULT; } -impl ::windows::core::RuntimeName for IFabricMovePrimaryResult {} +impl ::windows_core::RuntimeName for IFabricMovePrimaryResult {} impl IFabricMovePrimaryResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricMovePrimaryResult_Impl, const OFFSET: isize, >() -> IFabricMovePrimaryResult_Vtbl { unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricMovePrimaryResult_Impl, const OFFSET: isize, >( @@ -6882,26 +7072,27 @@ impl IFabricMovePrimaryResult_Vtbl { this.get_Result() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Result: get_Result::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricMoveSecondaryResult_Impl: Sized { fn get_Result(&self) -> *mut super::super::FABRIC_MOVE_SECONDARY_RESULT; } -impl ::windows::core::RuntimeName for IFabricMoveSecondaryResult {} +impl ::windows_core::RuntimeName for IFabricMoveSecondaryResult {} impl IFabricMoveSecondaryResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricMoveSecondaryResult_Impl, const OFFSET: isize, >() -> IFabricMoveSecondaryResult_Vtbl { unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricMoveSecondaryResult_Impl, const OFFSET: isize, >( @@ -6912,31 +7103,32 @@ impl IFabricMoveSecondaryResult_Vtbl { this.get_Result() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Result: get_Result::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricNameEnumerationResult_Impl: Sized { fn get_EnumerationStatus(&self) -> super::super::FABRIC_ENUMERATION_STATUS; fn GetNames( &self, itemcount: *mut u32, buffereditems: *mut *mut *mut u16, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricNameEnumerationResult {} +impl ::windows_core::RuntimeName for IFabricNameEnumerationResult {} impl IFabricNameEnumerationResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNameEnumerationResult_Impl, const OFFSET: isize, >() -> IFabricNameEnumerationResult_Vtbl { unsafe extern "system" fn get_EnumerationStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNameEnumerationResult_Impl, const OFFSET: isize, >( @@ -6947,14 +7139,14 @@ impl IFabricNameEnumerationResult_Vtbl { this.get_EnumerationStatus() } unsafe extern "system" fn GetNames< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNameEnumerationResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut *mut u16, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetNames( @@ -6964,147 +7156,148 @@ impl IFabricNameEnumerationResult_Vtbl { .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_EnumerationStatus: get_EnumerationStatus::, GetNames: GetNames::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricNetworkManagementClient_Impl: Sized { fn BeginCreateNetwork( &self, - networkname: &::windows::core::PCWSTR, + networkname: &::windows_core::PCWSTR, description: *const super::super::FABRIC_NETWORK_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCreateNetwork( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginDeleteNetwork( &self, deletedescription: *const super::super::FABRIC_DELETE_NETWORK_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndDeleteNetwork( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetNetworkList( &self, querydescription: *const super::super::FABRIC_NETWORK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetNetworkList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetNetworkApplicationList( &self, querydescription: *const super::super::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetNetworkApplicationList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetNetworkNodeList( &self, querydescription: *const super::super::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetNetworkNodeList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetApplicationNetworkList( &self, querydescription: *const super::super::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetApplicationNetworkList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetDeployedNetworkList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedNetworkList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetDeployedNetworkCodePackageList( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedNetworkCodePackageList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricNetworkManagementClient {} +impl ::windows_core::RuntimeName for IFabricNetworkManagementClient {} impl IFabricNetworkManagementClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >() -> IFabricNetworkManagementClient_Vtbl { unsafe extern "system" fn BeginCreateNetwork< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - networkname: ::windows::core::PCWSTR, + networkname: ::windows_core::PCWSTR, description: *const super::super::FABRIC_NETWORK_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCreateNetwork( ::core::mem::transmute(&networkname), ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCreateNetwork< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndCreateNetwork(::core::mem::transmute(&context)) + this.EndCreateNetwork(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginDeleteNetwork< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( @@ -7113,36 +7306,36 @@ impl IFabricNetworkManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginDeleteNetwork( ::core::mem::transmute_copy(&deletedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteNetwork< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndDeleteNetwork(::core::mem::transmute(&context)) + this.EndDeleteNetwork(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetNetworkList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( @@ -7151,42 +7344,42 @@ impl IFabricNetworkManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetNetworkList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetNetworkList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetNetworkList(::core::mem::transmute(&context)) { + match this.EndGetNetworkList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetNetworkApplicationList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( @@ -7195,42 +7388,42 @@ impl IFabricNetworkManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetNetworkApplicationList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetNetworkApplicationList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetNetworkApplicationList(::core::mem::transmute(&context)) { + match this.EndGetNetworkApplicationList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetNetworkNodeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( @@ -7239,42 +7432,42 @@ impl IFabricNetworkManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetNetworkNodeList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetNetworkNodeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetNetworkNodeList(::core::mem::transmute(&context)) { + match this.EndGetNetworkNodeList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetApplicationNetworkList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( @@ -7283,42 +7476,42 @@ impl IFabricNetworkManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetApplicationNetworkList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationNetworkList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetApplicationNetworkList(::core::mem::transmute(&context)) { + match this.EndGetApplicationNetworkList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedNetworkList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( @@ -7327,42 +7520,42 @@ impl IFabricNetworkManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedNetworkList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedNetworkList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedNetworkList(::core::mem::transmute(&context)) { + match this.EndGetDeployedNetworkList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedNetworkCodePackageList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNetworkManagementClient_Impl, const OFFSET: isize, >( @@ -7371,42 +7564,44 @@ impl IFabricNetworkManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedNetworkCodePackageList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedNetworkCodePackageList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedNetworkCodePackageList(::core::mem::transmute(&context)) { + match this + .EndGetDeployedNetworkCodePackageList(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginCreateNetwork: BeginCreateNetwork::, EndCreateNetwork: EndCreateNetwork::, BeginDeleteNetwork: BeginDeleteNetwork::, @@ -7433,22 +7628,26 @@ impl IFabricNetworkManagementClient_Vtbl { >, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricNodeHealthResult_Impl: Sized { fn get_NodeHealth(&self) -> *mut super::super::FABRIC_NODE_HEALTH; } -impl ::windows::core::RuntimeName for IFabricNodeHealthResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricNodeHealthResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricNodeHealthResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNodeHealthResult_Impl, const OFFSET: isize, >() -> IFabricNodeHealthResult_Vtbl { unsafe extern "system" fn get_NodeHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNodeHealthResult_Impl, const OFFSET: isize, >( @@ -7459,26 +7658,27 @@ impl IFabricNodeHealthResult_Vtbl { this.get_NodeHealth() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_NodeHealth: get_NodeHealth::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricNodeTransitionProgressResult_Impl: Sized { fn get_Progress(&self) -> *mut super::super::FABRIC_NODE_TRANSITION_PROGRESS; } -impl ::windows::core::RuntimeName for IFabricNodeTransitionProgressResult {} +impl ::windows_core::RuntimeName for IFabricNodeTransitionProgressResult {} impl IFabricNodeTransitionProgressResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNodeTransitionProgressResult_Impl, const OFFSET: isize, >() -> IFabricNodeTransitionProgressResult_Vtbl { unsafe extern "system" fn get_Progress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNodeTransitionProgressResult_Impl, const OFFSET: isize, >( @@ -7489,26 +7689,27 @@ impl IFabricNodeTransitionProgressResult_Vtbl { this.get_Progress() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Progress: get_Progress::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricOrchestrationUpgradeStatusResult_Impl: Sized { fn get_Progress(&self) -> *mut super::super::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS; } -impl ::windows::core::RuntimeName for IFabricOrchestrationUpgradeStatusResult {} +impl ::windows_core::RuntimeName for IFabricOrchestrationUpgradeStatusResult {} impl IFabricOrchestrationUpgradeStatusResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricOrchestrationUpgradeStatusResult_Impl, const OFFSET: isize, >() -> IFabricOrchestrationUpgradeStatusResult_Vtbl { unsafe extern "system" fn get_Progress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricOrchestrationUpgradeStatusResult_Impl, const OFFSET: isize, >( @@ -7519,26 +7720,27 @@ impl IFabricOrchestrationUpgradeStatusResult_Vtbl { this.get_Progress() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Progress: get_Progress::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricPartitionDataLossProgressResult_Impl: Sized { fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_DATA_LOSS_PROGRESS; } -impl ::windows::core::RuntimeName for IFabricPartitionDataLossProgressResult {} +impl ::windows_core::RuntimeName for IFabricPartitionDataLossProgressResult {} impl IFabricPartitionDataLossProgressResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPartitionDataLossProgressResult_Impl, const OFFSET: isize, >() -> IFabricPartitionDataLossProgressResult_Vtbl { unsafe extern "system" fn get_Progress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPartitionDataLossProgressResult_Impl, const OFFSET: isize, >( @@ -7549,26 +7751,30 @@ impl IFabricPartitionDataLossProgressResult_Vtbl { this.get_Progress() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Progress: get_Progress::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricPartitionHealthResult_Impl: Sized { fn get_PartitionHealth(&self) -> *mut super::super::FABRIC_PARTITION_HEALTH; } -impl ::windows::core::RuntimeName for IFabricPartitionHealthResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricPartitionHealthResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricPartitionHealthResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPartitionHealthResult_Impl, const OFFSET: isize, >() -> IFabricPartitionHealthResult_Vtbl { unsafe extern "system" fn get_PartitionHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPartitionHealthResult_Impl, const OFFSET: isize, >( @@ -7579,26 +7785,27 @@ impl IFabricPartitionHealthResult_Vtbl { this.get_PartitionHealth() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_PartitionHealth: get_PartitionHealth::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricPartitionQuorumLossProgressResult_Impl: Sized { fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS; } -impl ::windows::core::RuntimeName for IFabricPartitionQuorumLossProgressResult {} +impl ::windows_core::RuntimeName for IFabricPartitionQuorumLossProgressResult {} impl IFabricPartitionQuorumLossProgressResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPartitionQuorumLossProgressResult_Impl, const OFFSET: isize, >() -> IFabricPartitionQuorumLossProgressResult_Vtbl { unsafe extern "system" fn get_Progress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPartitionQuorumLossProgressResult_Impl, const OFFSET: isize, >( @@ -7609,26 +7816,27 @@ impl IFabricPartitionQuorumLossProgressResult_Vtbl { this.get_Progress() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Progress: get_Progress::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricPartitionRestartProgressResult_Impl: Sized { fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_RESTART_PROGRESS; } -impl ::windows::core::RuntimeName for IFabricPartitionRestartProgressResult {} +impl ::windows_core::RuntimeName for IFabricPartitionRestartProgressResult {} impl IFabricPartitionRestartProgressResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPartitionRestartProgressResult_Impl, const OFFSET: isize, >() -> IFabricPartitionRestartProgressResult_Vtbl { unsafe extern "system" fn get_Progress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPartitionRestartProgressResult_Impl, const OFFSET: isize, >( @@ -7639,69 +7847,71 @@ impl IFabricPartitionRestartProgressResult_Vtbl { this.get_Progress() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Progress: get_Progress::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricPropertyBatchResult_Impl: Sized { fn GetProperty( &self, operationindexinrequest: u32, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricPropertyBatchResult {} +impl ::windows_core::RuntimeName for IFabricPropertyBatchResult {} impl IFabricPropertyBatchResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyBatchResult_Impl, const OFFSET: isize, >() -> IFabricPropertyBatchResult_Vtbl { unsafe extern "system" fn GetProperty< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyBatchResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, operationindexinrequest: u32, property: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProperty(::core::mem::transmute_copy(&operationindexinrequest)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(property, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), GetProperty: GetProperty::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricPropertyEnumerationResult_Impl: Sized { fn get_EnumerationStatus(&self) -> super::super::FABRIC_ENUMERATION_STATUS; fn get_PropertyCount(&self) -> u32; - fn GetProperty(&self, index: u32) -> ::windows::core::Result; + fn GetProperty(&self, index: u32) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricPropertyEnumerationResult {} +impl ::windows_core::RuntimeName for IFabricPropertyEnumerationResult {} impl IFabricPropertyEnumerationResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyEnumerationResult_Impl, const OFFSET: isize, >() -> IFabricPropertyEnumerationResult_Vtbl { unsafe extern "system" fn get_EnumerationStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyEnumerationResult_Impl, const OFFSET: isize, >( @@ -7712,7 +7922,7 @@ impl IFabricPropertyEnumerationResult_Vtbl { this.get_EnumerationStatus() } unsafe extern "system" fn get_PropertyCount< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyEnumerationResult_Impl, const OFFSET: isize, >( @@ -7723,208 +7933,212 @@ impl IFabricPropertyEnumerationResult_Vtbl { this.get_PropertyCount() } unsafe extern "system" fn GetProperty< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyEnumerationResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, index: u32, property: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetProperty(::core::mem::transmute_copy(&index)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(property, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_EnumerationStatus: get_EnumerationStatus::, get_PropertyCount: get_PropertyCount::, GetProperty: GetProperty::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricPropertyManagementClient_Impl: Sized { fn BeginCreateName( &self, name: *const u16, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCreateName( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginDeleteName( &self, name: *const u16, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndDeleteName( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginNameExists( &self, name: *const u16, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndNameExists( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginEnumerateSubNames( &self, name: *const u16, - previousresult: &::core::option::Option, + previousresult: ::core::option::Option<&IFabricNameEnumerationResult>, recursive: ::windows::Win32::Foundation::BOOLEAN, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndEnumerateSubNames( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginPutPropertyBinary( &self, name: *const u16, - propertyname: &::windows::core::PCWSTR, + propertyname: &::windows_core::PCWSTR, datalength: u32, data: *const u8, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndPutPropertyBinary( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginPutPropertyInt64( &self, name: *const u16, - propertyname: &::windows::core::PCWSTR, + propertyname: &::windows_core::PCWSTR, data: i64, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndPutPropertyInt64( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginPutPropertyDouble( &self, name: *const u16, - propertyname: &::windows::core::PCWSTR, + propertyname: &::windows_core::PCWSTR, data: f64, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndPutPropertyDouble( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginPutPropertyWString( &self, name: *const u16, - propertyname: &::windows::core::PCWSTR, - data: &::windows::core::PCWSTR, + propertyname: &::windows_core::PCWSTR, + data: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndPutPropertyWString( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginPutPropertyGuid( &self, name: *const u16, - propertyname: &::windows::core::PCWSTR, - data: *const ::windows::core::GUID, + propertyname: &::windows_core::PCWSTR, + data: *const ::windows_core::GUID, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndPutPropertyGuid( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginDeleteProperty( &self, name: *const u16, - propertyname: &::windows::core::PCWSTR, + propertyname: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndDeleteProperty( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetPropertyMetadata( &self, name: *const u16, - propertyname: &::windows::core::PCWSTR, + propertyname: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetPropertyMetadata( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetProperty( &self, name: *const u16, - propertyname: &::windows::core::PCWSTR, + propertyname: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetProperty( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginSubmitPropertyBatch( &self, name: *const u16, operationcount: u32, operations: *const super::super::FABRIC_PROPERTY_BATCH_OPERATION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndSubmitPropertyBatch( &self, - context: &::core::option::Option, + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, failedoperationindexinrequest: *mut u32, result: *mut ::core::option::Option, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn BeginEnumerateProperties( &self, name: *const u16, includevalues: ::windows::Win32::Foundation::BOOLEAN, - previousresult: &::core::option::Option, + previousresult: ::core::option::Option<&IFabricPropertyEnumerationResult>, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndEnumerateProperties( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricPropertyManagementClient {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricPropertyManagementClient {} +#[cfg(feature = "Win32_Foundation")] impl IFabricPropertyManagementClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >() -> IFabricPropertyManagementClient_Vtbl { unsafe extern "system" fn BeginCreateName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( @@ -7933,35 +8147,36 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCreateName( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCreateName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndCreateName(::core::mem::transmute(&context)).into() + this.EndCreateName(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn BeginDeleteName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( @@ -7970,35 +8185,36 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginDeleteName( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndDeleteName(::core::mem::transmute(&context)).into() + this.EndDeleteName(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn BeginNameExists< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( @@ -8007,42 +8223,42 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginNameExists( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndNameExists< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, value: *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndNameExists(::core::mem::transmute(&context)) { + match this.EndNameExists(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(value, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginEnumerateSubNames< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( @@ -8053,56 +8269,56 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginEnumerateSubNames( ::core::mem::transmute_copy(&name), - ::core::mem::transmute(&previousresult), + ::windows_core::from_raw_borrowed(&previousresult), ::core::mem::transmute_copy(&recursive), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndEnumerateSubNames< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndEnumerateSubNames(::core::mem::transmute(&context)) { + match this.EndEnumerateSubNames(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginPutPropertyBinary< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, datalength: u32, data: *const u8, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginPutPropertyBinary( @@ -8111,41 +8327,41 @@ impl IFabricPropertyManagementClient_Vtbl { ::core::mem::transmute_copy(&datalength), ::core::mem::transmute_copy(&data), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndPutPropertyBinary< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndPutPropertyBinary(::core::mem::transmute(&context)) + this.EndPutPropertyBinary(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginPutPropertyInt64< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, data: i64, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginPutPropertyInt64( @@ -8153,41 +8369,41 @@ impl IFabricPropertyManagementClient_Vtbl { ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&data), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndPutPropertyInt64< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndPutPropertyInt64(::core::mem::transmute(&context)) + this.EndPutPropertyInt64(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginPutPropertyDouble< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, data: f64, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginPutPropertyDouble( @@ -8195,41 +8411,41 @@ impl IFabricPropertyManagementClient_Vtbl { ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&data), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndPutPropertyDouble< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndPutPropertyDouble(::core::mem::transmute(&context)) + this.EndPutPropertyDouble(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginPutPropertyWString< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, - data: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, + data: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginPutPropertyWString( @@ -8237,41 +8453,41 @@ impl IFabricPropertyManagementClient_Vtbl { ::core::mem::transmute(&propertyname), ::core::mem::transmute(&data), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndPutPropertyWString< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndPutPropertyWString(::core::mem::transmute(&context)) + this.EndPutPropertyWString(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginPutPropertyGuid< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, - data: *const ::windows::core::GUID, + propertyname: ::windows_core::PCWSTR, + data: *const ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginPutPropertyGuid( @@ -8279,162 +8495,162 @@ impl IFabricPropertyManagementClient_Vtbl { ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&data), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndPutPropertyGuid< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndPutPropertyGuid(::core::mem::transmute(&context)) + this.EndPutPropertyGuid(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginDeleteProperty< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginDeleteProperty( ::core::mem::transmute_copy(&name), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteProperty< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndDeleteProperty(::core::mem::transmute(&context)) + this.EndDeleteProperty(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetPropertyMetadata< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetPropertyMetadata( ::core::mem::transmute_copy(&name), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetPropertyMetadata< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetPropertyMetadata(::core::mem::transmute(&context)) { + match this.EndGetPropertyMetadata(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetProperty< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetProperty( ::core::mem::transmute_copy(&name), ::core::mem::transmute(&propertyname), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetProperty< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetProperty(::core::mem::transmute(&context)) { + match this.EndGetProperty(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginSubmitPropertyBatch< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( @@ -8445,7 +8661,7 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginSubmitPropertyBatch( @@ -8453,17 +8669,17 @@ impl IFabricPropertyManagementClient_Vtbl { ::core::mem::transmute_copy(&operationcount), ::core::mem::transmute_copy(&operations), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndSubmitPropertyBatch< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( @@ -8471,18 +8687,18 @@ impl IFabricPropertyManagementClient_Vtbl { context: *mut ::core::ffi::c_void, failedoperationindexinrequest: *mut u32, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.EndSubmitPropertyBatch( - ::core::mem::transmute(&context), + ::windows_core::from_raw_borrowed(&context), ::core::mem::transmute_copy(&failedoperationindexinrequest), ::core::mem::transmute_copy(&result), ) .into() } unsafe extern "system" fn BeginEnumerateProperties< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient_Impl, const OFFSET: isize, >( @@ -8493,44 +8709,44 @@ impl IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginEnumerateProperties( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&includevalues), - ::core::mem::transmute(&previousresult), + ::windows_core::from_raw_borrowed(&previousresult), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndEnumerateProperties< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndEnumerateProperties(::core::mem::transmute(&context)) { + match this.EndEnumerateProperties(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginCreateName: BeginCreateName::, EndCreateName: EndCreateName::, BeginDeleteName: BeginDeleteName::, @@ -8561,10 +8777,12 @@ impl IFabricPropertyManagementClient_Vtbl { EndEnumerateProperties: EndEnumerateProperties::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricPropertyManagementClient2_Impl: Sized + IFabricPropertyManagementClient_Impl { @@ -8573,22 +8791,24 @@ pub trait IFabricPropertyManagementClient2_Impl: name: *const u16, propertyoperation: *const super::super::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndPutCustomPropertyOperation( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricPropertyManagementClient2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricPropertyManagementClient2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricPropertyManagementClient2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient2_Impl, const OFFSET: isize, >() -> IFabricPropertyManagementClient2_Vtbl { unsafe extern "system" fn BeginPutCustomPropertyOperation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient2_Impl, const OFFSET: isize, >( @@ -8598,33 +8818,33 @@ impl IFabricPropertyManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginPutCustomPropertyOperation( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&propertyoperation), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndPutCustomPropertyOperation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndPutCustomPropertyOperation(::core::mem::transmute(&context)) + this.EndPutCustomPropertyOperation(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -8637,23 +8857,27 @@ impl IFabricPropertyManagementClient2_Vtbl { EndPutCustomPropertyOperation: EndPutCustomPropertyOperation::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricPropertyMetadataResult_Impl: Sized { fn get_Metadata(&self) -> *mut super::super::FABRIC_NAMED_PROPERTY_METADATA; } -impl ::windows::core::RuntimeName for IFabricPropertyMetadataResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricPropertyMetadataResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricPropertyMetadataResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyMetadataResult_Impl, const OFFSET: isize, >() -> IFabricPropertyMetadataResult_Vtbl { unsafe extern "system" fn get_Metadata< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyMetadataResult_Impl, const OFFSET: isize, >( @@ -8664,35 +8888,39 @@ impl IFabricPropertyMetadataResult_Vtbl { this.get_Metadata() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Metadata: get_Metadata::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricPropertyValueResult_Impl: Sized { fn get_Property(&self) -> *mut super::super::FABRIC_NAMED_PROPERTY; fn GetValueAsBinary( &self, bytecount: *mut u32, bufferedvalue: *mut *mut u8, - ) -> ::windows::core::Result<()>; - fn GetValueAsInt64(&self) -> ::windows::core::Result; - fn GetValueAsDouble(&self) -> ::windows::core::Result; - fn GetValueAsWString(&self) -> ::windows::core::Result<::windows::core::PWSTR>; - fn GetValueAsGuid(&self) -> ::windows::core::Result<::windows::core::GUID>; -} -impl ::windows::core::RuntimeName for IFabricPropertyValueResult {} + ) -> ::windows_core::Result<()>; + fn GetValueAsInt64(&self) -> ::windows_core::Result; + fn GetValueAsDouble(&self) -> ::windows_core::Result; + fn GetValueAsWString(&self) -> ::windows_core::Result<::windows_core::PCWSTR>; + fn GetValueAsGuid(&self) -> ::windows_core::Result<::windows_core::GUID>; +} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricPropertyValueResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricPropertyValueResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyValueResult_Impl, const OFFSET: isize, >() -> IFabricPropertyValueResult_Vtbl { unsafe extern "system" fn get_Property< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyValueResult_Impl, const OFFSET: isize, >( @@ -8703,14 +8931,14 @@ impl IFabricPropertyValueResult_Vtbl { this.get_Property() } unsafe extern "system" fn GetValueAsBinary< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyValueResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, bytecount: *mut u32, bufferedvalue: *mut *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetValueAsBinary( @@ -8720,79 +8948,79 @@ impl IFabricPropertyValueResult_Vtbl { .into() } unsafe extern "system" fn GetValueAsInt64< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyValueResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, value: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetValueAsInt64() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(value, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetValueAsDouble< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyValueResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, value: *mut f64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetValueAsDouble() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(value, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetValueAsWString< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyValueResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::HRESULT { + bufferedvalue: *mut ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetValueAsWString() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetValueAsGuid< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPropertyValueResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - value: *mut ::windows::core::GUID, - ) -> ::windows::core::HRESULT { + value: *mut ::windows_core::GUID, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetValueAsGuid() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(value, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Property: get_Property::, GetValueAsBinary: GetValueAsBinary::, GetValueAsInt64: GetValueAsInt64::, @@ -8801,141 +9029,142 @@ impl IFabricPropertyValueResult_Vtbl { GetValueAsGuid: GetValueAsGuid::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricQueryClient_Impl: Sized { fn BeginGetNodeList( &self, querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetNodeList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetApplicationTypeList( &self, querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetApplicationTypeList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetServiceTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetServiceTypeList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetApplicationList( &self, querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetApplicationList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetServiceList( &self, querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetServiceList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetPartitionList( &self, querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetPartitionList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetReplicaList( &self, querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetReplicaList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetDeployedApplicationList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedApplicationList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetDeployedServicePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedServicePackageList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetDeployedServiceTypeList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedServiceTypeList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetDeployedCodePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedCodePackageList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetDeployedReplicaList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedReplicaList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricQueryClient {} +impl ::windows_core::RuntimeName for IFabricQueryClient {} impl IFabricQueryClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >() -> IFabricQueryClient_Vtbl { unsafe extern "system" fn BeginGetNodeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >( @@ -8944,42 +9173,42 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetNodeList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetNodeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetNodeList(::core::mem::transmute(&context)) { + match this.EndGetNodeList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetApplicationTypeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >( @@ -8988,42 +9217,42 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetApplicationTypeList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationTypeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetApplicationTypeList(::core::mem::transmute(&context)) { + match this.EndGetApplicationTypeList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetServiceTypeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >( @@ -9032,42 +9261,42 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetServiceTypeList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceTypeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetServiceTypeList(::core::mem::transmute(&context)) { + match this.EndGetServiceTypeList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetApplicationList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >( @@ -9076,42 +9305,42 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetApplicationList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetApplicationList(::core::mem::transmute(&context)) { + match this.EndGetApplicationList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetServiceList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >( @@ -9120,42 +9349,42 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetServiceList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetServiceList(::core::mem::transmute(&context)) { + match this.EndGetServiceList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetPartitionList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >( @@ -9164,42 +9393,42 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetPartitionList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetPartitionList(::core::mem::transmute(&context)) { + match this.EndGetPartitionList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetReplicaList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >( @@ -9208,42 +9437,42 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetReplicaList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetReplicaList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetReplicaList(::core::mem::transmute(&context)) { + match this.EndGetReplicaList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedApplicationList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >( @@ -9252,42 +9481,42 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedApplicationList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedApplicationList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedApplicationList(::core::mem::transmute(&context)) { + match this.EndGetDeployedApplicationList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedServicePackageList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >( @@ -9296,42 +9525,43 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedServicePackageList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedServicePackageList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedServicePackageList(::core::mem::transmute(&context)) { + match this.EndGetDeployedServicePackageList(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedServiceTypeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >( @@ -9340,42 +9570,42 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedServiceTypeList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedServiceTypeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedServiceTypeList(::core::mem::transmute(&context)) { + match this.EndGetDeployedServiceTypeList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedCodePackageList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >( @@ -9384,42 +9614,42 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedCodePackageList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedCodePackageList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedCodePackageList(::core::mem::transmute(&context)) { + match this.EndGetDeployedCodePackageList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetDeployedReplicaList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient_Impl, const OFFSET: isize, >( @@ -9428,42 +9658,42 @@ impl IFabricQueryClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedReplicaList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedReplicaList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedReplicaList(::core::mem::transmute(&context)) { + match this.EndGetDeployedReplicaList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginGetNodeList: BeginGetNodeList::, EndGetNodeList: EndGetNodeList::, BeginGetApplicationTypeList: BeginGetApplicationTypeList::, @@ -9510,31 +9740,35 @@ impl IFabricQueryClient_Vtbl { EndGetDeployedReplicaList: EndGetDeployedReplicaList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricQueryClient10_Impl: Sized + IFabricQueryClient9_Impl { fn BeginGetDeployedApplicationPagedList( &self, querydescription: *const super::super::FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedApplicationPagedList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricQueryClient10 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricQueryClient10 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricQueryClient10_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient10_Impl, const OFFSET: isize, >() -> IFabricQueryClient10_Vtbl { unsafe extern "system" fn BeginGetDeployedApplicationPagedList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient10_Impl, const OFFSET: isize, >( @@ -9543,36 +9777,38 @@ impl IFabricQueryClient10_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedApplicationPagedList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedApplicationPagedList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedApplicationPagedList(::core::mem::transmute(&context)) { + match this + .EndGetDeployedApplicationPagedList(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -9591,79 +9827,80 @@ impl IFabricQueryClient10_Vtbl { >, } } - 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 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricQueryClient2_Impl: Sized + IFabricQueryClient_Impl { fn BeginGetDeployedReplicaDetail( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetDeployedReplicaDetail( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetClusterLoadInformation( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetClusterLoadInformation( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetPartitionLoadInformation( &self, querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetPartitionLoadInformation( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetProvisionedFabricCodeVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetProvisionedFabricCodeVersionList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetProvisionedFabricConfigVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetProvisionedFabricConfigVersionList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricQueryClient2 {} +impl ::windows_core::RuntimeName for IFabricQueryClient2 {} impl IFabricQueryClient2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient2_Impl, const OFFSET: isize, >() -> IFabricQueryClient2_Vtbl { unsafe extern "system" fn BeginGetDeployedReplicaDetail< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient2_Impl, const OFFSET: isize, >( @@ -9672,42 +9909,42 @@ impl IFabricQueryClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetDeployedReplicaDetail( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetDeployedReplicaDetail< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetDeployedReplicaDetail(::core::mem::transmute(&context)) { + match this.EndGetDeployedReplicaDetail(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetClusterLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient2_Impl, const OFFSET: isize, >( @@ -9715,41 +9952,41 @@ impl IFabricQueryClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetClusterLoadInformation( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetClusterLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetClusterLoadInformation(::core::mem::transmute(&context)) { + match this.EndGetClusterLoadInformation(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetPartitionLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient2_Impl, const OFFSET: isize, >( @@ -9758,42 +9995,42 @@ impl IFabricQueryClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetPartitionLoadInformation( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetPartitionLoadInformation(::core::mem::transmute(&context)) { + match this.EndGetPartitionLoadInformation(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetProvisionedFabricCodeVersionList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient2_Impl, const OFFSET: isize, >( @@ -9802,42 +10039,44 @@ impl IFabricQueryClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetProvisionedFabricCodeVersionList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetProvisionedFabricCodeVersionList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetProvisionedFabricCodeVersionList(::core::mem::transmute(&context)) { + match this + .EndGetProvisionedFabricCodeVersionList(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetProvisionedFabricConfigVersionList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient2_Impl, const OFFSET: isize, >( @@ -9846,36 +10085,38 @@ impl IFabricQueryClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetProvisionedFabricConfigVersionList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetProvisionedFabricConfigVersionList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetProvisionedFabricConfigVersionList(::core::mem::transmute(&context)) { + match this.EndGetProvisionedFabricConfigVersionList(::windows_core::from_raw_borrowed( + &context, + )) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -9914,42 +10155,43 @@ 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricQueryClient3_Impl: Sized + IFabricQueryClient2_Impl { fn BeginGetNodeLoadInformation( &self, querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetNodeLoadInformation( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetReplicaLoadInformation( &self, querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetReplicaLoadInformation( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricQueryClient3 {} +impl ::windows_core::RuntimeName for IFabricQueryClient3 {} impl IFabricQueryClient3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient3_Impl, const OFFSET: isize, >() -> IFabricQueryClient3_Vtbl { unsafe extern "system" fn BeginGetNodeLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient3_Impl, const OFFSET: isize, >( @@ -9958,42 +10200,42 @@ impl IFabricQueryClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetNodeLoadInformation( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetNodeLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetNodeLoadInformation(::core::mem::transmute(&context)) { + match this.EndGetNodeLoadInformation(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetReplicaLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient3_Impl, const OFFSET: isize, >( @@ -10002,36 +10244,36 @@ impl IFabricQueryClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetReplicaLoadInformation( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetReplicaLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetReplicaLoadInformation(::core::mem::transmute(&context)) { + match this.EndGetReplicaLoadInformation(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -10044,43 +10286,44 @@ impl IFabricQueryClient3_Vtbl { EndGetReplicaLoadInformation: EndGetReplicaLoadInformation::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricQueryClient4_Impl: Sized + IFabricQueryClient3_Impl { fn BeginGetServiceGroupMemberList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetServiceGroupMemberList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetServiceGroupMemberTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetServiceGroupMemberTypeList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricQueryClient4 {} +impl ::windows_core::RuntimeName for IFabricQueryClient4 {} impl IFabricQueryClient4_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient4_Impl, const OFFSET: isize, >() -> IFabricQueryClient4_Vtbl { unsafe extern "system" fn BeginGetServiceGroupMemberList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient4_Impl, const OFFSET: isize, >( @@ -10089,42 +10332,42 @@ impl IFabricQueryClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetServiceGroupMemberList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceGroupMemberList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetServiceGroupMemberList(::core::mem::transmute(&context)) { + match this.EndGetServiceGroupMemberList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetServiceGroupMemberTypeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient4_Impl, const OFFSET: isize, >( @@ -10133,36 +10376,37 @@ impl IFabricQueryClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetServiceGroupMemberTypeList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceGroupMemberTypeList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetServiceGroupMemberTypeList(::core::mem::transmute(&context)) { + match this.EndGetServiceGroupMemberTypeList(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -10183,34 +10427,38 @@ impl IFabricQueryClient4_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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricQueryClient5_Impl: Sized + IFabricQueryClient4_Impl { fn BeginGetUnplacedReplicaInformation( &self, querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetUnplacedReplicaInformation( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricQueryClient5 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricQueryClient5 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricQueryClient5_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient5_Impl, const OFFSET: isize, >() -> IFabricQueryClient5_Vtbl { unsafe extern "system" fn BeginGetUnplacedReplicaInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient5_Impl, const OFFSET: isize, >( @@ -10219,36 +10467,37 @@ impl IFabricQueryClient5_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetUnplacedReplicaInformation( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetUnplacedReplicaInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetUnplacedReplicaInformation(::core::mem::transmute(&context)) { + match this.EndGetUnplacedReplicaInformation(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -10267,134 +10516,138 @@ impl IFabricQueryClient5_Vtbl { >, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricQueryClient6_Impl: Sized + IFabricQueryClient5_Impl { fn EndGetNodeList2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn EndGetApplicationList2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn EndGetServiceList2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn EndGetPartitionList2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn EndGetReplicaList2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricQueryClient6 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricQueryClient6 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricQueryClient6_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient6_Impl, const OFFSET: isize, >() -> IFabricQueryClient6_Vtbl { unsafe extern "system" fn EndGetNodeList2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetNodeList2(::core::mem::transmute(&context)) { + match this.EndGetNodeList2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationList2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetApplicationList2(::core::mem::transmute(&context)) { + match this.EndGetApplicationList2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceList2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetServiceList2(::core::mem::transmute(&context)) { + match this.EndGetServiceList2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionList2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetPartitionList2(::core::mem::transmute(&context)) { + match this.EndGetPartitionList2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetReplicaList2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetReplicaList2(::core::mem::transmute(&context)) { + match this.EndGetReplicaList2(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -10408,36 +10661,40 @@ impl IFabricQueryClient6_Vtbl { EndGetReplicaList2: EndGetReplicaList2::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricQueryClient7_Impl: Sized + IFabricQueryClient6_Impl { fn BeginGetApplicationLoadInformation( &self, querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetApplicationLoadInformation( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricQueryClient7 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricQueryClient7 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricQueryClient7_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient7_Impl, const OFFSET: isize, >() -> IFabricQueryClient7_Vtbl { unsafe extern "system" fn BeginGetApplicationLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient7_Impl, const OFFSET: isize, >( @@ -10446,36 +10703,37 @@ impl IFabricQueryClient7_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetApplicationLoadInformation( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationLoadInformation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetApplicationLoadInformation(::core::mem::transmute(&context)) { + match this.EndGetApplicationLoadInformation(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -10494,47 +10752,51 @@ impl IFabricQueryClient7_Vtbl { >, } } - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricQueryClient8_Impl: Sized + IFabricQueryClient7_Impl { fn BeginGetServiceName( &self, querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetServiceName( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetApplicationName( &self, querydescription: *const super::super::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetApplicationName( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricQueryClient8 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricQueryClient8 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricQueryClient8_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient8_Impl, const OFFSET: isize, >() -> IFabricQueryClient8_Vtbl { unsafe extern "system" fn BeginGetServiceName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient8_Impl, const OFFSET: isize, >( @@ -10543,42 +10805,42 @@ impl IFabricQueryClient8_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetServiceName( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetServiceName(::core::mem::transmute(&context)) { + match this.EndGetServiceName(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetApplicationName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient8_Impl, const OFFSET: isize, >( @@ -10587,36 +10849,36 @@ impl IFabricQueryClient8_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetApplicationName( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetApplicationName(::core::mem::transmute(&context)) { + match this.EndGetApplicationName(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -10629,38 +10891,42 @@ impl IFabricQueryClient8_Vtbl { EndGetApplicationName: EndGetApplicationName::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || 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 + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricQueryClient9_Impl: Sized + IFabricQueryClient8_Impl { fn BeginGetApplicationTypePagedList( &self, querydescription: *const super::super::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetApplicationTypePagedList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricQueryClient9 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricQueryClient9 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricQueryClient9_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient9_Impl, const OFFSET: isize, >() -> IFabricQueryClient9_Vtbl { unsafe extern "system" fn BeginGetApplicationTypePagedList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricQueryClient9_Impl, const OFFSET: isize, >( @@ -10669,36 +10935,36 @@ impl IFabricQueryClient9_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetApplicationTypePagedList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetApplicationTypePagedList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetApplicationTypePagedList(::core::mem::transmute(&context)) { + match this.EndGetApplicationTypePagedList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -10713,89 +10979,93 @@ impl IFabricQueryClient9_Vtbl { 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 + 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricRepairManagementClient_Impl: Sized { fn BeginCreateRepairTask( &self, repairtask: *const super::super::FABRIC_REPAIR_TASK, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCreateRepairTask( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginCancelRepairTask( &self, requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCancelRepairTask( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginForceApproveRepairTask( &self, requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndForceApproveRepairTask( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginDeleteRepairTask( &self, requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndDeleteRepairTask( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginUpdateRepairExecutionState( &self, repairtask: *const super::super::FABRIC_REPAIR_TASK, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUpdateRepairExecutionState( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetRepairTaskList( &self, querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetRepairTaskList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricRepairManagementClient {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricRepairManagementClient {} +#[cfg(feature = "Win32_Foundation")] impl IFabricRepairManagementClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient_Impl, const OFFSET: isize, >() -> IFabricRepairManagementClient_Vtbl { unsafe extern "system" fn BeginCreateRepairTask< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( @@ -10804,42 +11074,42 @@ impl IFabricRepairManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCreateRepairTask( ::core::mem::transmute_copy(&repairtask), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCreateRepairTask< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitversion: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndCreateRepairTask(::core::mem::transmute(&context)) { + match this.EndCreateRepairTask(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginCancelRepairTask< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( @@ -10848,42 +11118,42 @@ impl IFabricRepairManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCancelRepairTask( ::core::mem::transmute_copy(&requestdescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCancelRepairTask< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitversion: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndCancelRepairTask(::core::mem::transmute(&context)) { + match this.EndCancelRepairTask(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginForceApproveRepairTask< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( @@ -10892,42 +11162,42 @@ impl IFabricRepairManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginForceApproveRepairTask( ::core::mem::transmute_copy(&requestdescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndForceApproveRepairTask< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitversion: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndForceApproveRepairTask(::core::mem::transmute(&context)) { + match this.EndForceApproveRepairTask(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginDeleteRepairTask< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( @@ -10936,36 +11206,36 @@ impl IFabricRepairManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginDeleteRepairTask( ::core::mem::transmute_copy(&requestdescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteRepairTask< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndDeleteRepairTask(::core::mem::transmute(&context)) + this.EndDeleteRepairTask(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginUpdateRepairExecutionState< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( @@ -10974,42 +11244,42 @@ impl IFabricRepairManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUpdateRepairExecutionState( ::core::mem::transmute_copy(&repairtask), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateRepairExecutionState< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitversion: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndUpdateRepairExecutionState(::core::mem::transmute(&context)) { + match this.EndUpdateRepairExecutionState(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetRepairTaskList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient_Impl, const OFFSET: isize, >( @@ -11018,42 +11288,42 @@ impl IFabricRepairManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetRepairTaskList( ::core::mem::transmute_copy(&querydescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetRepairTaskList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetRepairTaskList(::core::mem::transmute(&context)) { + match this.EndGetRepairTaskList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginCreateRepairTask: BeginCreateRepairTask::, EndCreateRepairTask: EndCreateRepairTask::, BeginCancelRepairTask: BeginCancelRepairTask::, @@ -11072,31 +11342,35 @@ impl IFabricRepairManagementClient_Vtbl { EndGetRepairTaskList: EndGetRepairTaskList::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricRepairManagementClient2_Impl: Sized + IFabricRepairManagementClient_Impl { fn BeginUpdateRepairTaskHealthPolicy( &self, updatedescription: *const super::super::FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUpdateRepairTaskHealthPolicy( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricRepairManagementClient2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricRepairManagementClient2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricRepairManagementClient2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient2_Impl, const OFFSET: isize, >() -> IFabricRepairManagementClient2_Vtbl { unsafe extern "system" fn BeginUpdateRepairTaskHealthPolicy< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient2_Impl, const OFFSET: isize, >( @@ -11105,36 +11379,37 @@ impl IFabricRepairManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUpdateRepairTaskHealthPolicy( ::core::mem::transmute_copy(&updatedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateRepairTaskHealthPolicy< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRepairManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitversion: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndUpdateRepairTaskHealthPolicy(::core::mem::transmute(&context)) { + match this.EndUpdateRepairTaskHealthPolicy(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(commitversion, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -11153,23 +11428,24 @@ impl IFabricRepairManagementClient2_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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricReplicaHealthResult_Impl: Sized { fn get_ReplicaHealth(&self) -> *mut super::super::FABRIC_REPLICA_HEALTH; } -impl ::windows::core::RuntimeName for IFabricReplicaHealthResult {} +impl ::windows_core::RuntimeName for IFabricReplicaHealthResult {} impl IFabricReplicaHealthResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicaHealthResult_Impl, const OFFSET: isize, >() -> IFabricReplicaHealthResult_Vtbl { unsafe extern "system" fn get_ReplicaHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicaHealthResult_Impl, const OFFSET: isize, >( @@ -11180,33 +11456,34 @@ impl IFabricReplicaHealthResult_Vtbl { this.get_ReplicaHealth() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ReplicaHealth: get_ReplicaHealth::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricResolvedServicePartitionResult_Impl: Sized { fn get_Partition(&self) -> *mut super::super::FABRIC_RESOLVED_SERVICE_PARTITION; fn GetEndpoint( &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT>; + ) -> ::windows_core::Result<*mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT>; fn CompareVersion( &self, - other: &::core::option::Option, - ) -> ::windows::core::Result; + other: ::core::option::Option<&IFabricResolvedServicePartitionResult>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricResolvedServicePartitionResult {} +impl ::windows_core::RuntimeName for IFabricResolvedServicePartitionResult {} impl IFabricResolvedServicePartitionResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricResolvedServicePartitionResult_Impl, const OFFSET: isize, >() -> IFabricResolvedServicePartitionResult_Vtbl { unsafe extern "system" fn get_Partition< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricResolvedServicePartitionResult_Impl, const OFFSET: isize, >( @@ -11217,65 +11494,66 @@ impl IFabricResolvedServicePartitionResult_Vtbl { this.get_Partition() } unsafe extern "system" fn GetEndpoint< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricResolvedServicePartitionResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, endpoint: *mut *mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetEndpoint() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(endpoint, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn CompareVersion< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricResolvedServicePartitionResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, other: *mut ::core::ffi::c_void, compareresult: *mut i32, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.CompareVersion(::core::mem::transmute(&other)) { + match this.CompareVersion(::windows_core::from_raw_borrowed(&other)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(compareresult, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Partition: get_Partition::, GetEndpoint: GetEndpoint::, CompareVersion: CompareVersion::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricRestartDeployedCodePackageResult_Impl: Sized { fn get_Result(&self) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT; } -impl ::windows::core::RuntimeName for IFabricRestartDeployedCodePackageResult {} +impl ::windows_core::RuntimeName for IFabricRestartDeployedCodePackageResult {} impl IFabricRestartDeployedCodePackageResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRestartDeployedCodePackageResult_Impl, const OFFSET: isize, >() -> IFabricRestartDeployedCodePackageResult_Vtbl { unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRestartDeployedCodePackageResult_Impl, const OFFSET: isize, >( @@ -11286,26 +11564,27 @@ impl IFabricRestartDeployedCodePackageResult_Vtbl { this.get_Result() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Result: get_Result::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricRestartNodeResult_Impl: Sized { fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT; } -impl ::windows::core::RuntimeName for IFabricRestartNodeResult {} +impl ::windows_core::RuntimeName for IFabricRestartNodeResult {} impl IFabricRestartNodeResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRestartNodeResult_Impl, const OFFSET: isize, >() -> IFabricRestartNodeResult_Vtbl { unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRestartNodeResult_Impl, const OFFSET: isize, >( @@ -11316,26 +11595,27 @@ impl IFabricRestartNodeResult_Vtbl { this.get_Result() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Result: get_Result::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricSecretReferencesResult_Impl: Sized { fn get_SecretReferences(&self) -> *mut super::super::FABRIC_SECRET_REFERENCE_LIST; } -impl ::windows::core::RuntimeName for IFabricSecretReferencesResult {} +impl ::windows_core::RuntimeName for IFabricSecretReferencesResult {} impl IFabricSecretReferencesResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecretReferencesResult_Impl, const OFFSET: isize, >() -> IFabricSecretReferencesResult_Vtbl { unsafe extern "system" fn get_SecretReferences< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecretReferencesResult_Impl, const OFFSET: isize, >( @@ -11346,66 +11626,70 @@ impl IFabricSecretReferencesResult_Vtbl { this.get_SecretReferences() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_SecretReferences: get_SecretReferences::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricSecretStoreClient_Impl: Sized { fn BeginGetSecrets( &self, secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, includevalue: ::windows::Win32::Foundation::BOOLEAN, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetSecrets( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginSetSecrets( &self, secrets: *const super::super::FABRIC_SECRET_LIST, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndSetSecrets( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginRemoveSecrets( &self, secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRemoveSecrets( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetSecretVersions( &self, secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetSecretVersions( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricSecretStoreClient {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricSecretStoreClient {} +#[cfg(feature = "Win32_Foundation")] impl IFabricSecretStoreClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecretStoreClient_Impl, const OFFSET: isize, >() -> IFabricSecretStoreClient_Vtbl { unsafe extern "system" fn BeginGetSecrets< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecretStoreClient_Impl, const OFFSET: isize, >( @@ -11415,43 +11699,43 @@ impl IFabricSecretStoreClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetSecrets( ::core::mem::transmute_copy(&secretreferences), ::core::mem::transmute_copy(&includevalue), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetSecrets< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetSecrets(::core::mem::transmute(&context)) { + match this.EndGetSecrets(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginSetSecrets< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecretStoreClient_Impl, const OFFSET: isize, >( @@ -11460,42 +11744,42 @@ impl IFabricSecretStoreClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginSetSecrets( ::core::mem::transmute_copy(&secrets), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndSetSecrets< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndSetSecrets(::core::mem::transmute(&context)) { + match this.EndSetSecrets(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginRemoveSecrets< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecretStoreClient_Impl, const OFFSET: isize, >( @@ -11504,42 +11788,42 @@ impl IFabricSecretStoreClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRemoveSecrets( ::core::mem::transmute_copy(&secretreferences), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRemoveSecrets< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndRemoveSecrets(::core::mem::transmute(&context)) { + match this.EndRemoveSecrets(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetSecretVersions< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecretStoreClient_Impl, const OFFSET: isize, >( @@ -11548,42 +11832,42 @@ impl IFabricSecretStoreClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetSecretVersions( ::core::mem::transmute_copy(&secretreferences), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetSecretVersions< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetSecretVersions(::core::mem::transmute(&context)) { + match this.EndGetSecretVersions(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginGetSecrets: BeginGetSecrets::, EndGetSecrets: EndGetSecrets::, BeginSetSecrets: BeginSetSecrets::, @@ -11594,22 +11878,23 @@ impl IFabricSecretStoreClient_Vtbl { EndGetSecretVersions: EndGetSecretVersions::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricSecretsResult_Impl: Sized { fn get_Secrets(&self) -> *mut super::super::FABRIC_SECRET_LIST; } -impl ::windows::core::RuntimeName for IFabricSecretsResult {} +impl ::windows_core::RuntimeName for IFabricSecretsResult {} impl IFabricSecretsResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecretsResult_Impl, const OFFSET: isize, >() -> IFabricSecretsResult_Vtbl { unsafe extern "system" fn get_Secrets< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecretsResult_Impl, const OFFSET: isize, >( @@ -11620,26 +11905,27 @@ impl IFabricSecretsResult_Vtbl { this.get_Secrets() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Secrets: get_Secrets::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceDescriptionResult_Impl: Sized { fn get_Description(&self) -> *mut super::super::FABRIC_SERVICE_DESCRIPTION; } -impl ::windows::core::RuntimeName for IFabricServiceDescriptionResult {} +impl ::windows_core::RuntimeName for IFabricServiceDescriptionResult {} impl IFabricServiceDescriptionResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceDescriptionResult_Impl, const OFFSET: isize, >() -> IFabricServiceDescriptionResult_Vtbl { unsafe extern "system" fn get_Description< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceDescriptionResult_Impl, const OFFSET: isize, >( @@ -11650,67 +11936,69 @@ impl IFabricServiceDescriptionResult_Vtbl { this.get_Description() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Description: get_Description::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceEndpointsVersion_Impl: Sized { fn Compare( &self, - other: &::core::option::Option, - ) -> ::windows::core::Result; + other: ::core::option::Option<&IFabricServiceEndpointsVersion>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricServiceEndpointsVersion {} +impl ::windows_core::RuntimeName for IFabricServiceEndpointsVersion {} impl IFabricServiceEndpointsVersion_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceEndpointsVersion_Impl, const OFFSET: isize, >() -> IFabricServiceEndpointsVersion_Vtbl { unsafe extern "system" fn Compare< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceEndpointsVersion_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, other: *mut ::core::ffi::c_void, compareresult: *mut i32, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.Compare(::core::mem::transmute(&other)) { + match this.Compare(::windows_core::from_raw_borrowed(&other)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(compareresult, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), Compare: Compare::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceGroupDescriptionResult_Impl: Sized { fn get_Description(&self) -> *mut super::super::FABRIC_SERVICE_GROUP_DESCRIPTION; } -impl ::windows::core::RuntimeName for IFabricServiceGroupDescriptionResult {} +impl ::windows_core::RuntimeName for IFabricServiceGroupDescriptionResult {} impl IFabricServiceGroupDescriptionResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupDescriptionResult_Impl, const OFFSET: isize, >() -> IFabricServiceGroupDescriptionResult_Vtbl { unsafe extern "system" fn get_Description< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupDescriptionResult_Impl, const OFFSET: isize, >( @@ -11721,55 +12009,56 @@ impl IFabricServiceGroupDescriptionResult_Vtbl { this.get_Description() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Description: get_Description::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceGroupManagementClient_Impl: Sized { fn BeginCreateServiceGroup( &self, description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCreateServiceGroup( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginDeleteServiceGroup( &self, name: *const u16, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndDeleteServiceGroup( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetServiceGroupDescription( &self, name: *const u16, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetServiceGroupDescription( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricServiceGroupManagementClient {} +impl ::windows_core::RuntimeName for IFabricServiceGroupManagementClient {} impl IFabricServiceGroupManagementClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize, >() -> IFabricServiceGroupManagementClient_Vtbl { unsafe extern "system" fn BeginCreateServiceGroup< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize, >( @@ -11778,36 +12067,36 @@ impl IFabricServiceGroupManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCreateServiceGroup( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCreateServiceGroup< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndCreateServiceGroup(::core::mem::transmute(&context)) + this.EndCreateServiceGroup(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginDeleteServiceGroup< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize, >( @@ -11816,36 +12105,36 @@ impl IFabricServiceGroupManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginDeleteServiceGroup( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteServiceGroup< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndDeleteServiceGroup(::core::mem::transmute(&context)) + this.EndDeleteServiceGroup(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetServiceGroupDescription< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize, >( @@ -11854,42 +12143,42 @@ impl IFabricServiceGroupManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetServiceGroupDescription( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceGroupDescription< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetServiceGroupDescription(::core::mem::transmute(&context)) { + match this.EndGetServiceGroupDescription(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginCreateServiceGroup: BeginCreateServiceGroup::, EndCreateServiceGroup: EndCreateServiceGroup::, BeginDeleteServiceGroup: BeginDeleteServiceGroup::, @@ -11902,10 +12191,11 @@ impl IFabricServiceGroupManagementClient_Vtbl { EndGetServiceGroupDescription: EndGetServiceGroupDescription::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceGroupManagementClient2_Impl: Sized + IFabricServiceGroupManagementClient_Impl { @@ -11914,22 +12204,22 @@ pub trait IFabricServiceGroupManagementClient2_Impl: name: *const u16, servicegroupupdatedescription: *const super::super::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUpdateServiceGroup( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricServiceGroupManagementClient2 {} +impl ::windows_core::RuntimeName for IFabricServiceGroupManagementClient2 {} impl IFabricServiceGroupManagementClient2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient2_Impl, const OFFSET: isize, >() -> IFabricServiceGroupManagementClient2_Vtbl { unsafe extern "system" fn BeginUpdateServiceGroup< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient2_Impl, const OFFSET: isize, >( @@ -11939,33 +12229,33 @@ impl IFabricServiceGroupManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUpdateServiceGroup( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&servicegroupupdatedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateServiceGroup< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUpdateServiceGroup(::core::mem::transmute(&context)) + this.EndUpdateServiceGroup(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -11974,11 +12264,12 @@ impl IFabricServiceGroupManagementClient2_Vtbl { EndUpdateServiceGroup: EndUpdateServiceGroup::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceGroupManagementClient3_Impl: Sized + IFabricServiceGroupManagementClient2_Impl { @@ -11986,39 +12277,39 @@ pub trait IFabricServiceGroupManagementClient3_Impl: &self, applicationname: *const u16, servicename: *const u16, - servicetypename: &::windows::core::PCWSTR, + servicetypename: &::windows_core::PCWSTR, initializationdatasize: u32, initializationdata: *const u8, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCreateServiceGroupFromTemplate( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricServiceGroupManagementClient3 {} +impl ::windows_core::RuntimeName for IFabricServiceGroupManagementClient3 {} impl IFabricServiceGroupManagementClient3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient3_Impl, const OFFSET: isize, >() -> IFabricServiceGroupManagementClient3_Vtbl { unsafe extern "system" fn BeginCreateServiceGroupFromTemplate< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, applicationname: *const u16, servicename: *const u16, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, initializationdatasize: u32, initializationdata: *const u8, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCreateServiceGroupFromTemplate( @@ -12028,26 +12319,26 @@ impl IFabricServiceGroupManagementClient3_Vtbl { ::core::mem::transmute_copy(&initializationdatasize), ::core::mem::transmute_copy(&initializationdata), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCreateServiceGroupFromTemplate< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndCreateServiceGroupFromTemplate(::core::mem::transmute(&context)) + this.EndCreateServiceGroupFromTemplate(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -12064,12 +12355,13 @@ impl IFabricServiceGroupManagementClient3_Vtbl { >, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceGroupManagementClient4_Impl: Sized + IFabricServiceGroupManagementClient3_Impl { @@ -12077,22 +12369,22 @@ pub trait IFabricServiceGroupManagementClient4_Impl: &self, servicegroupfromtemplatedescription : *const super::super:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCreateServiceGroupFromTemplate2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricServiceGroupManagementClient4 {} +impl ::windows_core::RuntimeName for IFabricServiceGroupManagementClient4 {} impl IFabricServiceGroupManagementClient4_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient4_Impl, const OFFSET: isize, >() -> IFabricServiceGroupManagementClient4_Vtbl { unsafe extern "system" fn BeginCreateServiceGroupFromTemplate2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient4_Impl, const OFFSET: isize, >( @@ -12101,32 +12393,32 @@ impl IFabricServiceGroupManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCreateServiceGroupFromTemplate2( ::core::mem::transmute_copy(&servicegroupfromtemplatedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCreateServiceGroupFromTemplate2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupManagementClient4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndCreateServiceGroupFromTemplate2(::core::mem::transmute(&context)) + this.EndCreateServiceGroupFromTemplate2(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -12143,25 +12435,29 @@ impl IFabricServiceGroupManagementClient4_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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricServiceHealthResult_Impl: Sized { fn get_ServiceHealth(&self) -> *mut super::super::FABRIC_SERVICE_HEALTH; } -impl ::windows::core::RuntimeName for IFabricServiceHealthResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricServiceHealthResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricServiceHealthResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceHealthResult_Impl, const OFFSET: isize, >() -> IFabricServiceHealthResult_Vtbl { unsafe extern "system" fn get_ServiceHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceHealthResult_Impl, const OFFSET: isize, >( @@ -12172,93 +12468,94 @@ impl IFabricServiceHealthResult_Vtbl { this.get_ServiceHealth() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ServiceHealth: get_ServiceHealth::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceManagementClient_Impl: Sized { fn BeginCreateService( &self, description: *const super::super::FABRIC_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCreateService( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginCreateServiceFromTemplate( &self, applicationname: *const u16, servicename: *const u16, - servicetypename: &::windows::core::PCWSTR, + servicetypename: &::windows_core::PCWSTR, initializationdatasize: u32, initializationdata: *const u8, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCreateServiceFromTemplate( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginDeleteService( &self, name: *const u16, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndDeleteService( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetServiceDescription( &self, name: *const u16, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetServiceDescription( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn RegisterServicePartitionResolutionChangeHandler( &self, name: *const u16, keytype: super::super::FABRIC_PARTITION_KEY_TYPE, partitionkey: *const ::core::ffi::c_void, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&IFabricServicePartitionResolutionChangeHandler>, + ) -> ::windows_core::Result; fn UnregisterServicePartitionResolutionChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn BeginResolveServicePartition( &self, name: *const u16, partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, partitionkey: *const ::core::ffi::c_void, - previousresult: &::core::option::Option, + previousresult: ::core::option::Option<&IFabricResolvedServicePartitionResult>, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndResolveServicePartition( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricServiceManagementClient {} +impl ::windows_core::RuntimeName for IFabricServiceManagementClient {} impl IFabricServiceManagementClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient_Impl, const OFFSET: isize, >() -> IFabricServiceManagementClient_Vtbl { unsafe extern "system" fn BeginCreateService< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( @@ -12267,49 +12564,49 @@ impl IFabricServiceManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCreateService( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCreateService< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndCreateService(::core::mem::transmute(&context)) + this.EndCreateService(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginCreateServiceFromTemplate< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, applicationname: *const u16, servicename: *const u16, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, initializationdatasize: u32, initializationdata: *const u8, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCreateServiceFromTemplate( @@ -12319,30 +12616,30 @@ impl IFabricServiceManagementClient_Vtbl { ::core::mem::transmute_copy(&initializationdatasize), ::core::mem::transmute_copy(&initializationdata), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCreateServiceFromTemplate< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndCreateServiceFromTemplate(::core::mem::transmute(&context)) + this.EndCreateServiceFromTemplate(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginDeleteService< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( @@ -12351,36 +12648,36 @@ impl IFabricServiceManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginDeleteService( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteService< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndDeleteService(::core::mem::transmute(&context)) + this.EndDeleteService(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetServiceDescription< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( @@ -12389,42 +12686,42 @@ impl IFabricServiceManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetServiceDescription( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceDescription< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetServiceDescription(::core::mem::transmute(&context)) { + match this.EndGetServiceDescription(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn RegisterServicePartitionResolutionChangeHandler< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( @@ -12434,30 +12731,30 @@ impl IFabricServiceManagementClient_Vtbl { partitionkey: *const ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, callbackhandle: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.RegisterServicePartitionResolutionChangeHandler( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&keytype), ::core::mem::transmute_copy(&partitionkey), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn UnregisterServicePartitionResolutionChangeHandler< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, callbackhandle: i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UnregisterServicePartitionResolutionChangeHandler(::core::mem::transmute_copy( @@ -12466,7 +12763,7 @@ impl IFabricServiceManagementClient_Vtbl { .into() } unsafe extern "system" fn BeginResolveServicePartition< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient_Impl, const OFFSET: isize, >( @@ -12478,45 +12775,45 @@ impl IFabricServiceManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginResolveServicePartition( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&partitionkeytype), ::core::mem::transmute_copy(&partitionkey), - ::core::mem::transmute(&previousresult), + ::windows_core::from_raw_borrowed(&previousresult), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndResolveServicePartition< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndResolveServicePartition(::core::mem::transmute(&context)) { + match this.EndResolveServicePartition(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginCreateService: BeginCreateService::, EndCreateService: EndCreateService::, BeginCreateServiceFromTemplate: BeginCreateServiceFromTemplate::, @@ -12533,57 +12830,58 @@ impl IFabricServiceManagementClient_Vtbl { EndResolveServicePartition: EndResolveServicePartition::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceManagementClient2_Impl: Sized + IFabricServiceManagementClient_Impl { fn BeginGetServiceManifest( &self, - applicationtypename: &::windows::core::PCWSTR, - applicationtypeversion: &::windows::core::PCWSTR, - servicemanifestname: &::windows::core::PCWSTR, + applicationtypename: &::windows_core::PCWSTR, + applicationtypeversion: &::windows_core::PCWSTR, + servicemanifestname: &::windows_core::PCWSTR, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetServiceManifest( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginUpdateService( &self, name: *const u16, serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUpdateService( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricServiceManagementClient2 {} +impl ::windows_core::RuntimeName for IFabricServiceManagementClient2 {} impl IFabricServiceManagementClient2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient2_Impl, const OFFSET: isize, >() -> IFabricServiceManagementClient2_Vtbl { unsafe extern "system" fn BeginGetServiceManifest< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, - servicemanifestname: ::windows::core::PCWSTR, + applicationtypename: ::windows_core::PCWSTR, + applicationtypeversion: ::windows_core::PCWSTR, + servicemanifestname: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetServiceManifest( @@ -12591,36 +12889,36 @@ impl IFabricServiceManagementClient2_Vtbl { ::core::mem::transmute(&applicationtypeversion), ::core::mem::transmute(&servicemanifestname), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetServiceManifest< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetServiceManifest(::core::mem::transmute(&context)) { + match this.EndGetServiceManifest(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginUpdateService< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient2_Impl, const OFFSET: isize, >( @@ -12630,33 +12928,33 @@ impl IFabricServiceManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUpdateService( ::core::mem::transmute_copy(&name), ::core::mem::transmute_copy(&serviceupdatedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateService< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUpdateService(::core::mem::transmute(&context)) + this.EndUpdateService(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -12667,11 +12965,12 @@ impl IFabricServiceManagementClient2_Vtbl { EndUpdateService: EndUpdateService::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceManagementClient3_Impl: Sized + IFabricServiceManagementClient2_Impl { @@ -12679,32 +12978,32 @@ pub trait IFabricServiceManagementClient3_Impl: &self, description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRemoveReplica( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginRestartReplica( &self, description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRestartReplica( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricServiceManagementClient3 {} +impl ::windows_core::RuntimeName for IFabricServiceManagementClient3 {} impl IFabricServiceManagementClient3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient3_Impl, const OFFSET: isize, >() -> IFabricServiceManagementClient3_Vtbl { unsafe extern "system" fn BeginRemoveReplica< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient3_Impl, const OFFSET: isize, >( @@ -12713,36 +13012,36 @@ impl IFabricServiceManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRemoveReplica( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRemoveReplica< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRemoveReplica(::core::mem::transmute(&context)) + this.EndRemoveReplica(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginRestartReplica< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient3_Impl, const OFFSET: isize, >( @@ -12751,32 +13050,32 @@ impl IFabricServiceManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRestartReplica( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRestartReplica< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRestartReplica(::core::mem::transmute(&context)) + this.EndRestartReplica(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -12787,12 +13086,13 @@ impl IFabricServiceManagementClient3_Vtbl { EndRestartReplica: EndRestartReplica::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceManagementClient4_Impl: Sized + IFabricServiceManagementClient3_Impl { @@ -12800,32 +13100,32 @@ pub trait IFabricServiceManagementClient4_Impl: &self, description: *const super::super::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRegisterServiceNotificationFilter( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginUnregisterServiceNotificationFilter( &self, filterid: i64, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUnregisterServiceNotificationFilter( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricServiceManagementClient4 {} +impl ::windows_core::RuntimeName for IFabricServiceManagementClient4 {} impl IFabricServiceManagementClient4_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient4_Impl, const OFFSET: isize, >() -> IFabricServiceManagementClient4_Vtbl { unsafe extern "system" fn BeginRegisterServiceNotificationFilter< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient4_Impl, const OFFSET: isize, >( @@ -12834,42 +13134,44 @@ impl IFabricServiceManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRegisterServiceNotificationFilter( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRegisterServiceNotificationFilter< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, filterid: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndRegisterServiceNotificationFilter(::core::mem::transmute(&context)) { + match this + .EndRegisterServiceNotificationFilter(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(filterid, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginUnregisterServiceNotificationFilter< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient4_Impl, const OFFSET: isize, >( @@ -12878,32 +13180,32 @@ impl IFabricServiceManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUnregisterServiceNotificationFilter( ::core::mem::transmute_copy(&filterid), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUnregisterServiceNotificationFilter< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUnregisterServiceNotificationFilter(::core::mem::transmute(&context)) + this.EndUnregisterServiceNotificationFilter(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -12930,13 +13232,15 @@ 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricServiceManagementClient5_Impl: Sized + IFabricServiceManagementClient4_Impl { @@ -12944,22 +13248,24 @@ pub trait IFabricServiceManagementClient5_Impl: &self, deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndDeleteService2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricServiceManagementClient5 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricServiceManagementClient5 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricServiceManagementClient5_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient5_Impl, const OFFSET: isize, >() -> IFabricServiceManagementClient5_Vtbl { unsafe extern "system" fn BeginDeleteService2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient5_Impl, const OFFSET: isize, >( @@ -12968,32 +13274,32 @@ impl IFabricServiceManagementClient5_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginDeleteService2( ::core::mem::transmute_copy(&deletedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndDeleteService2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndDeleteService2(::core::mem::transmute(&context)) + this.EndDeleteService2(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -13002,14 +13308,16 @@ impl IFabricServiceManagementClient5_Vtbl { EndDeleteService2: EndDeleteService2::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricServiceManagementClient6_Impl: Sized + IFabricServiceManagementClient5_Impl { @@ -13017,22 +13325,24 @@ pub trait IFabricServiceManagementClient6_Impl: &self, servicefromtemplatedescription : *const super::super:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCreateServiceFromTemplate2( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricServiceManagementClient6 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricServiceManagementClient6 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricServiceManagementClient6_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient6_Impl, const OFFSET: isize, >() -> IFabricServiceManagementClient6_Vtbl { unsafe extern "system" fn BeginCreateServiceFromTemplate2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient6_Impl, const OFFSET: isize, >( @@ -13041,32 +13351,32 @@ impl IFabricServiceManagementClient6_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCreateServiceFromTemplate2( ::core::mem::transmute_copy(&servicefromtemplatedescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCreateServiceFromTemplate2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceManagementClient6_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndCreateServiceFromTemplate2(::core::mem::transmute(&context)) + this.EndCreateServiceFromTemplate2(::windows_core::from_raw_borrowed(&context)) .into() } Self { @@ -13079,28 +13389,29 @@ impl IFabricServiceManagementClient6_Vtbl { EndCreateServiceFromTemplate2: EndCreateServiceFromTemplate2::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceNotification_Impl: Sized { fn get_Notification(&self) -> *mut super::super::FABRIC_SERVICE_NOTIFICATION; - fn GetVersion(&self) -> ::windows::core::Result; + fn GetVersion(&self) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricServiceNotification {} +impl ::windows_core::RuntimeName for IFabricServiceNotification {} impl IFabricServiceNotification_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceNotification_Impl, const OFFSET: isize, >() -> IFabricServiceNotification_Vtbl { unsafe extern "system" fn get_Notification< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceNotification_Impl, const OFFSET: isize, >( @@ -13111,90 +13422,92 @@ impl IFabricServiceNotification_Vtbl { this.get_Notification() } unsafe extern "system" fn GetVersion< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceNotification_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetVersion() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Notification: get_Notification::, GetVersion: GetVersion::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServiceNotificationEventHandler_Impl: Sized { fn OnNotification( &self, - __midl__ifabricservicenotificationeventhandler0000: &::core::option::Option< - IFabricServiceNotification, + __midl__ifabricservicenotificationeventhandler0000: ::core::option::Option< + &IFabricServiceNotification, >, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricServiceNotificationEventHandler {} +impl ::windows_core::RuntimeName for IFabricServiceNotificationEventHandler {} impl IFabricServiceNotificationEventHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceNotificationEventHandler_Impl, const OFFSET: isize, >() -> IFabricServiceNotificationEventHandler_Vtbl { unsafe extern "system" fn OnNotification< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceNotificationEventHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, __midl__ifabricservicenotificationeventhandler0000: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.OnNotification(::core::mem::transmute( + this.OnNotification(::windows_core::from_raw_borrowed( &__midl__ifabricservicenotificationeventhandler0000, )) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), OnNotification: OnNotification::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricServicePartitionResolutionChangeHandler_Impl: Sized { fn OnChange( &self, - source: &::core::option::Option, + source: ::core::option::Option<&IFabricServiceManagementClient>, handlerid: i64, - partition: &::core::option::Option, - error: ::windows::core::HRESULT, + partition: ::core::option::Option<&IFabricResolvedServicePartitionResult>, + error: ::windows_core::HRESULT, ); } -impl ::windows::core::RuntimeName for IFabricServicePartitionResolutionChangeHandler {} +impl ::windows_core::RuntimeName for IFabricServicePartitionResolutionChangeHandler {} impl IFabricServicePartitionResolutionChangeHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServicePartitionResolutionChangeHandler_Impl, const OFFSET: isize, >() -> IFabricServicePartitionResolutionChangeHandler_Vtbl { unsafe extern "system" fn OnChange< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServicePartitionResolutionChangeHandler_Impl, const OFFSET: isize, >( @@ -13202,38 +13515,39 @@ impl IFabricServicePartitionResolutionChangeHandler_Vtbl { source: *mut ::core::ffi::c_void, handlerid: i64, partition: *mut ::core::ffi::c_void, - error: ::windows::core::HRESULT, + error: ::windows_core::HRESULT, ) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnChange( - ::core::mem::transmute(&source), + ::windows_core::from_raw_borrowed(&source), ::core::mem::transmute_copy(&handlerid), - ::core::mem::transmute(&partition), + ::windows_core::from_raw_borrowed(&partition), ::core::mem::transmute_copy(&error), ) } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), OnChange: OnChange::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricServicePartitionResolutionChangeHandler < > as::windows_core::ComInterface >::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricStartNodeResult_Impl: Sized { fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT; } -impl ::windows::core::RuntimeName for IFabricStartNodeResult {} +impl ::windows_core::RuntimeName for IFabricStartNodeResult {} impl IFabricStartNodeResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStartNodeResult_Impl, const OFFSET: isize, >() -> IFabricStartNodeResult_Vtbl { unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStartNodeResult_Impl, const OFFSET: isize, >( @@ -13244,26 +13558,27 @@ impl IFabricStartNodeResult_Vtbl { this.get_Result() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Result: get_Result::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricStopNodeResult_Impl: Sized { fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT; } -impl ::windows::core::RuntimeName for IFabricStopNodeResult {} +impl ::windows_core::RuntimeName for IFabricStopNodeResult {} impl IFabricStopNodeResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStopNodeResult_Impl, const OFFSET: isize, >() -> IFabricStopNodeResult_Vtbl { unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStopNodeResult_Impl, const OFFSET: isize, >( @@ -13274,26 +13589,27 @@ impl IFabricStopNodeResult_Vtbl { this.get_Result() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Result: get_Result::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricTestCommandStatusResult_Impl: Sized { fn get_Result(&self) -> *mut super::super::TEST_COMMAND_QUERY_RESULT_LIST; } -impl ::windows::core::RuntimeName for IFabricTestCommandStatusResult {} +impl ::windows_core::RuntimeName for IFabricTestCommandStatusResult {} impl IFabricTestCommandStatusResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestCommandStatusResult_Impl, const OFFSET: isize, >() -> IFabricTestCommandStatusResult_Vtbl { unsafe extern "system" fn get_Result< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestCommandStatusResult_Impl, const OFFSET: isize, >( @@ -13304,105 +13620,109 @@ impl IFabricTestCommandStatusResult_Vtbl { this.get_Result() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Result: get_Result::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricTestManagementClient_Impl: Sized { fn BeginStartPartitionDataLoss( &self, invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndStartPartitionDataLoss( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetPartitionDataLossProgress( &self, - operationid: &::windows::core::GUID, + operationid: &::windows_core::GUID, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetPartitionDataLossProgress( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginStartPartitionQuorumLoss( &self, invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndStartPartitionQuorumLoss( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetPartitionQuorumLossProgress( &self, - operationid: &::windows::core::GUID, + operationid: &::windows_core::GUID, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetPartitionQuorumLossProgress( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginStartPartitionRestart( &self, restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndStartPartitionRestart( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetPartitionRestartProgress( &self, - operationid: &::windows::core::GUID, + operationid: &::windows_core::GUID, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetPartitionRestartProgress( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetTestCommandStatusList( &self, operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetTestCommandStatusList( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginCancelTestCommand( &self, invokedatalossdescription: *const super::super::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCancelTestCommand( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricTestManagementClient {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricTestManagementClient {} +#[cfg(feature = "Win32_Foundation")] impl IFabricTestManagementClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >() -> IFabricTestManagementClient_Vtbl { unsafe extern "system" fn BeginStartPartitionDataLoss< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >( @@ -13411,80 +13731,81 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginStartPartitionDataLoss( ::core::mem::transmute_copy(&invokedatalossdescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndStartPartitionDataLoss< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndStartPartitionDataLoss(::core::mem::transmute(&context)) + this.EndStartPartitionDataLoss(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetPartitionDataLossProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetPartitionDataLossProgress( ::core::mem::transmute(&operationid), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionDataLossProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetPartitionDataLossProgress(::core::mem::transmute(&context)) { + match this.EndGetPartitionDataLossProgress(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginStartPartitionQuorumLoss< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >( @@ -13493,80 +13814,82 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginStartPartitionQuorumLoss( ::core::mem::transmute_copy(&invokequorumlossdescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndStartPartitionQuorumLoss< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndStartPartitionQuorumLoss(::core::mem::transmute(&context)) + this.EndStartPartitionQuorumLoss(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetPartitionQuorumLossProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetPartitionQuorumLossProgress( ::core::mem::transmute(&operationid), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionQuorumLossProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetPartitionQuorumLossProgress(::core::mem::transmute(&context)) { + match this + .EndGetPartitionQuorumLossProgress(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginStartPartitionRestart< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >( @@ -13575,80 +13898,80 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginStartPartitionRestart( ::core::mem::transmute_copy(&restartpartitiondescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndStartPartitionRestart< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndStartPartitionRestart(::core::mem::transmute(&context)) + this.EndStartPartitionRestart(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetPartitionRestartProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetPartitionRestartProgress( ::core::mem::transmute(&operationid), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetPartitionRestartProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetPartitionRestartProgress(::core::mem::transmute(&context)) { + match this.EndGetPartitionRestartProgress(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetTestCommandStatusList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >( @@ -13657,42 +13980,42 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetTestCommandStatusList( ::core::mem::transmute_copy(&operationid), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetTestCommandStatusList< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetTestCommandStatusList(::core::mem::transmute(&context)) { + match this.EndGetTestCommandStatusList(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginCancelTestCommand< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >( @@ -13701,36 +14024,36 @@ impl IFabricTestManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCancelTestCommand( ::core::mem::transmute_copy(&invokedatalossdescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCancelTestCommand< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndCancelTestCommand(::core::mem::transmute(&context)) + this.EndCancelTestCommand(::windows_core::from_raw_borrowed(&context)) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginStartPartitionDataLoss: BeginStartPartitionDataLoss::, EndStartPartitionDataLoss: EndStartPartitionDataLoss::, BeginGetPartitionDataLossProgress: BeginGetPartitionDataLossProgress::< @@ -13769,50 +14092,54 @@ impl IFabricTestManagementClient_Vtbl { EndCancelTestCommand: EndCancelTestCommand::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricTestManagementClient2_Impl: Sized + IFabricTestManagementClient_Impl { fn BeginStartChaos( &self, restartpartitiondescription: *const super::super::FABRIC_START_CHAOS_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndStartChaos( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginStopChaos( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndStopChaos( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetChaosReport( &self, getchaosreportdescription: *const super::super::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetChaosReport( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricTestManagementClient2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricTestManagementClient2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricTestManagementClient2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient2_Impl, const OFFSET: isize, >() -> IFabricTestManagementClient2_Vtbl { unsafe extern "system" fn BeginStartChaos< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient2_Impl, const OFFSET: isize, >( @@ -13821,35 +14148,36 @@ impl IFabricTestManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginStartChaos( ::core::mem::transmute_copy(&restartpartitiondescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndStartChaos< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndStartChaos(::core::mem::transmute(&context)).into() + this.EndStartChaos(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn BeginStopChaos< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient2_Impl, const OFFSET: isize, >( @@ -13857,34 +14185,35 @@ impl IFabricTestManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginStopChaos( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndStopChaos< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndStopChaos(::core::mem::transmute(&context)).into() + this.EndStopChaos(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn BeginGetChaosReport< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient2_Impl, const OFFSET: isize, >( @@ -13893,36 +14222,36 @@ impl IFabricTestManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetChaosReport( ::core::mem::transmute_copy(&getchaosreportdescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetChaosReport< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetChaosReport(::core::mem::transmute(&context)) { + match this.EndGetChaosReport(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -13937,42 +14266,46 @@ impl IFabricTestManagementClient2_Vtbl { EndGetChaosReport: EndGetChaosReport::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricTestManagementClient3_Impl: Sized + IFabricTestManagementClient2_Impl { fn BeginStartNodeTransition( &self, description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndStartNodeTransition( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetNodeTransitionProgress( &self, - operationid: &::windows::core::GUID, + operationid: &::windows_core::GUID, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetNodeTransitionProgress( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricTestManagementClient3 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricTestManagementClient3 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricTestManagementClient3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient3_Impl, const OFFSET: isize, >() -> IFabricTestManagementClient3_Vtbl { unsafe extern "system" fn BeginStartNodeTransition< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient3_Impl, const OFFSET: isize, >( @@ -13981,74 +14314,74 @@ impl IFabricTestManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginStartNodeTransition( ::core::mem::transmute_copy(&description), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndStartNodeTransition< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndStartNodeTransition(::core::mem::transmute(&context)) + this.EndStartNodeTransition(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetNodeTransitionProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetNodeTransitionProgress( ::core::mem::transmute(&operationid), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetNodeTransitionProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetNodeTransitionProgress(::core::mem::transmute(&context)) { + match this.EndGetNodeTransitionProgress(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -14061,61 +14394,65 @@ impl IFabricTestManagementClient3_Vtbl { EndGetNodeTransitionProgress: EndGetNodeTransitionProgress::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricTestManagementClient4_Impl: Sized + IFabricTestManagementClient3_Impl { fn BeginGetChaos( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetChaos( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginGetChaosSchedule( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetChaosSchedule( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginSetChaosSchedule( &self, setchaosscheduledescription: *const super::super::FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndSetChaosSchedule( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginGetChaosEvents( &self, chaoseventsdescription: *const super::super::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetChaosEvents( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricTestManagementClient4 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricTestManagementClient4 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricTestManagementClient4_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient4_Impl, const OFFSET: isize, >() -> IFabricTestManagementClient4_Vtbl { unsafe extern "system" fn BeginGetChaos< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( @@ -14123,41 +14460,41 @@ impl IFabricTestManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetChaos( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetChaos< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetChaos(::core::mem::transmute(&context)) { + match this.EndGetChaos(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginGetChaosSchedule< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( @@ -14165,41 +14502,41 @@ impl IFabricTestManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetChaosSchedule( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetChaosSchedule< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetChaosSchedule(::core::mem::transmute(&context)) { + match this.EndGetChaosSchedule(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginSetChaosSchedule< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( @@ -14208,36 +14545,36 @@ impl IFabricTestManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginSetChaosSchedule( ::core::mem::transmute_copy(&setchaosscheduledescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndSetChaosSchedule< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndSetChaosSchedule(::core::mem::transmute(&context)) + this.EndSetChaosSchedule(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginGetChaosEvents< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTestManagementClient4_Impl, const OFFSET: isize, >( @@ -14246,36 +14583,36 @@ impl IFabricTestManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginGetChaosEvents( ::core::mem::transmute_copy(&chaoseventsdescription), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetChaosEvents< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetChaosEvents(::core::mem::transmute(&context)) { + match this.EndGetChaosEvents(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -14292,25 +14629,26 @@ impl IFabricTestManagementClient4_Vtbl { EndGetChaosEvents: EndGetChaosEvents::, } } - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricUpgradeOrchestrationServiceStateResult_Impl: Sized { fn get_State(&self) -> *mut super::super::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE; } -impl ::windows::core::RuntimeName for IFabricUpgradeOrchestrationServiceStateResult {} +impl ::windows_core::RuntimeName for IFabricUpgradeOrchestrationServiceStateResult {} impl IFabricUpgradeOrchestrationServiceStateResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeOrchestrationServiceStateResult_Impl, const OFFSET: isize, >() -> IFabricUpgradeOrchestrationServiceStateResult_Vtbl { unsafe extern "system" fn get_State< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeOrchestrationServiceStateResult_Impl, const OFFSET: isize, >( @@ -14321,61 +14659,62 @@ impl IFabricUpgradeOrchestrationServiceStateResult_Vtbl { this.get_State() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_State: get_State::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricUpgradeProgressResult_Impl: Sized { - fn get_TargetCodeVersion(&self) -> ::windows::core::PWSTR; - fn get_TargetConfigVersion(&self) -> ::windows::core::PWSTR; + fn get_TargetCodeVersion(&self) -> ::windows_core::PCWSTR; + fn get_TargetConfigVersion(&self) -> ::windows_core::PCWSTR; fn get_UpgradeState(&self) -> super::super::FABRIC_UPGRADE_STATE; fn GetUpgradeDomains( &self, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn GetChangedUpgradeDomains( &self, - previousprogress: &::core::option::Option, + previousprogress: ::core::option::Option<&IFabricUpgradeProgressResult>, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricUpgradeProgressResult {} +impl ::windows_core::RuntimeName for IFabricUpgradeProgressResult {} impl IFabricUpgradeProgressResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeProgressResult_Impl, const OFFSET: isize, >() -> IFabricUpgradeProgressResult_Vtbl { unsafe extern "system" fn get_TargetCodeVersion< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeProgressResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_TargetCodeVersion() } unsafe extern "system" fn get_TargetConfigVersion< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeProgressResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_TargetConfigVersion() } unsafe extern "system" fn get_UpgradeState< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeProgressResult_Impl, const OFFSET: isize, >( @@ -14386,14 +14725,14 @@ impl IFabricUpgradeProgressResult_Vtbl { this.get_UpgradeState() } unsafe extern "system" fn GetUpgradeDomains< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeProgressResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetUpgradeDomains( @@ -14403,7 +14742,7 @@ impl IFabricUpgradeProgressResult_Vtbl { .into() } unsafe extern "system" fn GetChangedUpgradeDomains< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeProgressResult_Impl, const OFFSET: isize, >( @@ -14411,18 +14750,18 @@ impl IFabricUpgradeProgressResult_Vtbl { previousprogress: *mut ::core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetChangedUpgradeDomains( - ::core::mem::transmute(&previousprogress), + ::windows_core::from_raw_borrowed(&previousprogress), ::core::mem::transmute_copy(&itemcount), ::core::mem::transmute_copy(&buffereditems), ) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_TargetCodeVersion: get_TargetCodeVersion::, get_TargetConfigVersion: get_TargetConfigVersion::, get_UpgradeState: get_UpgradeState::, @@ -14430,23 +14769,24 @@ impl IFabricUpgradeProgressResult_Vtbl { GetChangedUpgradeDomains: GetChangedUpgradeDomains::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricUpgradeProgressResult2_Impl: Sized + IFabricUpgradeProgressResult_Impl { fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE; - fn get_NextUpgradeDomain(&self) -> ::windows::core::PWSTR; + fn get_NextUpgradeDomain(&self) -> ::windows_core::PCWSTR; } -impl ::windows::core::RuntimeName for IFabricUpgradeProgressResult2 {} +impl ::windows_core::RuntimeName for IFabricUpgradeProgressResult2 {} impl IFabricUpgradeProgressResult2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeProgressResult2_Impl, const OFFSET: isize, >() -> IFabricUpgradeProgressResult2_Vtbl { unsafe extern "system" fn get_RollingUpgradeMode< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeProgressResult2_Impl, const OFFSET: isize, >( @@ -14457,12 +14797,12 @@ impl IFabricUpgradeProgressResult2_Vtbl { this.get_RollingUpgradeMode() } unsafe extern "system" fn get_NextUpgradeDomain< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeProgressResult2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_NextUpgradeDomain() @@ -14473,23 +14813,24 @@ impl IFabricUpgradeProgressResult2_Vtbl { get_NextUpgradeDomain: get_NextUpgradeDomain::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`, `\"implement\"`*"] pub trait IFabricUpgradeProgressResult3_Impl: Sized + IFabricUpgradeProgressResult2_Impl { fn get_UpgradeProgress(&self) -> *mut super::super::FABRIC_UPGRADE_PROGRESS; } -impl ::windows::core::RuntimeName for IFabricUpgradeProgressResult3 {} +impl ::windows_core::RuntimeName for IFabricUpgradeProgressResult3 {} impl IFabricUpgradeProgressResult3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeProgressResult3_Impl, const OFFSET: isize, >() -> IFabricUpgradeProgressResult3_Vtbl { unsafe extern "system" fn get_UpgradeProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricUpgradeProgressResult3_Impl, const OFFSET: isize, >( @@ -14504,9 +14845,9 @@ impl IFabricUpgradeProgressResult3_Vtbl { get_UpgradeProgress: get_UpgradeProgress::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } } diff --git a/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/mod.rs b/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/mod.rs index 47c904d1..63245c19 100644 --- a/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/mod.rs +++ b/src/Microsoft/ServiceFabric/FabricCommon/FabricClient/mod.rs @@ -1,217 +1,218 @@ +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[inline] pub unsafe fn FabricCreateClient( - connectionstrings: &[::windows::core::PWSTR], - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> { + connectionstrings: &[::windows_core::PCWSTR], + iid: *const ::windows_core::GUID, +) -> ::windows_core::Result<*mut ::core::ffi::c_void> { #[link(name = "fabricclient")] extern "system" { - fn FabricCreateClient( + pub fn FabricCreateClient( connectionstringssize: u16, - connectionstrings: *const ::windows::core::PWSTR, - iid: *const ::windows::core::GUID, + connectionstrings: *const ::windows_core::PCWSTR, + iid: *const ::windows_core::GUID, fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricCreateClient( connectionstrings.len() as _, ::core::mem::transmute(connectionstrings.as_ptr()), - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), + iid, + &mut result__, ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[inline] -pub unsafe fn FabricCreateClient2<'a, P0>( - connectionstrings: &[::windows::core::PWSTR], +pub unsafe fn FabricCreateClient2( + connectionstrings: &[::windows_core::PCWSTR], __midl__fabricclientmodule0000: P0, - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> + iid: *const ::windows_core::GUID, +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceNotificationEventHandler>>, + P0: ::windows_core::IntoParam, { #[link(name = "fabricclient")] extern "system" { - fn FabricCreateClient2( + pub fn FabricCreateClient2( connectionstringssize: u16, - connectionstrings: *const ::windows::core::PWSTR, + connectionstrings: *const ::windows_core::PCWSTR, __midl__fabricclientmodule0000: *mut ::core::ffi::c_void, - iid: *const ::windows::core::GUID, + iid: *const ::windows_core::GUID, fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricCreateClient2( connectionstrings.len() as _, ::core::mem::transmute(connectionstrings.as_ptr()), - __midl__fabricclientmodule0000.into().abi(), - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), + __midl__fabricclientmodule0000.into_param().abi(), + iid, + &mut result__, ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[inline] -pub unsafe fn FabricCreateClient3<'a, P0, P1>( - connectionstrings: &[::windows::core::PWSTR], +pub unsafe fn FabricCreateClient3( + connectionstrings: &[::windows_core::PCWSTR], __midl__fabricclientmodule0002: P0, __midl__fabricclientmodule0003: P1, - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> + iid: *const ::windows_core::GUID, +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceNotificationEventHandler>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricClientConnectionEventHandler>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { #[link(name = "fabricclient")] extern "system" { - fn FabricCreateClient3( + pub fn FabricCreateClient3( connectionstringssize: u16, - connectionstrings: *const ::windows::core::PWSTR, + connectionstrings: *const ::windows_core::PCWSTR, __midl__fabricclientmodule0002: *mut ::core::ffi::c_void, __midl__fabricclientmodule0003: *mut ::core::ffi::c_void, - iid: *const ::windows::core::GUID, + iid: *const ::windows_core::GUID, fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricCreateClient3( connectionstrings.len() as _, ::core::mem::transmute(connectionstrings.as_ptr()), - __midl__fabricclientmodule0002.into().abi(), - __midl__fabricclientmodule0003.into().abi(), - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), + __midl__fabricclientmodule0002.into_param().abi(), + __midl__fabricclientmodule0003.into_param().abi(), + iid, + &mut result__, ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[inline] pub unsafe fn FabricCreateLocalClient( - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> { + iid: *const ::windows_core::GUID, +) -> ::windows_core::Result<*mut ::core::ffi::c_void> { #[link(name = "fabricclient")] extern "system" { - fn FabricCreateLocalClient( - iid: *const ::windows::core::GUID, + pub fn FabricCreateLocalClient( + iid: *const ::windows_core::GUID, fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateLocalClient( - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + let mut result__ = ::std::mem::zeroed(); + FabricCreateLocalClient(iid, &mut result__).from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[inline] -pub unsafe fn FabricCreateLocalClient2<'a, P0>( +pub unsafe fn FabricCreateLocalClient2( __midl__fabricclientmodule0001: P0, - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> + iid: *const ::windows_core::GUID, +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceNotificationEventHandler>>, + P0: ::windows_core::IntoParam, { #[link(name = "fabricclient")] extern "system" { - fn FabricCreateLocalClient2( + pub fn FabricCreateLocalClient2( __midl__fabricclientmodule0001: *mut ::core::ffi::c_void, - iid: *const ::windows::core::GUID, + iid: *const ::windows_core::GUID, fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricCreateLocalClient2( - __midl__fabricclientmodule0001.into().abi(), - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), + __midl__fabricclientmodule0001.into_param().abi(), + iid, + &mut result__, ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[inline] -pub unsafe fn FabricCreateLocalClient3<'a, P0, P1>( +pub unsafe fn FabricCreateLocalClient3( __midl__fabricclientmodule0004: P0, __midl__fabricclientmodule0005: P1, - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> + iid: *const ::windows_core::GUID, +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceNotificationEventHandler>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricClientConnectionEventHandler>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { #[link(name = "fabricclient")] extern "system" { - fn FabricCreateLocalClient3( + pub fn FabricCreateLocalClient3( __midl__fabricclientmodule0004: *mut ::core::ffi::c_void, __midl__fabricclientmodule0005: *mut ::core::ffi::c_void, - iid: *const ::windows::core::GUID, + iid: *const ::windows_core::GUID, fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricCreateLocalClient3( - __midl__fabricclientmodule0004.into().abi(), - __midl__fabricclientmodule0005.into().abi(), - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), + __midl__fabricclientmodule0004.into_param().abi(), + __midl__fabricclientmodule0005.into_param().abi(), + iid, + &mut result__, ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[inline] -pub unsafe fn FabricCreateLocalClient4<'a, P0, P1>( +pub unsafe fn FabricCreateLocalClient4( __midl__fabricclientmodule0006: P0, __midl__fabricclientmodule0007: P1, clientrole: super::super::FABRIC_CLIENT_ROLE, - iid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> + iid: *const ::windows_core::GUID, +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceNotificationEventHandler>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricClientConnectionEventHandler>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { #[link(name = "fabricclient")] extern "system" { - fn FabricCreateLocalClient4( + pub fn FabricCreateLocalClient4( __midl__fabricclientmodule0006: *mut ::core::ffi::c_void, __midl__fabricclientmodule0007: *mut ::core::ffi::c_void, clientrole: super::super::FABRIC_CLIENT_ROLE, - iid: *const ::windows::core::GUID, + iid: *const ::windows_core::GUID, fabricclient: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricCreateLocalClient4( - __midl__fabricclientmodule0006.into().abi(), - __midl__fabricclientmodule0007.into().abi(), + __midl__fabricclientmodule0006.into_param().abi(), + __midl__fabricclientmodule0007.into_param().abi(), clientrole, - ::core::mem::transmute(iid), - ::core::mem::transmute(result__.as_mut_ptr()), + iid, + &mut result__, ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[inline] pub unsafe fn FabricGetDefaultRollingUpgradeMonitoringPolicy( -) -> ::windows::core::Result { +) -> ::windows_core::Result { #[link(name = "fabricclient")] extern "system" { - fn FabricGetDefaultRollingUpgradeMonitoringPolicy( + pub fn FabricGetDefaultRollingUpgradeMonitoringPolicy( result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricGetDefaultRollingUpgradeMonitoringPolicy(::core::mem::transmute(result__.as_mut_ptr())) - .from_abi::(result__) + let mut result__ = ::std::mem::zeroed(); + FabricGetDefaultRollingUpgradeMonitoringPolicy(&mut result__).from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationHealthResult(::windows::core::IUnknown); +pub struct IFabricApplicationHealthResult(::windows_core::IUnknown); impl IFabricApplicationHealthResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ApplicationHealth(&self) -> *mut super::super::FABRIC_APPLICATION_HEALTH { - (::windows::core::Vtable::vtable(self).get_ApplicationHealth)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ApplicationHealth)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricApplicationHealthResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricApplicationHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricApplicationHealthResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricApplicationHealthResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -225,274 +226,259 @@ impl ::core::fmt::Debug for IFabricApplicationHealthResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationHealthResult { +unsafe impl ::windows_core::Interface for IFabricApplicationHealthResult { type Vtable = IFabricApplicationHealthResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x41612fab_e615_4a48_98e7_4abcc93b6049); +impl ::core::clone::Clone for IFabricApplicationHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x41612fab_e615_4a48_98e7_4abcc93b6049); } #[repr(C)] #[doc(hidden)] pub struct IFabricApplicationHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_ApplicationHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_APPLICATION_HEALTH, + #[cfg(not(feature = "Win32_Foundation"))] + get_ApplicationHealth: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationManagementClient(::windows::core::IUnknown); +pub struct IFabricApplicationManagementClient(::windows_core::IUnknown); impl IFabricApplicationManagementClient { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( + pub unsafe fn BeginProvisionApplicationType( &self, applicationbuildpath: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndProvisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateApplication<'a, P0>( + pub unsafe fn BeginCreateApplication( &self, description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateApplication)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndCreateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeApplication<'a, P0>( + pub unsafe fn BeginUpgradeApplication( &self, upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUpgradeApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetApplicationUpgradeProgress( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn EndGetApplicationUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndMoveNextApplicationUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication<'a, P0>( + pub unsafe fn BeginDeleteApplication( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteApplication)( + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndDeleteApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionApplicationType( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( + pub unsafe fn EndUnprovisionApplicationType( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUnprovisionApplicationType)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationManagementClient, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricApplicationManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationManagementClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -506,50 +492,55 @@ impl ::core::fmt::Debug for IFabricApplicationManagementClient { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient { +unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient { type Vtable = IFabricApplicationManagementClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x7c219ae9_e58d_431f_8b30_92a40281faac); +impl ::core::clone::Clone for IFabricApplicationManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x7c219ae9_e58d_431f_8b30_92a40281faac); } #[repr(C)] #[doc(hidden)] pub struct IFabricApplicationManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginProvisionApplicationType: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - applicationbuildpath: ::windows::core::PCWSTR, + applicationbuildpath: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndProvisionApplicationType: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginCreateApplication: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndCreateApplication: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginUpgradeApplication: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndUpgradeApplication: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetApplicationUpgradeProgress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, applicationname: *const u16, @@ -557,67 +548,65 @@ pub struct IFabricApplicationManagementClient_Vtbl { callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub EndGetApplicationUpgradeProgress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, + ) -> ::windows_core::HRESULT, + pub BeginMoveNextApplicationUpgradeDomain: unsafe extern "system" fn( + 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, - pub BeginMoveNextApplicationUpgradeDomain: - unsafe extern "system" fn( - 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, + -> ::windows_core::HRESULT, pub EndMoveNextApplicationUpgradeDomain: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub BeginDeleteApplication: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, applicationname: *const u16, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndDeleteApplication: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginUnprovisionApplicationType: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, + 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, + ) -> ::windows_core::HRESULT, pub EndUnprovisionApplicationType: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationManagementClient10(::windows::core::IUnknown); +pub struct IFabricApplicationManagementClient10(::windows_core::IUnknown); impl IFabricApplicationManagementClient10 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( + pub unsafe fn BeginProvisionApplicationType( &self, applicationbuildpath: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -628,22 +617,19 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -654,24 +640,22 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateApplication<'a, P0>( + pub unsafe fn BeginCreateApplication( &self, description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -682,19 +666,19 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -705,23 +689,22 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeApplication<'a, P0>( + pub unsafe fn BeginUpgradeApplication( &self, upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -732,19 +715,19 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -755,23 +738,22 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetApplicationUpgradeProgress( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -782,23 +764,23 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn EndGetApplicationUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -809,28 +791,24 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -841,22 +819,22 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -867,24 +845,22 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication<'a, P0>( + pub unsafe fn BeginDeleteApplication( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -895,19 +871,19 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -918,26 +894,25 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionApplicationType( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -948,23 +923,23 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( + pub unsafe fn EndUnprovisionApplicationType( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -975,27 +950,25 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( + pub unsafe fn BeginGetApplicationManifest( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -1005,24 +978,24 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationManifest<'a, P0>( + pub unsafe fn EndGetApplicationManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -1032,27 +1005,25 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( &self, applicationname: *const u16, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -1062,23 +1033,23 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -1088,24 +1059,22 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( + pub unsafe fn BeginUpdateApplicationUpgrade( &self, description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -1114,22 +1083,19 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplicationUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -1138,24 +1104,22 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( + pub unsafe fn BeginRestartDeployedCodePackage( &self, restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -1164,22 +1128,22 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( + pub unsafe fn EndRestartDeployedCodePackage( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -1188,23 +1152,23 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( + pub unsafe fn CopyApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepath: P1, applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -1213,23 +1177,23 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( + pub unsafe fn RemoveApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -1238,13 +1202,13 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( + pub unsafe fn BeginDeployServicePackageToNode( &self, applicationtypename: P0, applicationtypeversion: P1, @@ -1253,18 +1217,16 @@ impl IFabricApplicationManagementClient10 { nodename: P3, timeoutmilliseconds: u32, callback: P4, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -1272,26 +1234,26 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( + pub unsafe fn EndDeployServicePackageToNode( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -1299,251 +1261,243 @@ impl IFabricApplicationManagementClient10 { .base__ .base__ .EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackApplicationUpgrade<'a, P0>( + pub unsafe fn BeginRollbackApplicationUpgrade( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackApplicationUpgrade<'a, P0>( + pub unsafe fn EndRollbackApplicationUpgrade( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplication<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginUpdateApplication( &self, applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginUpdateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationupdatedescription), + ::windows_core::Interface::as_raw(self), + applicationupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndUpdateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginDeleteApplication2( &self, deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), + ::windows_core::Interface::as_raw(self), + deletedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication2<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication2(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginProvisionApplicationType2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginProvisionApplicationType2( &self, description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginProvisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType2(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndProvisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionApplicationType2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginUnprovisionApplicationType2( &self, description: *const super::super::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUnprovisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionApplicationType2<'a, P0>( + pub unsafe fn EndUnprovisionApplicationType2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndUnprovisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginProvisionApplicationType3<'a, P0>( + pub unsafe fn BeginProvisionApplicationType3( &self, description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProvisionApplicationType3)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProvisionApplicationType3)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType3<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType3(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndProvisionApplicationType3)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndProvisionApplicationType3)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationManagementClient10, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricApplicationManagementClient, IFabricApplicationManagementClient2, IFabricApplicationManagementClient3, @@ -1554,11 +1508,6 @@ impl IFabricApplicationManagementClient10 { IFabricApplicationManagementClient8, IFabricApplicationManagementClient9 ); -impl ::core::clone::Clone for IFabricApplicationManagementClient10 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationManagementClient10 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -1572,12 +1521,17 @@ impl ::core::fmt::Debug for IFabricApplicationManagementClient10 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient10 { +unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient10 { type Vtable = IFabricApplicationManagementClient10_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient10 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x67001225_d106_41ae_8bd4_5a0a119c5c01); +impl ::core::clone::Clone for IFabricApplicationManagementClient10 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient10 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x67001225_d106_41ae_8bd4_5a0a119c5c01); } #[repr(C)] #[doc(hidden)] @@ -1589,367 +1543,343 @@ pub struct IFabricApplicationManagementClient10_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndProvisionApplicationType3: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationManagementClient2(::windows::core::IUnknown); +pub struct IFabricApplicationManagementClient2(::windows_core::IUnknown); impl IFabricApplicationManagementClient2 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( + pub unsafe fn BeginProvisionApplicationType( &self, applicationbuildpath: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateApplication<'a, P0>( + pub unsafe fn BeginCreateApplication( &self, description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeApplication<'a, P0>( + pub unsafe fn BeginUpgradeApplication( &self, upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetApplicationUpgradeProgress( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn EndGetApplicationUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication<'a, P0>( + pub unsafe fn BeginDeleteApplication( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionApplicationType( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( + pub unsafe fn EndUnprovisionApplicationType( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( + pub unsafe fn BeginGetApplicationManifest( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationManifest<'a, P0>( + pub unsafe fn EndGetApplicationManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( &self, applicationname: *const u16, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndMoveNextApplicationUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationManagementClient2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricApplicationManagementClient ); -impl ::core::clone::Clone for IFabricApplicationManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationManagementClient2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -1963,12 +1893,17 @@ impl ::core::fmt::Debug for IFabricApplicationManagementClient2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient2 { +unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient2 { type Vtable = IFabricApplicationManagementClient2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf873516f_9bfe_47e5_93b9_3667aaf19324); +impl ::core::clone::Clone for IFabricApplicationManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf873516f_9bfe_47e5_93b9_3667aaf19324); } #[repr(C)] #[doc(hidden)] @@ -1976,513 +1911,482 @@ pub struct IFabricApplicationManagementClient2_Vtbl { pub base__: IFabricApplicationManagementClient_Vtbl, pub BeginGetApplicationManifest: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, + 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, + ) -> ::windows_core::HRESULT, pub EndGetApplicationManifest: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginMoveNextApplicationUpgradeDomain2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, applicationname: *const u16, - nextupgradedomain: ::windows::core::PCWSTR, + nextupgradedomain: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndMoveNextApplicationUpgradeDomain2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationManagementClient3(::windows::core::IUnknown); +pub struct IFabricApplicationManagementClient3(::windows_core::IUnknown); impl IFabricApplicationManagementClient3 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( + pub unsafe fn BeginProvisionApplicationType( &self, applicationbuildpath: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateApplication<'a, P0>( + pub unsafe fn BeginCreateApplication( &self, description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeApplication<'a, P0>( + pub unsafe fn BeginUpgradeApplication( &self, upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetApplicationUpgradeProgress( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn EndGetApplicationUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication<'a, P0>( + pub unsafe fn BeginDeleteApplication( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionApplicationType( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( + pub unsafe fn EndUnprovisionApplicationType( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( + pub unsafe fn BeginGetApplicationManifest( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationManifest<'a, P0>( + pub unsafe fn EndGetApplicationManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( &self, applicationname: *const u16, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( + pub unsafe fn BeginUpdateApplicationUpgrade( &self, description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplicationUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUpdateApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( + pub unsafe fn BeginRestartDeployedCodePackage( &self, restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( + pub unsafe fn EndRestartDeployedCodePackage( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( + pub unsafe fn CopyApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepath: P1, applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), + (::windows_core::Interface::vtable(self).CopyApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( + pub unsafe fn RemoveApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), + (::windows_core::Interface::vtable(self).RemoveApplicationPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationManagementClient3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricApplicationManagementClient, IFabricApplicationManagementClient2 ); -impl ::core::clone::Clone for IFabricApplicationManagementClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationManagementClient3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -2496,516 +2400,495 @@ impl ::core::fmt::Debug for IFabricApplicationManagementClient3 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient3 { +unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient3 { type Vtable = IFabricApplicationManagementClient3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x108c7735_97e1_4af8_8c2d_9080b1b29d33); +impl ::core::clone::Clone for IFabricApplicationManagementClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x108c7735_97e1_4af8_8c2d_9080b1b29d33); } #[repr(C)] #[doc(hidden)] -pub struct IFabricApplicationManagementClient3_Vtbl where { pub base__ : IFabricApplicationManagementClient2_Vtbl , pub BeginUpdateApplicationUpgrade :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndUpdateApplicationUpgrade :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginRestartDeployedCodePackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndRestartDeployedCodePackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub CopyApplicationPackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , imagestoreconnectionstring : :: windows::core::PCWSTR , applicationpackagepath : :: windows::core::PCWSTR , applicationpackagepathinimagestore : :: windows::core::PCWSTR , ) -> :: windows::core::HRESULT , pub RemoveApplicationPackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , imagestoreconnectionstring : :: windows::core::PCWSTR , applicationpackagepathinimagestore : :: windows::core::PCWSTR , ) -> :: windows::core::HRESULT , } +pub struct IFabricApplicationManagementClient3_Vtbl where { pub base__ : IFabricApplicationManagementClient2_Vtbl , pub BeginUpdateApplicationUpgrade :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , description : *const super::super:: FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndUpdateApplicationUpgrade :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginRestartDeployedCodePackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndRestartDeployedCodePackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub CopyApplicationPackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , imagestoreconnectionstring : ::windows_core::PCWSTR , applicationpackagepath : ::windows_core::PCWSTR , applicationpackagepathinimagestore : ::windows_core::PCWSTR , ) -> ::windows_core::HRESULT , pub RemoveApplicationPackage :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , imagestoreconnectionstring : ::windows_core::PCWSTR , applicationpackagepathinimagestore : ::windows_core::PCWSTR , ) -> ::windows_core::HRESULT , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationManagementClient4(::windows::core::IUnknown); +pub struct IFabricApplicationManagementClient4(::windows_core::IUnknown); impl IFabricApplicationManagementClient4 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( + pub unsafe fn BeginProvisionApplicationType( &self, applicationbuildpath: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateApplication<'a, P0>( + pub unsafe fn BeginCreateApplication( &self, description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeApplication<'a, P0>( + pub unsafe fn BeginUpgradeApplication( &self, upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetApplicationUpgradeProgress( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn EndGetApplicationUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication<'a, P0>( + pub unsafe fn BeginDeleteApplication( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionApplicationType( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( + pub unsafe fn EndUnprovisionApplicationType( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( + pub unsafe fn BeginGetApplicationManifest( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationManifest<'a, P0>( + pub unsafe fn EndGetApplicationManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( &self, applicationname: *const u16, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( + pub unsafe fn BeginUpdateApplicationUpgrade( &self, description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplicationUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( + pub unsafe fn BeginRestartDeployedCodePackage( &self, restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( + pub unsafe fn EndRestartDeployedCodePackage( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( + pub unsafe fn CopyApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepath: P1, applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( + pub unsafe fn RemoveApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( + pub unsafe fn BeginDeployServicePackageToNode( &self, applicationtypename: P0, applicationtypeversion: P1, @@ -3014,56 +2897,49 @@ impl IFabricApplicationManagementClient4 { nodename: P3, timeoutmilliseconds: u32, callback: P4, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( + pub unsafe fn EndDeployServicePackageToNode( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndDeployServicePackageToNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationManagementClient4, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricApplicationManagementClient, IFabricApplicationManagementClient2, IFabricApplicationManagementClient3 ); -impl ::core::clone::Clone for IFabricApplicationManagementClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationManagementClient4 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -3077,12 +2953,17 @@ impl ::core::fmt::Debug for IFabricApplicationManagementClient4 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient4 { +unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient4 { type Vtable = IFabricApplicationManagementClient4_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x82c41b22_dbcb_4f7a_8d2f_f9bb94add446); +impl ::core::clone::Clone for IFabricApplicationManagementClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x82c41b22_dbcb_4f7a_8d2f_f9bb94add446); } #[repr(C)] #[doc(hidden)] @@ -3090,544 +2971,518 @@ pub struct IFabricApplicationManagementClient4_Vtbl { pub base__: IFabricApplicationManagementClient3_Vtbl, pub BeginDeployServicePackageToNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, - servicemanifestname: ::windows::core::PCWSTR, + applicationtypename: ::windows_core::PCWSTR, + applicationtypeversion: ::windows_core::PCWSTR, + servicemanifestname: ::windows_core::PCWSTR, sharingpolicy: *const super::super::FABRIC_PACKAGE_SHARING_POLICY_LIST, - nodename: ::windows::core::PCWSTR, + nodename: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndDeployServicePackageToNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationManagementClient5(::windows::core::IUnknown); +pub struct IFabricApplicationManagementClient5(::windows_core::IUnknown); impl IFabricApplicationManagementClient5 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( + pub unsafe fn BeginProvisionApplicationType( &self, applicationbuildpath: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateApplication<'a, P0>( + pub unsafe fn BeginCreateApplication( &self, description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeApplication<'a, P0>( + pub unsafe fn BeginUpgradeApplication( &self, upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetApplicationUpgradeProgress( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn EndGetApplicationUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication<'a, P0>( + pub unsafe fn BeginDeleteApplication( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionApplicationType( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( + pub unsafe fn EndUnprovisionApplicationType( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( + pub unsafe fn BeginGetApplicationManifest( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationManifest<'a, P0>( + pub unsafe fn EndGetApplicationManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( &self, applicationname: *const u16, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( + pub unsafe fn BeginUpdateApplicationUpgrade( &self, description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplicationUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( + pub unsafe fn BeginRestartDeployedCodePackage( &self, restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( + pub unsafe fn EndRestartDeployedCodePackage( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( + pub unsafe fn CopyApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepath: P1, applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( + pub unsafe fn RemoveApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( + pub unsafe fn BeginDeployServicePackageToNode( &self, applicationtypename: P0, applicationtypeversion: P1, @@ -3636,95 +3491,86 @@ impl IFabricApplicationManagementClient5 { nodename: P3, timeoutmilliseconds: u32, callback: P4, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( + pub unsafe fn EndDeployServicePackageToNode( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackApplicationUpgrade<'a, P0>( + pub unsafe fn BeginRollbackApplicationUpgrade( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackApplicationUpgrade<'a, P0>( + pub unsafe fn EndRollbackApplicationUpgrade( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRollbackApplicationUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationManagementClient5, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricApplicationManagementClient, IFabricApplicationManagementClient2, IFabricApplicationManagementClient3, IFabricApplicationManagementClient4 ); -impl ::core::clone::Clone for IFabricApplicationManagementClient5 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationManagementClient5 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -3738,12 +3584,17 @@ impl ::core::fmt::Debug for IFabricApplicationManagementClient5 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient5 { +unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient5 { type Vtable = IFabricApplicationManagementClient5_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient5 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xd7490e43_2217_4158_93e1_9ce4dd6f724a); +impl ::core::clone::Clone for IFabricApplicationManagementClient5 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient5 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xd7490e43_2217_4158_93e1_9ce4dd6f724a); } #[repr(C)] #[doc(hidden)] @@ -3755,560 +3606,534 @@ pub struct IFabricApplicationManagementClient5_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRollbackApplicationUpgrade: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationManagementClient6(::windows::core::IUnknown); +pub struct IFabricApplicationManagementClient6(::windows_core::IUnknown); impl IFabricApplicationManagementClient6 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( + pub unsafe fn BeginProvisionApplicationType( &self, applicationbuildpath: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateApplication<'a, P0>( + pub unsafe fn BeginCreateApplication( &self, description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeApplication<'a, P0>( + pub unsafe fn BeginUpgradeApplication( &self, upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetApplicationUpgradeProgress( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn EndGetApplicationUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication<'a, P0>( + pub unsafe fn BeginDeleteApplication( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionApplicationType( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( + pub unsafe fn EndUnprovisionApplicationType( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( + pub unsafe fn BeginGetApplicationManifest( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationManifest<'a, P0>( + pub unsafe fn EndGetApplicationManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( &self, applicationname: *const u16, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( + pub unsafe fn BeginUpdateApplicationUpgrade( &self, description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplicationUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( + pub unsafe fn BeginRestartDeployedCodePackage( &self, restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( + pub unsafe fn EndRestartDeployedCodePackage( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( + pub unsafe fn CopyApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepath: P1, applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( + pub unsafe fn RemoveApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( + pub unsafe fn BeginDeployServicePackageToNode( &self, applicationtypename: P0, applicationtypeversion: P1, @@ -4317,133 +4142,124 @@ impl IFabricApplicationManagementClient6 { nodename: P3, timeoutmilliseconds: u32, callback: P4, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( + pub unsafe fn EndDeployServicePackageToNode( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackApplicationUpgrade<'a, P0>( + pub unsafe fn BeginRollbackApplicationUpgrade( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackApplicationUpgrade<'a, P0>( + pub unsafe fn EndRollbackApplicationUpgrade( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplication<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginUpdateApplication( &self, applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationupdatedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateApplication)( + ::windows_core::Interface::as_raw(self), + applicationupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUpdateApplication)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUpdateApplication)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationManagementClient6, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricApplicationManagementClient, IFabricApplicationManagementClient2, IFabricApplicationManagementClient3, IFabricApplicationManagementClient4, IFabricApplicationManagementClient5 ); -impl ::core::clone::Clone for IFabricApplicationManagementClient6 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationManagementClient6 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4457,46 +4273,53 @@ impl ::core::fmt::Debug for IFabricApplicationManagementClient6 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient6 { +unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient6 { type Vtable = IFabricApplicationManagementClient6_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient6 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb01e63ee_1ea4_4181_95c7_983b32e16848); +impl ::core::clone::Clone for IFabricApplicationManagementClient6 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient6 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb01e63ee_1ea4_4181_95c7_983b32e16848); } #[repr(C)] #[doc(hidden)] pub struct IFabricApplicationManagementClient6_Vtbl { pub base__: IFabricApplicationManagementClient5_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginUpdateApplication: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginUpdateApplication: usize, pub EndUpdateApplication: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationManagementClient7(::windows::core::IUnknown); +pub struct IFabricApplicationManagementClient7(::windows_core::IUnknown); impl IFabricApplicationManagementClient7 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( + pub unsafe fn BeginProvisionApplicationType( &self, applicationbuildpath: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4504,22 +4327,19 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4527,24 +4347,22 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateApplication<'a, P0>( + pub unsafe fn BeginCreateApplication( &self, description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4552,19 +4370,19 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4572,23 +4390,22 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeApplication<'a, P0>( + pub unsafe fn BeginUpgradeApplication( &self, upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4596,19 +4413,19 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4616,23 +4433,22 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetApplicationUpgradeProgress( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4640,23 +4456,23 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn EndGetApplicationUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4664,28 +4480,24 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4693,22 +4505,22 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4716,24 +4528,22 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication<'a, P0>( + pub unsafe fn BeginDeleteApplication( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4741,19 +4551,19 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4761,26 +4571,25 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionApplicationType( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4788,23 +4597,23 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( + pub unsafe fn EndUnprovisionApplicationType( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -4812,246 +4621,235 @@ impl IFabricApplicationManagementClient7 { .base__ .base__ .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( + pub unsafe fn BeginGetApplicationManifest( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationManifest<'a, P0>( + pub unsafe fn EndGetApplicationManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( &self, applicationname: *const u16, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( + pub unsafe fn BeginUpdateApplicationUpgrade( &self, description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplicationUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( + pub unsafe fn BeginRestartDeployedCodePackage( &self, restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( + pub unsafe fn EndRestartDeployedCodePackage( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( + pub unsafe fn CopyApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepath: P1, applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( + pub unsafe fn RemoveApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( + pub unsafe fn BeginDeployServicePackageToNode( &self, applicationtypename: P0, applicationtypeversion: P1, @@ -5060,160 +4858,157 @@ impl IFabricApplicationManagementClient7 { nodename: P3, timeoutmilliseconds: u32, callback: P4, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( + pub unsafe fn EndDeployServicePackageToNode( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackApplicationUpgrade<'a, P0>( + pub unsafe fn BeginRollbackApplicationUpgrade( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackApplicationUpgrade<'a, P0>( + pub unsafe fn EndRollbackApplicationUpgrade( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplication<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginUpdateApplication( &self, applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUpdateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationupdatedescription), + ::windows_core::Interface::as_raw(self), + applicationupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndUpdateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginDeleteApplication2( &self, deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteApplication2)( + ::windows_core::Interface::as_raw(self), + deletedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication2<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication2(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndDeleteApplication2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationManagementClient7, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricApplicationManagementClient, IFabricApplicationManagementClient2, IFabricApplicationManagementClient3, @@ -5221,11 +5016,6 @@ impl IFabricApplicationManagementClient7 { IFabricApplicationManagementClient5, IFabricApplicationManagementClient6 ); -impl ::core::clone::Clone for IFabricApplicationManagementClient7 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationManagementClient7 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -5239,46 +5029,53 @@ impl ::core::fmt::Debug for IFabricApplicationManagementClient7 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient7 { +unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient7 { type Vtable = IFabricApplicationManagementClient7_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient7 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x26844276_25b1_4f8c_adbe_b1b3a3083c17); +impl ::core::clone::Clone for IFabricApplicationManagementClient7 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient7 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x26844276_25b1_4f8c_adbe_b1b3a3083c17); } #[repr(C)] #[doc(hidden)] pub struct IFabricApplicationManagementClient7_Vtbl { pub base__: IFabricApplicationManagementClient6_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginDeleteApplication2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginDeleteApplication2: usize, pub EndDeleteApplication2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationManagementClient8(::windows::core::IUnknown); +pub struct IFabricApplicationManagementClient8(::windows_core::IUnknown); impl IFabricApplicationManagementClient8 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( + pub unsafe fn BeginProvisionApplicationType( &self, applicationbuildpath: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5287,22 +5084,19 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5311,24 +5105,22 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateApplication<'a, P0>( + pub unsafe fn BeginCreateApplication( &self, description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5337,19 +5129,19 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5358,23 +5150,22 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeApplication<'a, P0>( + pub unsafe fn BeginUpgradeApplication( &self, upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5383,19 +5174,19 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5404,23 +5195,22 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetApplicationUpgradeProgress( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5429,23 +5219,23 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn EndGetApplicationUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5454,28 +5244,24 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5484,22 +5270,22 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5508,24 +5294,22 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication<'a, P0>( + pub unsafe fn BeginDeleteApplication( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5534,19 +5318,19 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5555,26 +5339,25 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionApplicationType( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5583,23 +5366,23 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( + pub unsafe fn EndUnprovisionApplicationType( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5608,27 +5391,25 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( + pub unsafe fn BeginGetApplicationManifest( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5636,24 +5417,24 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationManifest<'a, P0>( + pub unsafe fn EndGetApplicationManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5661,27 +5442,25 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( &self, applicationname: *const u16, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5689,23 +5468,23 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -5713,151 +5492,144 @@ impl IFabricApplicationManagementClient8 { .base__ .base__ .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( + pub unsafe fn BeginUpdateApplicationUpgrade( &self, description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplicationUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( + pub unsafe fn BeginRestartDeployedCodePackage( &self, restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( + pub unsafe fn EndRestartDeployedCodePackage( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( + pub unsafe fn CopyApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepath: P1, applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( + pub unsafe fn RemoveApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( + pub unsafe fn BeginDeployServicePackageToNode( &self, applicationtypename: P0, applicationtypeversion: P1, @@ -5866,203 +5638,198 @@ impl IFabricApplicationManagementClient8 { nodename: P3, timeoutmilliseconds: u32, callback: P4, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( + pub unsafe fn EndDeployServicePackageToNode( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackApplicationUpgrade<'a, P0>( + pub unsafe fn BeginRollbackApplicationUpgrade( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackApplicationUpgrade<'a, P0>( + pub unsafe fn EndRollbackApplicationUpgrade( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplication<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginUpdateApplication( &self, applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginUpdateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationupdatedescription), + ::windows_core::Interface::as_raw(self), + applicationupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndUpdateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginDeleteApplication2( &self, deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), + ::windows_core::Interface::as_raw(self), + deletedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication2<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication2(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginProvisionApplicationType2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginProvisionApplicationType2( &self, description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProvisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProvisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType2(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndProvisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndProvisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationManagementClient8, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricApplicationManagementClient, IFabricApplicationManagementClient2, IFabricApplicationManagementClient3, @@ -6071,11 +5838,6 @@ impl IFabricApplicationManagementClient8 { IFabricApplicationManagementClient6, IFabricApplicationManagementClient7 ); -impl ::core::clone::Clone for IFabricApplicationManagementClient8 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationManagementClient8 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -6089,46 +5851,53 @@ impl ::core::fmt::Debug for IFabricApplicationManagementClient8 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient8 { +unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient8 { type Vtable = IFabricApplicationManagementClient8_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient8 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x97b38e85_7329_47ff_a8d2_b7cbf1603689); +impl ::core::clone::Clone for IFabricApplicationManagementClient8 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient8 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x97b38e85_7329_47ff_a8d2_b7cbf1603689); } #[repr(C)] #[doc(hidden)] pub struct IFabricApplicationManagementClient8_Vtbl { pub base__: IFabricApplicationManagementClient7_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginProvisionApplicationType2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginProvisionApplicationType2: usize, pub EndProvisionApplicationType2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationManagementClient9(::windows::core::IUnknown); +pub struct IFabricApplicationManagementClient9(::windows_core::IUnknown); impl IFabricApplicationManagementClient9 { - pub unsafe fn BeginProvisionApplicationType<'a, P0, P1>( + pub unsafe fn BeginProvisionApplicationType( &self, applicationbuildpath: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6138,22 +5907,19 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .BeginProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationbuildpath.into(), + ::windows_core::Interface::as_raw(self), + applicationbuildpath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6163,24 +5929,22 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .EndProvisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateApplication<'a, P0>( + pub unsafe fn BeginCreateApplication( &self, description: *const super::super::FABRIC_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6190,19 +5954,19 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .BeginCreateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6212,23 +5976,22 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .EndCreateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeApplication<'a, P0>( + pub unsafe fn BeginUpgradeApplication( &self, upgradedescription: *const super::super::FABRIC_APPLICATION_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6238,19 +6001,19 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .BeginUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6260,23 +6023,22 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .EndUpgradeApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetApplicationUpgradeProgress( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6286,23 +6048,23 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .BeginGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationUpgradeProgress<'a, P0>( + pub unsafe fn EndGetApplicationUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6312,28 +6074,24 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .EndGetApplicationUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult2>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6343,22 +6101,22 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .BeginMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6368,24 +6126,22 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .EndMoveNextApplicationUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication<'a, P0>( + pub unsafe fn BeginDeleteApplication( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6395,19 +6151,19 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .BeginDeleteApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6417,26 +6173,25 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .EndDeleteApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionApplicationType<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionApplicationType( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6446,23 +6201,23 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .BeginUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionApplicationType<'a, P0>( + pub unsafe fn EndUnprovisionApplicationType( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6472,27 +6227,25 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .EndUnprovisionApplicationType)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetApplicationManifest<'a, P0, P1, P2>( + pub unsafe fn BeginGetApplicationManifest( &self, applicationtypename: P0, applicationtypeversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6501,24 +6254,24 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .BeginGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationManifest<'a, P0>( + pub unsafe fn EndGetApplicationManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6527,27 +6280,25 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .EndGetApplicationManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextApplicationUpgradeDomain2( &self, applicationname: *const u16, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6556,23 +6307,23 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .BeginMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextApplicationUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextApplicationUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6581,24 +6332,22 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .EndMoveNextApplicationUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplicationUpgrade<'a, P0>( + pub unsafe fn BeginUpdateApplicationUpgrade( &self, description: *const super::super::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6606,22 +6355,19 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .BeginUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplicationUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplicationUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6629,24 +6375,22 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .EndUpdateApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( + pub unsafe fn BeginRestartDeployedCodePackage( &self, restartcodepackagedescription : *const super::super:: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6654,22 +6398,22 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartcodepackagedescription), + ::windows_core::Interface::as_raw(self), + restartcodepackagedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( + pub unsafe fn EndRestartDeployedCodePackage( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6677,23 +6421,23 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn CopyApplicationPackage<'a, P0, P1, P2>( + pub unsafe fn CopyApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepath: P1, applicationpackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6701,23 +6445,23 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .CopyApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepath.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepath.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveApplicationPackage<'a, P0, P1>( + pub unsafe fn RemoveApplicationPackage( &self, imagestoreconnectionstring: P0, applicationpackagepathinimagestore: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -6725,13 +6469,13 @@ impl IFabricApplicationManagementClient9 { .base__ .base__ .RemoveApplicationPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - applicationpackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + applicationpackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeployServicePackageToNode<'a, P0, P1, P2, P3, P4>( + pub unsafe fn BeginDeployServicePackageToNode( &self, applicationtypename: P0, applicationtypeversion: P1, @@ -6740,249 +6484,244 @@ impl IFabricApplicationManagementClient9 { nodename: P3, timeoutmilliseconds: u32, callback: P4, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), - ::core::mem::transmute(sharingpolicy), - nodename.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), + sharingpolicy, + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeployServicePackageToNode<'a, P0>( + pub unsafe fn EndDeployServicePackageToNode( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndDeployServicePackageToNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackApplicationUpgrade<'a, P0>( + pub unsafe fn BeginRollbackApplicationUpgrade( &self, applicationname: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), + ::windows_core::Interface::as_raw(self), + applicationname, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackApplicationUpgrade<'a, P0>( + pub unsafe fn EndRollbackApplicationUpgrade( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndRollbackApplicationUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateApplication<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginUpdateApplication( &self, applicationupdatedescription: *const super::super::FABRIC_APPLICATION_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginUpdateApplication)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationupdatedescription), + ::windows_core::Interface::as_raw(self), + applicationupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateApplication<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateApplication(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndUpdateApplication)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteApplication2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginDeleteApplication2( &self, deletedescription: *const super::super::FABRIC_DELETE_APPLICATION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), + ::windows_core::Interface::as_raw(self), + deletedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteApplication2<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteApplication2(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndDeleteApplication2)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginProvisionApplicationType2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginProvisionApplicationType2( &self, description: *const super::super::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginProvisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionApplicationType2<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionApplicationType2(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndProvisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionApplicationType2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginUnprovisionApplicationType2( &self, description: *const super::super::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUnprovisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUnprovisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionApplicationType2<'a, P0>( + pub unsafe fn EndUnprovisionApplicationType2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUnprovisionApplicationType2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUnprovisionApplicationType2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationManagementClient9, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricApplicationManagementClient, IFabricApplicationManagementClient2, IFabricApplicationManagementClient3, @@ -6992,11 +6731,6 @@ impl IFabricApplicationManagementClient9 { IFabricApplicationManagementClient7, IFabricApplicationManagementClient8 ); -impl ::core::clone::Clone for IFabricApplicationManagementClient9 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationManagementClient9 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7010,94 +6744,95 @@ impl ::core::fmt::Debug for IFabricApplicationManagementClient9 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationManagementClient9 { +unsafe impl ::windows_core::Interface for IFabricApplicationManagementClient9 { type Vtable = IFabricApplicationManagementClient9_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationManagementClient9 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x26617b63_1350_4d7f_830c_2200978d31bb); +impl ::core::clone::Clone for IFabricApplicationManagementClient9 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationManagementClient9 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x26617b63_1350_4d7f_830c_2200978d31bb); } #[repr(C)] #[doc(hidden)] pub struct IFabricApplicationManagementClient9_Vtbl { pub base__: IFabricApplicationManagementClient8_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginUnprovisionApplicationType2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, description: *const super::super::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginUnprovisionApplicationType2: usize, pub EndUnprovisionApplicationType2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationUpgradeProgressResult(::windows::core::IUnknown); +pub struct IFabricApplicationUpgradeProgressResult(::windows_core::IUnknown); impl IFabricApplicationUpgradeProgressResult { pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self).get_ApplicationName)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ApplicationName)( + ::windows_core::Interface::as_raw(self), ) } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_ApplicationTypeName)( - ::windows::core::Vtable::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::PWSTR { - (::windows::core::Vtable::vtable(self).get_TargetApplicationTypeVersion)( - ::windows::core::Vtable::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::super::FABRIC_APPLICATION_UPGRADE_STATE { - (::windows::core::Vtable::vtable(self).get_UpgradeState)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_UpgradeState)( + ::windows_core::Interface::as_raw(self), + ) } pub unsafe fn GetUpgradeDomains( &self, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, ) .ok() } - pub unsafe fn GetChangedUpgradeDomains<'a, P0>( + pub unsafe fn GetChangedUpgradeDomains( &self, previousprogress: P0, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult>, - >, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).GetChangedUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - previousprogress.into().abi(), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + (::windows_core::Interface::vtable(self).GetChangedUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + previousprogress.into_param().abi(), + itemcount, + buffereditems, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationUpgradeProgressResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricApplicationUpgradeProgressResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationUpgradeProgressResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7111,22 +6846,27 @@ impl ::core::fmt::Debug for IFabricApplicationUpgradeProgressResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationUpgradeProgressResult { +unsafe impl ::windows_core::Interface for IFabricApplicationUpgradeProgressResult { type Vtable = IFabricApplicationUpgradeProgressResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationUpgradeProgressResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x1e4670f8_ede5_48ab_881f_c45a0f38413a); +impl ::core::clone::Clone for IFabricApplicationUpgradeProgressResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationUpgradeProgressResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x1e4670f8_ede5_48ab_881f_c45a0f38413a); } #[repr(C)] #[doc(hidden)] pub struct IFabricApplicationUpgradeProgressResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ApplicationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut u16, pub get_ApplicationTypeName: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub get_TargetApplicationTypeVersion: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub get_UpgradeState: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, @@ -7135,93 +6875,87 @@ pub struct IFabricApplicationUpgradeProgressResult_Vtbl { this: *mut ::core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetChangedUpgradeDomains: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, previousprogress: *mut ::core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationUpgradeProgressResult2(::windows::core::IUnknown); +pub struct IFabricApplicationUpgradeProgressResult2(::windows_core::IUnknown); impl IFabricApplicationUpgradeProgressResult2 { pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_ApplicationName)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_ApplicationTypeName)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationTypeName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_TargetApplicationTypeVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_TargetApplicationTypeVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_TargetApplicationTypeVersion)(::windows::core::Vtable::as_raw(self)) + .get_TargetApplicationTypeVersion)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_UpgradeState)(::windows::core::Vtable::as_raw(self)) + .get_UpgradeState)(::windows_core::Interface::as_raw(self)) } pub unsafe fn GetUpgradeDomains( &self, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .GetUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, ) .ok() } - pub unsafe fn GetChangedUpgradeDomains<'a, P0>( + pub unsafe fn GetChangedUpgradeDomains( &self, previousprogress: P0, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult>, - >, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .GetChangedUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - previousprogress.into().abi(), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + ::windows_core::Interface::as_raw(self), + previousprogress.into_param().abi(), + itemcount, + buffereditems, ) .ok() } pub unsafe fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { - (::windows::core::Vtable::vtable(self).get_RollingUpgradeMode)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_RollingUpgradeMode)( + ::windows_core::Interface::as_raw(self), ) } - pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_NextUpgradeDomain)( - ::windows::core::Vtable::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), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationUpgradeProgressResult2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricApplicationUpgradeProgressResult ); -impl ::core::clone::Clone for IFabricApplicationUpgradeProgressResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationUpgradeProgressResult2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7235,12 +6969,17 @@ impl ::core::fmt::Debug for IFabricApplicationUpgradeProgressResult2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationUpgradeProgressResult2 { +unsafe impl ::windows_core::Interface for IFabricApplicationUpgradeProgressResult2 { type Vtable = IFabricApplicationUpgradeProgressResult2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationUpgradeProgressResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x62707ee5_b625_4489_aa4d_2e54b06ea248); +impl ::core::clone::Clone for IFabricApplicationUpgradeProgressResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationUpgradeProgressResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x62707ee5_b625_4489_aa4d_2e54b06ea248); } #[repr(C)] #[doc(hidden)] @@ -7251,101 +6990,95 @@ pub struct IFabricApplicationUpgradeProgressResult2_Vtbl { this: *mut ::core::ffi::c_void, ) -> super::super::FABRIC_ROLLING_UPGRADE_MODE, pub get_NextUpgradeDomain: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricApplicationUpgradeProgressResult3(::windows::core::IUnknown); +pub struct IFabricApplicationUpgradeProgressResult3(::windows_core::IUnknown); impl IFabricApplicationUpgradeProgressResult3 { pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_ApplicationName)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_ApplicationTypeName)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationTypeName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_TargetApplicationTypeVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_TargetApplicationTypeVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_TargetApplicationTypeVersion)(::windows::core::Vtable::as_raw(self)) + .get_TargetApplicationTypeVersion)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_APPLICATION_UPGRADE_STATE { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_UpgradeState)(::windows::core::Vtable::as_raw(self)) + .get_UpgradeState)(::windows_core::Interface::as_raw(self)) } pub unsafe fn GetUpgradeDomains( &self, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .GetUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, ) .ok() } - pub unsafe fn GetChangedUpgradeDomains<'a, P0>( + pub unsafe fn GetChangedUpgradeDomains( &self, previousprogress: P0, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricApplicationUpgradeProgressResult>, - >, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .GetChangedUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - previousprogress.into().abi(), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + ::windows_core::Interface::as_raw(self), + previousprogress.into_param().abi(), + itemcount, + buffereditems, ) .ok() } pub unsafe fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_RollingUpgradeMode)(::windows::core::Vtable::as_raw(self)) + .get_RollingUpgradeMode)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_NextUpgradeDomain)(::windows::core::Vtable::as_raw(self)) + .get_NextUpgradeDomain)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_UpgradeProgress( &self, ) -> *mut super::super::FABRIC_APPLICATION_UPGRADE_PROGRESS { - (::windows::core::Vtable::vtable(self).get_UpgradeProgress)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_UpgradeProgress)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricApplicationUpgradeProgressResult3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricApplicationUpgradeProgressResult, IFabricApplicationUpgradeProgressResult2 ); -impl ::core::clone::Clone for IFabricApplicationUpgradeProgressResult3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricApplicationUpgradeProgressResult3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7359,12 +7092,17 @@ impl ::core::fmt::Debug for IFabricApplicationUpgradeProgressResult3 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricApplicationUpgradeProgressResult3 { +unsafe impl ::windows_core::Interface for IFabricApplicationUpgradeProgressResult3 { type Vtable = IFabricApplicationUpgradeProgressResult3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricApplicationUpgradeProgressResult3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x1bc1d9c3_eef5_41fe_b8a2_abb97a8ba8e2); +impl ::core::clone::Clone for IFabricApplicationUpgradeProgressResult3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricApplicationUpgradeProgressResult3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x1bc1d9c3_eef5_41fe_b8a2_abb97a8ba8e2); } #[repr(C)] #[doc(hidden)] @@ -7376,21 +7114,19 @@ pub struct IFabricApplicationUpgradeProgressResult3_Vtbl { ) -> *mut super::super::FABRIC_APPLICATION_UPGRADE_PROGRESS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricChaosDescriptionResult(::windows::core::IUnknown); +pub struct IFabricChaosDescriptionResult(::windows_core::IUnknown); impl IFabricChaosDescriptionResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ChaosDescriptionResult(&self) -> *mut super::super::FABRIC_CHAOS_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_ChaosDescriptionResult)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ChaosDescriptionResult)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricChaosDescriptionResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricChaosDescriptionResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricChaosDescriptionResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricChaosDescriptionResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7404,39 +7140,46 @@ impl ::core::fmt::Debug for IFabricChaosDescriptionResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricChaosDescriptionResult { +unsafe impl ::windows_core::Interface for IFabricChaosDescriptionResult { type Vtable = IFabricChaosDescriptionResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricChaosDescriptionResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfa8aa86e_f0fa_4a14_bed7_1dcfa0980b5b); +impl ::core::clone::Clone for IFabricChaosDescriptionResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricChaosDescriptionResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfa8aa86e_f0fa_4a14_bed7_1dcfa0980b5b); } #[repr(C)] #[doc(hidden)] pub struct IFabricChaosDescriptionResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_ChaosDescriptionResult: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_CHAOS_DESCRIPTION, + #[cfg(not(feature = "Win32_Foundation"))] + get_ChaosDescriptionResult: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricChaosEventsSegmentResult(::windows::core::IUnknown); +pub struct IFabricChaosEventsSegmentResult(::windows_core::IUnknown); impl IFabricChaosEventsSegmentResult { pub unsafe fn get_ChaosEventsSegmentResult( &self, ) -> *mut super::super::FABRIC_CHAOS_EVENTS_SEGMENT { - (::windows::core::Vtable::vtable(self).get_ChaosEventsSegmentResult)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ChaosEventsSegmentResult)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricChaosEventsSegmentResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricChaosEventsSegmentResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricChaosEventsSegmentResult, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricChaosEventsSegmentResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7450,37 +7193,40 @@ impl ::core::fmt::Debug for IFabricChaosEventsSegmentResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricChaosEventsSegmentResult { +unsafe impl ::windows_core::Interface for IFabricChaosEventsSegmentResult { type Vtable = IFabricChaosEventsSegmentResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricChaosEventsSegmentResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xde148299_c48a_4540_877b_5b1daa518d76); +impl ::core::clone::Clone for IFabricChaosEventsSegmentResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricChaosEventsSegmentResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xde148299_c48a_4540_877b_5b1daa518d76); } #[repr(C)] #[doc(hidden)] pub struct IFabricChaosEventsSegmentResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ChaosEventsSegmentResult: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_CHAOS_EVENTS_SEGMENT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricChaosReportResult(::windows::core::IUnknown); +pub struct IFabricChaosReportResult(::windows_core::IUnknown); impl IFabricChaosReportResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ChaosReportResult(&self) -> *mut super::super::FABRIC_CHAOS_REPORT { - (::windows::core::Vtable::vtable(self).get_ChaosReportResult)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ChaosReportResult)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricChaosReportResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricChaosReportResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricChaosReportResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricChaosReportResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7494,42 +7240,48 @@ impl ::core::fmt::Debug for IFabricChaosReportResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricChaosReportResult { +unsafe impl ::windows_core::Interface for IFabricChaosReportResult { type Vtable = IFabricChaosReportResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricChaosReportResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x8952e931_b2b3_470a_b982_6b415f30dbc0); +impl ::core::clone::Clone for IFabricChaosReportResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricChaosReportResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x8952e931_b2b3_470a_b982_6b415f30dbc0); } #[repr(C)] #[doc(hidden)] pub struct IFabricChaosReportResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_ChaosReportResult: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_CHAOS_REPORT, + #[cfg(not(feature = "Win32_Foundation"))] + get_ChaosReportResult: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricChaosScheduleDescriptionResult(::windows::core::IUnknown); +pub struct IFabricChaosScheduleDescriptionResult(::windows_core::IUnknown); impl IFabricChaosScheduleDescriptionResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ChaosScheduleDescriptionResult( &self, ) -> *mut super::super::FABRIC_CHAOS_SCHEDULE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_ChaosScheduleDescriptionResult)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ChaosScheduleDescriptionResult)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricChaosScheduleDescriptionResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricChaosScheduleDescriptionResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricChaosScheduleDescriptionResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7543,61 +7295,69 @@ impl ::core::fmt::Debug for IFabricChaosScheduleDescriptionResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricChaosScheduleDescriptionResult { +unsafe impl ::windows_core::Interface for IFabricChaosScheduleDescriptionResult { type Vtable = IFabricChaosScheduleDescriptionResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricChaosScheduleDescriptionResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3b93f0d9_c0a9_4df5_9b09_b2365de89d84); +impl ::core::clone::Clone for IFabricChaosScheduleDescriptionResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricChaosScheduleDescriptionResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3b93f0d9_c0a9_4df5_9b09_b2365de89d84); } #[repr(C)] #[doc(hidden)] pub struct IFabricChaosScheduleDescriptionResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_ChaosScheduleDescriptionResult: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_CHAOS_SCHEDULE_DESCRIPTION, + #[cfg(not(feature = "Win32_Foundation"))] + get_ChaosScheduleDescriptionResult: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClientConnectionEventHandler(::windows::core::IUnknown); +pub struct IFabricClientConnectionEventHandler(::windows_core::IUnknown); impl IFabricClientConnectionEventHandler { - pub unsafe fn OnConnected<'a, P0>( + pub unsafe fn OnConnected( &self, __midl__ifabricclientconnectioneventhandler0000: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricGatewayInformationResult>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnConnected)( - ::windows::core::Vtable::as_raw(self), - __midl__ifabricclientconnectioneventhandler0000.into().abi(), + (::windows_core::Interface::vtable(self).OnConnected)( + ::windows_core::Interface::as_raw(self), + __midl__ifabricclientconnectioneventhandler0000 + .into_param() + .abi(), ) .ok() } - pub unsafe fn OnDisconnected<'a, P0>( + pub unsafe fn OnDisconnected( &self, __midl__ifabricclientconnectioneventhandler0001: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricGatewayInformationResult>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnDisconnected)( - ::windows::core::Vtable::as_raw(self), - __midl__ifabricclientconnectioneventhandler0001.into().abi(), + (::windows_core::Interface::vtable(self).OnDisconnected)( + ::windows_core::Interface::as_raw(self), + __midl__ifabricclientconnectioneventhandler0001 + .into_param() + .abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricClientConnectionEventHandler, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricClientConnectionEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricClientConnectionEventHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7611,78 +7371,85 @@ impl ::core::fmt::Debug for IFabricClientConnectionEventHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClientConnectionEventHandler { +unsafe impl ::windows_core::Interface for IFabricClientConnectionEventHandler { type Vtable = IFabricClientConnectionEventHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClientConnectionEventHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2bd21f94_d962_4bb4_84b8_5a4b3e9d4d4d); +impl ::core::clone::Clone for IFabricClientConnectionEventHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClientConnectionEventHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2bd21f94_d962_4bb4_84b8_5a4b3e9d4d4d); } #[repr(C)] #[doc(hidden)] pub struct IFabricClientConnectionEventHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub OnConnected: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, __midl__ifabricclientconnectioneventhandler0000: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub OnDisconnected: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, __midl__ifabricclientconnectioneventhandler0001: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClientConnectionEventHandler2(::windows::core::IUnknown); +pub struct IFabricClientConnectionEventHandler2(::windows_core::IUnknown); impl IFabricClientConnectionEventHandler2 { - pub unsafe fn OnConnected<'a, P0>( + pub unsafe fn OnConnected( &self, __midl__ifabricclientconnectioneventhandler0000: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricGatewayInformationResult>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.OnConnected)( - ::windows::core::Vtable::as_raw(self), - __midl__ifabricclientconnectioneventhandler0000.into().abi(), + (::windows_core::Interface::vtable(self).base__.OnConnected)( + ::windows_core::Interface::as_raw(self), + __midl__ifabricclientconnectioneventhandler0000 + .into_param() + .abi(), ) .ok() } - pub unsafe fn OnDisconnected<'a, P0>( + pub unsafe fn OnDisconnected( &self, __midl__ifabricclientconnectioneventhandler0001: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricGatewayInformationResult>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.OnDisconnected)( - ::windows::core::Vtable::as_raw(self), - __midl__ifabricclientconnectioneventhandler0001.into().abi(), + (::windows_core::Interface::vtable(self) + .base__ + .OnDisconnected)( + ::windows_core::Interface::as_raw(self), + __midl__ifabricclientconnectioneventhandler0001 + .into_param() + .abi(), ) .ok() } pub unsafe fn OnClaimsRetrieval( &self, metadata: *const super::super::FABRIC_CLAIMS_RETRIEVAL_METADATA, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).OnClaimsRetrieval)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(metadata), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).OnClaimsRetrieval)( + ::windows_core::Interface::as_raw(self), + metadata, + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricClientConnectionEventHandler2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricClientConnectionEventHandler ); -impl ::core::clone::Clone for IFabricClientConnectionEventHandler2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricClientConnectionEventHandler2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7696,12 +7463,17 @@ impl ::core::fmt::Debug for IFabricClientConnectionEventHandler2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClientConnectionEventHandler2 { +unsafe impl ::windows_core::Interface for IFabricClientConnectionEventHandler2 { type Vtable = IFabricClientConnectionEventHandler2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClientConnectionEventHandler2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6b5dbd26_7d7a_4a3f_b8ea_1f049105e897); +impl ::core::clone::Clone for IFabricClientConnectionEventHandler2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClientConnectionEventHandler2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6b5dbd26_7d7a_4a3f_b8ea_1f049105e897); } #[repr(C)] #[doc(hidden)] @@ -7711,38 +7483,34 @@ pub struct IFabricClientConnectionEventHandler2_Vtbl { this: *mut ::core::ffi::c_void, metadata: *const super::super::FABRIC_CLAIMS_RETRIEVAL_METADATA, token: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClientSettings(::windows::core::IUnknown); +pub struct IFabricClientSettings(::windows_core::IUnknown); impl IFabricClientSettings { pub unsafe fn SetSecurityCredentials( &self, securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).SetSecurityCredentials)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(securitycredentials), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).SetSecurityCredentials)( + ::windows_core::Interface::as_raw(self), + securitycredentials, ) .ok() } pub unsafe fn SetKeepAlive( &self, keepaliveintervalinseconds: u32, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).SetKeepAlive)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).SetKeepAlive)( + ::windows_core::Interface::as_raw(self), keepaliveintervalinseconds, ) .ok() } } -::windows::core::interface_hierarchy!(IFabricClientSettings, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricClientSettings { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricClientSettings, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricClientSettings { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7756,80 +7524,80 @@ impl ::core::fmt::Debug for IFabricClientSettings { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClientSettings { +unsafe impl ::windows_core::Interface for IFabricClientSettings { type Vtable = IFabricClientSettings_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClientSettings { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb0e7dee0_cf64_11e0_9572_0800200c9a66); +impl ::core::clone::Clone for IFabricClientSettings { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClientSettings { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb0e7dee0_cf64_11e0_9572_0800200c9a66); } #[repr(C)] #[doc(hidden)] pub struct IFabricClientSettings_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub SetSecurityCredentials: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub SetKeepAlive: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, keepaliveintervalinseconds: u32, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClientSettings2(::windows::core::IUnknown); +pub struct IFabricClientSettings2(::windows_core::IUnknown); impl IFabricClientSettings2 { pub unsafe fn SetSecurityCredentials( &self, securitycredentials: *const super::super::FABRIC_SECURITY_CREDENTIALS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .SetSecurityCredentials)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(securitycredentials), + ::windows_core::Interface::as_raw(self), securitycredentials ) .ok() } pub unsafe fn SetKeepAlive( &self, keepaliveintervalinseconds: u32, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.SetKeepAlive)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.SetKeepAlive)( + ::windows_core::Interface::as_raw(self), keepaliveintervalinseconds, ) .ok() } - pub unsafe fn GetSettings(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetSettings(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetSettings)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn SetSettings( &self, fabricclientsettings: *const super::super::FABRIC_CLIENT_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).SetSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(fabricclientsettings), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).SetSettings)( + ::windows_core::Interface::as_raw(self), + fabricclientsettings, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricClientSettings2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricClientSettings ); -impl ::core::clone::Clone for IFabricClientSettings2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricClientSettings2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7843,12 +7611,17 @@ impl ::core::fmt::Debug for IFabricClientSettings2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClientSettings2 { +unsafe impl ::windows_core::Interface for IFabricClientSettings2 { type Vtable = IFabricClientSettings2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClientSettings2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc6fb97f7_82f3_4e6c_a80a_021e8ffca425); +impl ::core::clone::Clone for IFabricClientSettings2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClientSettings2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc6fb97f7_82f3_4e6c_a80a_021e8ffca425); } #[repr(C)] #[doc(hidden)] @@ -7857,25 +7630,23 @@ pub struct IFabricClientSettings2_Vtbl { pub GetSettings: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub SetSettings: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, fabricclientsettings: *const super::super::FABRIC_CLIENT_SETTINGS, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClientSettingsResult(::windows::core::IUnknown); +pub struct IFabricClientSettingsResult(::windows_core::IUnknown); impl IFabricClientSettingsResult { pub unsafe fn get_Settings(&self) -> *mut super::super::FABRIC_CLIENT_SETTINGS { - (::windows::core::Vtable::vtable(self).get_Settings)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricClientSettingsResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricClientSettingsResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_Settings)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!(IFabricClientSettingsResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricClientSettingsResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7889,36 +7660,37 @@ impl ::core::fmt::Debug for IFabricClientSettingsResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClientSettingsResult { +unsafe impl ::windows_core::Interface for IFabricClientSettingsResult { type Vtable = IFabricClientSettingsResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClientSettingsResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3b825afd_cb31_4589_961e_e3778aa23a60); +impl ::core::clone::Clone for IFabricClientSettingsResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClientSettingsResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3b825afd_cb31_4589_961e_e3778aa23a60); } #[repr(C)] #[doc(hidden)] pub struct IFabricClientSettingsResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Settings: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_CLIENT_SETTINGS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClusterHealthResult(::windows::core::IUnknown); +pub struct IFabricClusterHealthResult(::windows_core::IUnknown); impl IFabricClusterHealthResult { pub unsafe fn get_ClusterHealth(&self) -> *mut super::super::FABRIC_CLUSTER_HEALTH { - (::windows::core::Vtable::vtable(self).get_ClusterHealth)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricClusterHealthResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricClusterHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_ClusterHealth)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!(IFabricClusterHealthResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricClusterHealthResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7932,93 +7704,90 @@ impl ::core::fmt::Debug for IFabricClusterHealthResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClusterHealthResult { +unsafe impl ::windows_core::Interface for IFabricClusterHealthResult { type Vtable = IFabricClusterHealthResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClusterHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6b9b0f2c_6782_4a31_a256_570fa8ba32d3); +impl ::core::clone::Clone for IFabricClusterHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClusterHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6b9b0f2c_6782_4a31_a256_570fa8ba32d3); } #[repr(C)] #[doc(hidden)] pub struct IFabricClusterHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ClusterHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_CLUSTER_HEALTH, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClusterManagementClient(::windows::core::IUnknown); +pub struct IFabricClusterManagementClient(::windows_core::IUnknown); impl IFabricClusterManagementClient { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( + pub unsafe fn BeginNodeStateRemoved( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndNodeStateRemoved(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndNodeStateRemoved)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverPartitions<'a, P0>( + pub unsafe fn BeginRecoverPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRecoverPartitions)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRecoverPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!(IFabricClusterManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricClusterManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricClusterManagementClient, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricClusterManagementClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -8032,56 +7801,60 @@ impl ::core::fmt::Debug for IFabricClusterManagementClient { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient { +unsafe impl ::windows_core::Interface for IFabricClusterManagementClient { type Vtable = IFabricClusterManagementClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa3cf17e0_cf84_4ae0_b720_1785c0fb4ace); +impl ::core::clone::Clone for IFabricClusterManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa3cf17e0_cf84_4ae0_b720_1785c0fb4ace); } #[repr(C)] #[doc(hidden)] pub struct IFabricClusterManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginNodeStateRemoved: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, + nodename: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndNodeStateRemoved: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginRecoverPartitions: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRecoverPartitions: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClusterManagementClient10(::windows::core::IUnknown); +pub struct IFabricClusterManagementClient10(::windows_core::IUnknown); impl IFabricClusterManagementClient10 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( + pub unsafe fn BeginNodeStateRemoved( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8092,19 +7865,19 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndNodeStateRemoved(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8115,22 +7888,21 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverPartitions<'a, P0>( + pub unsafe fn BeginRecoverPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8141,18 +7913,18 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8163,25 +7935,24 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( + pub unsafe fn BeginDeactivateNode( &self, nodename: P0, intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8191,20 +7962,20 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), intent, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeactivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8213,23 +7984,24 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginActivateNode<'a, P0, P1>( + pub unsafe fn BeginActivateNode( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8239,19 +8011,19 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8260,25 +8032,26 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginProvisionFabric( &self, codefilepath: P0, clustermanifestfilepath: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8288,20 +8061,20 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8310,22 +8083,23 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginUpgradeFabric<'a, P0>( + pub unsafe fn BeginUpgradeFabric( &self, upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8335,19 +8109,19 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8356,21 +8130,22 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetFabricUpgradeProgress( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8380,22 +8155,22 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn EndGetFabricUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8405,26 +8180,24 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8434,22 +8207,22 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8459,25 +8232,23 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( &self, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8487,22 +8258,22 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8512,27 +8283,25 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionFabric( &self, codeversion: P0, configversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8542,20 +8311,20 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUnprovisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8565,22 +8334,21 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterManifest<'a, P0>( + pub unsafe fn BeginGetClusterManifest( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8590,22 +8358,22 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterManifest<'a, P0>( + pub unsafe fn EndGetClusterManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8615,25 +8383,23 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRecoverPartition<'a, P0>( + pub unsafe fn BeginRecoverPartition( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8643,19 +8409,19 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartition(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8665,23 +8431,22 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( + pub unsafe fn BeginRecoverServicePartitions( &self, servicename: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8691,22 +8456,19 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), + ::windows_core::Interface::as_raw(self), + servicename, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverServicePartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8716,23 +8478,21 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( + pub unsafe fn BeginRecoverSystemPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8742,21 +8502,18 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverSystemPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8766,24 +8523,22 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( + pub unsafe fn BeginUpdateFabricUpgrade( &self, description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8792,19 +8547,19 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8813,23 +8568,22 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStopNode<'a, P0>( + pub unsafe fn BeginStopNode( &self, stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8838,19 +8592,19 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), + ::windows_core::Interface::as_raw(self), + stopnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8858,22 +8612,23 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .base__ - .EndStopNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRestartNode<'a, P0>( + pub unsafe fn BeginRestartNode( &self, restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8882,19 +8637,19 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), + ::windows_core::Interface::as_raw(self), + restartnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8902,22 +8657,23 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .base__ - .EndRestartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginStartNode<'a, P0>( + pub unsafe fn BeginStartNode( &self, startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8926,19 +8682,19 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), + ::windows_core::Interface::as_raw(self), + startnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8946,25 +8702,28 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .base__ - .EndStartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( + pub unsafe fn CopyClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpath: P1, clustermanifestpathinimagestore: P2, codepackagepath: P3, codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -8973,27 +8732,27 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( + pub unsafe fn RemoveClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpathinimagestore: P1, codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -9002,25 +8761,23 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( + pub unsafe fn BeginRollbackFabricUpgrade( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -9028,21 +8785,18 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRollbackFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -9050,460 +8804,441 @@ impl IFabricClusterManagementClient10 { .base__ .base__ .EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginResetPartitionLoad<'a, P0>( + pub unsafe fn BeginResetPartitionLoad( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndResetPartitionLoad<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndResetPartitionLoad(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting( &self, enabled: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - enabled.into(), + ::windows_core::Interface::as_raw(self), + enabled.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndToggleVerboseServicePlacementHealthReporting<'a, P0>( + pub unsafe fn EndToggleVerboseServicePlacementHealthReporting( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeConfiguration<'a, P0>( + pub unsafe fn BeginUpgradeConfiguration( &self, startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startupgradedescription), + ::windows_core::Interface::as_raw(self), + startupgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeConfiguration<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeConfiguration(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterConfigurationUpgradeStatus<'a, P0>( + pub unsafe fn BeginGetClusterConfigurationUpgradeStatus( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterConfigurationUpgradeStatus<'a, P0>( + pub unsafe fn EndGetClusterConfigurationUpgradeStatus( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterConfiguration<'a, P0>( + pub unsafe fn BeginGetClusterConfiguration( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterConfiguration<'a, P0>( + pub unsafe fn EndGetClusterConfiguration( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetUpgradesPendingApproval<'a, P0>( + pub unsafe fn BeginGetUpgradesPendingApproval( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetUpgradesPendingApproval<'a, P0>( + pub unsafe fn EndGetUpgradesPendingApproval( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStartApprovedUpgrades<'a, P0>( + pub unsafe fn BeginStartApprovedUpgrades( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartApprovedUpgrades<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartApprovedUpgrades(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterManifest2<'a, P0>( + pub unsafe fn BeginGetClusterManifest2( &self, querydescription: *const super::super::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetClusterManifest2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterManifest2<'a, P0>( + pub unsafe fn EndGetClusterManifest2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetClusterManifest2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetUpgradeOrchestrationServiceState<'a, P0>( + pub unsafe fn BeginGetUpgradeOrchestrationServiceState( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetUpgradeOrchestrationServiceState<'a, P0>( + pub unsafe fn EndGetUpgradeOrchestrationServiceState( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginSetUpgradeOrchestrationServiceState<'a, P0, P1>( + pub unsafe fn BeginSetUpgradeOrchestrationServiceState( &self, state: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginSetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - state.into(), + ::windows_core::Interface::as_raw(self), + state.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndSetUpgradeOrchestrationServiceState<'a, P0>( + pub unsafe fn EndSetUpgradeOrchestrationServiceState( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndSetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterConfiguration2<'a, P0, P1>( + pub unsafe fn BeginGetClusterConfiguration2( &self, apiversion: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterConfiguration2)( - ::windows::core::Vtable::as_raw(self), - apiversion.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterConfiguration2)( + ::windows_core::Interface::as_raw(self), + apiversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterConfiguration2<'a, P0>( + pub unsafe fn EndGetClusterConfiguration2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterConfiguration2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterConfiguration2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricClusterManagementClient10, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricClusterManagementClient, IFabricClusterManagementClient2, IFabricClusterManagementClient3, @@ -9514,11 +9249,6 @@ impl IFabricClusterManagementClient10 { IFabricClusterManagementClient8, IFabricClusterManagementClient9 ); -impl ::core::clone::Clone for IFabricClusterManagementClient10 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricClusterManagementClient10 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -9532,12 +9262,17 @@ impl ::core::fmt::Debug for IFabricClusterManagementClient10 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient10 { +unsafe impl ::windows_core::Interface for IFabricClusterManagementClient10 { type Vtable = IFabricClusterManagementClient10_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient10 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa4aceb4f_2e2b_4be1_9d12_44fe8cb5fb20); +impl ::core::clone::Clone for IFabricClusterManagementClient10 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient10 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa4aceb4f_2e2b_4be1_9d12_44fe8cb5fb20); } #[repr(C)] #[doc(hidden)] @@ -9545,500 +9280,464 @@ pub struct IFabricClusterManagementClient10_Vtbl { pub base__: IFabricClusterManagementClient9_Vtbl, pub BeginGetClusterConfiguration2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - apiversion: ::windows::core::PCWSTR, + apiversion: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetClusterConfiguration2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClusterManagementClient2(::windows::core::IUnknown); +pub struct IFabricClusterManagementClient2(::windows_core::IUnknown); impl IFabricClusterManagementClient2 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( + pub unsafe fn BeginNodeStateRemoved( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndNodeStateRemoved(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverPartitions<'a, P0>( + pub unsafe fn BeginRecoverPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( + pub unsafe fn BeginDeactivateNode( &self, nodename: P0, intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeactivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), intent, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeactivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginActivateNode<'a, P0, P1>( + pub unsafe fn BeginActivateNode( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginActivateNode)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndActivateNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginProvisionFabric( &self, codefilepath: P0, clustermanifestfilepath: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProvisionFabric)( + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeFabric<'a, P0>( + pub unsafe fn BeginUpgradeFabric( &self, upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetFabricUpgradeProgress( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn EndGetFabricUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetFabricUpgradeProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndMoveNextFabricUpgradeDomain)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( &self, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndMoveNextFabricUpgradeDomain2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionFabric( &self, codeversion: P0, configversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUnprovisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUnprovisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterManifest<'a, P0>( + pub unsafe fn BeginGetClusterManifest( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterManifest)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterManifest<'a, P0>( + pub unsafe fn EndGetClusterManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRecoverPartition<'a, P0>( + pub unsafe fn BeginRecoverPartition( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRecoverPartition)( + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartition(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRecoverPartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( + pub unsafe fn BeginRecoverServicePartitions( &self, servicename: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + servicename, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverServicePartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRecoverServicePartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( + pub unsafe fn BeginRecoverSystemPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverSystemPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRecoverSystemPartitions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricClusterManagementClient2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricClusterManagementClient ); -impl ::core::clone::Clone for IFabricClusterManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricClusterManagementClient2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -10052,12 +9751,17 @@ impl ::core::fmt::Debug for IFabricClusterManagementClient2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient2 { +unsafe impl ::windows_core::Interface for IFabricClusterManagementClient2 { type Vtable = IFabricClusterManagementClient2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf9493e16_6a49_4d79_8695_5a6826b504c5); +impl ::core::clone::Clone for IFabricClusterManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf9493e16_6a49_4d79_8695_5a6826b504c5); } #[repr(C)] #[doc(hidden)] @@ -10065,832 +9769,800 @@ pub struct IFabricClusterManagementClient2_Vtbl { pub base__: IFabricClusterManagementClient_Vtbl, pub BeginDeactivateNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, + nodename: ::windows_core::PCWSTR, intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndDeactivateNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginActivateNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, + nodename: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndActivateNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginProvisionFabric: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - codefilepath: ::windows::core::PCWSTR, - clustermanifestfilepath: ::windows::core::PCWSTR, + 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, + ) -> ::windows_core::HRESULT, pub EndProvisionFabric: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginUpgradeFabric: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndUpgradeFabric: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetFabricUpgradeProgress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetFabricUpgradeProgress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginMoveNextFabricUpgradeDomain: unsafe extern "system" fn( 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, + ) -> ::windows_core::HRESULT, pub EndMoveNextFabricUpgradeDomain: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginMoveNextFabricUpgradeDomain2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - nextupgradedomain: ::windows::core::PCWSTR, + nextupgradedomain: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub EndMoveNextFabricUpgradeDomain2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginUnprovisionFabric: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - codeversion: ::windows::core::PCWSTR, - configversion: ::windows::core::PCWSTR, + 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, + ) -> ::windows_core::HRESULT, pub EndUnprovisionFabric: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetClusterManifest: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetClusterManifest: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginRecoverPartition: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRecoverPartition: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginRecoverServicePartitions: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, servicename: *const u16, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRecoverServicePartitions: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginRecoverSystemPartitions: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRecoverSystemPartitions: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClusterManagementClient3(::windows::core::IUnknown); +pub struct IFabricClusterManagementClient3(::windows_core::IUnknown); impl IFabricClusterManagementClient3 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( + pub unsafe fn BeginNodeStateRemoved( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndNodeStateRemoved(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverPartitions<'a, P0>( + pub unsafe fn BeginRecoverPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( + pub unsafe fn BeginDeactivateNode( &self, nodename: P0, intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), intent, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeactivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginActivateNode<'a, P0, P1>( + pub unsafe fn BeginActivateNode( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndActivateNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self) + .base__ + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginProvisionFabric( &self, codefilepath: P0, clustermanifestfilepath: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginUpgradeFabric<'a, P0>( + pub unsafe fn BeginUpgradeFabric( &self, upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetFabricUpgradeProgress( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn EndGetFabricUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( &self, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionFabric( &self, codeversion: P0, configversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUnprovisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterManifest<'a, P0>( + pub unsafe fn BeginGetClusterManifest( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterManifest<'a, P0>( + pub unsafe fn EndGetClusterManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRecoverPartition<'a, P0>( + pub unsafe fn BeginRecoverPartition( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartition(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( + pub unsafe fn BeginRecoverServicePartitions( &self, servicename: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), + ::windows_core::Interface::as_raw(self), + servicename, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverServicePartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( + pub unsafe fn BeginRecoverSystemPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverSystemPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( + pub unsafe fn BeginUpdateFabricUpgrade( &self, description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUpdateFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStopNode<'a, P0>( + pub unsafe fn BeginStopNode( &self, stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStopNode)( + ::windows_core::Interface::as_raw(self), + stopnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndStopNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRestartNode<'a, P0>( + pub unsafe fn BeginRestartNode( &self, restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestartNode)( + ::windows_core::Interface::as_raw(self), + restartnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRestartNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStartNode<'a, P0>( + pub unsafe fn BeginStartNode( &self, startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartNode)( + ::windows_core::Interface::as_raw(self), + startnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndStartNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( + pub unsafe fn CopyClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpath: P1, clustermanifestpathinimagestore: P2, codepackagepath: P3, codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), + (::windows_core::Interface::vtable(self).CopyClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( + pub unsafe fn RemoveClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpathinimagestore: P1, codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), + (::windows_core::Interface::vtable(self).RemoveClusterPackage)( + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricClusterManagementClient3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricClusterManagementClient, IFabricClusterManagementClient2 ); -impl ::core::clone::Clone for IFabricClusterManagementClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricClusterManagementClient3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -10904,12 +10576,17 @@ impl ::core::fmt::Debug for IFabricClusterManagementClient3 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient3 { +unsafe impl ::windows_core::Interface for IFabricClusterManagementClient3 { type Vtable = IFabricClusterManagementClient3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc3001d74_92b6_44cb_ac2f_2ffc4a56287c); +impl ::core::clone::Clone for IFabricClusterManagementClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc3001d74_92b6_44cb_ac2f_2ffc4a56287c); } #[repr(C)] #[doc(hidden)] @@ -10921,819 +10598,789 @@ pub struct IFabricClusterManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndUpdateFabricUpgrade: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginStopNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndStopNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginRestartNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRestartNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginStartNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndStartNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub CopyClusterPackage: unsafe extern "system" fn( 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, + imagestoreconnectionstring: ::windows_core::PCWSTR, + clustermanifestpath: ::windows_core::PCWSTR, + clustermanifestpathinimagestore: ::windows_core::PCWSTR, + codepackagepath: ::windows_core::PCWSTR, + codepackagepathinimagestore: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT, pub RemoveClusterPackage: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - imagestoreconnectionstring: ::windows::core::PCWSTR, - clustermanifestpathinimagestore: ::windows::core::PCWSTR, - codepackagepathinimagestore: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT, + imagestoreconnectionstring: ::windows_core::PCWSTR, + clustermanifestpathinimagestore: ::windows_core::PCWSTR, + codepackagepathinimagestore: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClusterManagementClient4(::windows::core::IUnknown); +pub struct IFabricClusterManagementClient4(::windows_core::IUnknown); impl IFabricClusterManagementClient4 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( + pub unsafe fn BeginNodeStateRemoved( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndNodeStateRemoved(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverPartitions<'a, P0>( + pub unsafe fn BeginRecoverPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( + pub unsafe fn BeginDeactivateNode( &self, nodename: P0, intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), intent, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeactivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginActivateNode<'a, P0, P1>( + pub unsafe fn BeginActivateNode( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginProvisionFabric( &self, codefilepath: P0, clustermanifestfilepath: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginUpgradeFabric<'a, P0>( + pub unsafe fn BeginUpgradeFabric( &self, upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetFabricUpgradeProgress( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn EndGetFabricUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( &self, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionFabric( &self, codeversion: P0, configversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUnprovisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterManifest<'a, P0>( + pub unsafe fn BeginGetClusterManifest( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterManifest<'a, P0>( + pub unsafe fn EndGetClusterManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRecoverPartition<'a, P0>( + pub unsafe fn BeginRecoverPartition( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartition(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( + pub unsafe fn BeginRecoverServicePartitions( &self, servicename: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), + ::windows_core::Interface::as_raw(self), + servicename, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverServicePartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( + pub unsafe fn BeginRecoverSystemPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverSystemPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( + pub unsafe fn BeginUpdateFabricUpgrade( &self, description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStopNode<'a, P0>( + pub unsafe fn BeginStopNode( &self, stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginStopNode)( + ::windows_core::Interface::as_raw(self), + stopnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndStopNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).base__.EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRestartNode<'a, P0>( + pub unsafe fn BeginRestartNode( &self, restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), + ::windows_core::Interface::as_raw(self), + restartnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndRestartNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self) + .base__ + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStartNode<'a, P0>( + pub unsafe fn BeginStartNode( &self, startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginStartNode)( + ::windows_core::Interface::as_raw(self), + startnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndStartNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).base__.EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( + pub unsafe fn CopyClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpath: P1, clustermanifestpathinimagestore: P2, codepackagepath: P3, codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( + pub unsafe fn RemoveClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpathinimagestore: P1, codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( + pub unsafe fn BeginRollbackFabricUpgrade( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRollbackFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRollbackFabricUpgrade)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricClusterManagementClient4, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricClusterManagementClient, IFabricClusterManagementClient2, IFabricClusterManagementClient3 ); -impl ::core::clone::Clone for IFabricClusterManagementClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricClusterManagementClient4 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -11747,12 +11394,17 @@ impl ::core::fmt::Debug for IFabricClusterManagementClient4 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient4 { +unsafe impl ::windows_core::Interface for IFabricClusterManagementClient4 { type Vtable = IFabricClusterManagementClient4_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb6b12671_f283_4d71_a818_0260549bc83e); +impl ::core::clone::Clone for IFabricClusterManagementClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb6b12671_f283_4d71_a818_0260549bc83e); } #[repr(C)] #[doc(hidden)] @@ -11763,846 +11415,820 @@ pub struct IFabricClusterManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRollbackFabricUpgrade: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClusterManagementClient5(::windows::core::IUnknown); +pub struct IFabricClusterManagementClient5(::windows_core::IUnknown); impl IFabricClusterManagementClient5 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( + pub unsafe fn BeginNodeStateRemoved( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndNodeStateRemoved(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverPartitions<'a, P0>( + pub unsafe fn BeginRecoverPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( + pub unsafe fn BeginDeactivateNode( &self, nodename: P0, intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), intent, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeactivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginActivateNode<'a, P0, P1>( + pub unsafe fn BeginActivateNode( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginProvisionFabric( &self, codefilepath: P0, clustermanifestfilepath: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginUpgradeFabric<'a, P0>( + pub unsafe fn BeginUpgradeFabric( &self, upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetFabricUpgradeProgress( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn EndGetFabricUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( &self, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionFabric( &self, codeversion: P0, configversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUnprovisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterManifest<'a, P0>( + pub unsafe fn BeginGetClusterManifest( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterManifest<'a, P0>( + pub unsafe fn EndGetClusterManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRecoverPartition<'a, P0>( + pub unsafe fn BeginRecoverPartition( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartition(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( + pub unsafe fn BeginRecoverServicePartitions( &self, servicename: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), + ::windows_core::Interface::as_raw(self), + servicename, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverServicePartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( + pub unsafe fn BeginRecoverSystemPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverSystemPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( + pub unsafe fn BeginUpdateFabricUpgrade( &self, description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStopNode<'a, P0>( + pub unsafe fn BeginStopNode( &self, stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), + ::windows_core::Interface::as_raw(self), + stopnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndStopNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRestartNode<'a, P0>( + pub unsafe fn BeginRestartNode( &self, restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), + ::windows_core::Interface::as_raw(self), + restartnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndRestartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginStartNode<'a, P0>( + pub unsafe fn BeginStartNode( &self, startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), + ::windows_core::Interface::as_raw(self), + startnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndStartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( + pub unsafe fn CopyClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpath: P1, clustermanifestpathinimagestore: P2, codepackagepath: P3, codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( + pub unsafe fn RemoveClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpathinimagestore: P1, codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( + pub unsafe fn BeginRollbackFabricUpgrade( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRollbackFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginResetPartitionLoad<'a, P0>( + pub unsafe fn BeginResetPartitionLoad( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndResetPartitionLoad<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndResetPartitionLoad(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndResetPartitionLoad)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricClusterManagementClient5, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricClusterManagementClient, IFabricClusterManagementClient2, IFabricClusterManagementClient3, IFabricClusterManagementClient4 ); -impl ::core::clone::Clone for IFabricClusterManagementClient5 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricClusterManagementClient5 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -12616,12 +12242,17 @@ impl ::core::fmt::Debug for IFabricClusterManagementClient5 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient5 { +unsafe impl ::windows_core::Interface for IFabricClusterManagementClient5 { type Vtable = IFabricClusterManagementClient5_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient5 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa6ddd816_a100_11e4_89d3_123b93f75cba); +impl ::core::clone::Clone for IFabricClusterManagementClient5 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient5 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa6ddd816_a100_11e4_89d3_123b93f75cba); } #[repr(C)] #[doc(hidden)] @@ -12629,929 +12260,904 @@ pub struct IFabricClusterManagementClient5_Vtbl { pub base__: IFabricClusterManagementClient4_Vtbl, pub BeginResetPartitionLoad: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndResetPartitionLoad: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClusterManagementClient6(::windows::core::IUnknown); +pub struct IFabricClusterManagementClient6(::windows_core::IUnknown); impl IFabricClusterManagementClient6 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( + pub unsafe fn BeginNodeStateRemoved( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndNodeStateRemoved(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverPartitions<'a, P0>( + pub unsafe fn BeginRecoverPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( + pub unsafe fn BeginDeactivateNode( &self, nodename: P0, intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), intent, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeactivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginActivateNode<'a, P0, P1>( + pub unsafe fn BeginActivateNode( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginProvisionFabric( &self, codefilepath: P0, clustermanifestfilepath: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginUpgradeFabric<'a, P0>( + pub unsafe fn BeginUpgradeFabric( &self, upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetFabricUpgradeProgress( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn EndGetFabricUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( &self, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionFabric( &self, codeversion: P0, configversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUnprovisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterManifest<'a, P0>( + pub unsafe fn BeginGetClusterManifest( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterManifest<'a, P0>( + pub unsafe fn EndGetClusterManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRecoverPartition<'a, P0>( + pub unsafe fn BeginRecoverPartition( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartition(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( + pub unsafe fn BeginRecoverServicePartitions( &self, servicename: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), + ::windows_core::Interface::as_raw(self), + servicename, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverServicePartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( + pub unsafe fn BeginRecoverSystemPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverSystemPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( + pub unsafe fn BeginUpdateFabricUpgrade( &self, description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStopNode<'a, P0>( + pub unsafe fn BeginStopNode( &self, stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), + ::windows_core::Interface::as_raw(self), + stopnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndStopNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRestartNode<'a, P0>( + pub unsafe fn BeginRestartNode( &self, restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), + ::windows_core::Interface::as_raw(self), + restartnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndRestartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginStartNode<'a, P0>( + pub unsafe fn BeginStartNode( &self, startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), + ::windows_core::Interface::as_raw(self), + startnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndStartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( + pub unsafe fn CopyClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpath: P1, clustermanifestpathinimagestore: P2, codepackagepath: P3, codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( + pub unsafe fn RemoveClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpathinimagestore: P1, codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( + pub unsafe fn BeginRollbackFabricUpgrade( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRollbackFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginResetPartitionLoad<'a, P0>( + pub unsafe fn BeginResetPartitionLoad( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndResetPartitionLoad<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndResetPartitionLoad(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting( &self, enabled: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - enabled.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginToggleVerboseServicePlacementHealthReporting)( + ::windows_core::Interface::as_raw(self), + enabled.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndToggleVerboseServicePlacementHealthReporting<'a, P0>( + pub unsafe fn EndToggleVerboseServicePlacementHealthReporting( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndToggleVerboseServicePlacementHealthReporting)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricClusterManagementClient6, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricClusterManagementClient, IFabricClusterManagementClient2, IFabricClusterManagementClient3, IFabricClusterManagementClient4, IFabricClusterManagementClient5 ); -impl ::core::clone::Clone for IFabricClusterManagementClient6 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricClusterManagementClient6 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -13565,17 +13171,23 @@ impl ::core::fmt::Debug for IFabricClusterManagementClient6 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient6 { +unsafe impl ::windows_core::Interface for IFabricClusterManagementClient6 { type Vtable = IFabricClusterManagementClient6_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient6 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9e454ae8_4b8c_4136_884a_37b0b92cc855); +impl ::core::clone::Clone for IFabricClusterManagementClient6 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient6 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9e454ae8_4b8c_4136_884a_37b0b92cc855); } #[repr(C)] #[doc(hidden)] pub struct IFabricClusterManagementClient6_Vtbl { pub base__: IFabricClusterManagementClient5_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginToggleVerboseServicePlacementHealthReporting: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, @@ -13583,30 +13195,31 @@ pub struct IFabricClusterManagementClient6_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginToggleVerboseServicePlacementHealthReporting: usize, pub EndToggleVerboseServicePlacementHealthReporting: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClusterManagementClient7(::windows::core::IUnknown); +pub struct IFabricClusterManagementClient7(::windows_core::IUnknown); impl IFabricClusterManagementClient7 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( + pub unsafe fn BeginNodeStateRemoved( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -13614,19 +13227,19 @@ impl IFabricClusterManagementClient7 { .base__ .base__ .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndNodeStateRemoved(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -13634,22 +13247,21 @@ impl IFabricClusterManagementClient7 { .base__ .base__ .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverPartitions<'a, P0>( + pub unsafe fn BeginRecoverPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -13657,18 +13269,18 @@ impl IFabricClusterManagementClient7 { .base__ .base__ .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -13676,1031 +13288,1000 @@ impl IFabricClusterManagementClient7 { .base__ .base__ .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( + pub unsafe fn BeginDeactivateNode( &self, nodename: P0, intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), intent, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeactivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginActivateNode<'a, P0, P1>( + pub unsafe fn BeginActivateNode( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginProvisionFabric( &self, codefilepath: P0, clustermanifestfilepath: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginUpgradeFabric<'a, P0>( + pub unsafe fn BeginUpgradeFabric( &self, upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetFabricUpgradeProgress( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn EndGetFabricUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( &self, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionFabric( &self, codeversion: P0, configversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUnprovisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterManifest<'a, P0>( + pub unsafe fn BeginGetClusterManifest( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterManifest<'a, P0>( + pub unsafe fn EndGetClusterManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRecoverPartition<'a, P0>( + pub unsafe fn BeginRecoverPartition( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartition(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( + pub unsafe fn BeginRecoverServicePartitions( &self, servicename: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), + ::windows_core::Interface::as_raw(self), + servicename, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverServicePartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( + pub unsafe fn BeginRecoverSystemPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverSystemPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( + pub unsafe fn BeginUpdateFabricUpgrade( &self, description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStopNode<'a, P0>( + pub unsafe fn BeginStopNode( &self, stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), + ::windows_core::Interface::as_raw(self), + stopnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .EndStopNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRestartNode<'a, P0>( + pub unsafe fn BeginRestartNode( &self, restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), + ::windows_core::Interface::as_raw(self), + restartnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .EndRestartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginStartNode<'a, P0>( + pub unsafe fn BeginStartNode( &self, startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), + ::windows_core::Interface::as_raw(self), + startnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .EndStartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( + pub unsafe fn CopyClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpath: P1, clustermanifestpathinimagestore: P2, codepackagepath: P3, codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( + pub unsafe fn RemoveClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpathinimagestore: P1, codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( + pub unsafe fn BeginRollbackFabricUpgrade( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRollbackFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginResetPartitionLoad<'a, P0>( + pub unsafe fn BeginResetPartitionLoad( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndResetPartitionLoad<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndResetPartitionLoad(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting( &self, enabled: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - enabled.into(), + ::windows_core::Interface::as_raw(self), + enabled.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndToggleVerboseServicePlacementHealthReporting<'a, P0>( + pub unsafe fn EndToggleVerboseServicePlacementHealthReporting( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeConfiguration<'a, P0>( + pub unsafe fn BeginUpgradeConfiguration( &self, startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startupgradedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpgradeConfiguration)( + ::windows_core::Interface::as_raw(self), + startupgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeConfiguration<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeConfiguration(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUpgradeConfiguration)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterConfigurationUpgradeStatus<'a, P0>( + pub unsafe fn BeginGetClusterConfigurationUpgradeStatus( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterConfigurationUpgradeStatus)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterConfigurationUpgradeStatus<'a, P0>( + pub unsafe fn EndGetClusterConfigurationUpgradeStatus( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterConfigurationUpgradeStatus)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterConfiguration<'a, P0>( + pub unsafe fn BeginGetClusterConfiguration( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterConfiguration)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterConfiguration<'a, P0>( + pub unsafe fn EndGetClusterConfiguration( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterConfiguration)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetUpgradesPendingApproval<'a, P0>( + pub unsafe fn BeginGetUpgradesPendingApproval( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetUpgradesPendingApproval)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetUpgradesPendingApproval<'a, P0>( + pub unsafe fn EndGetUpgradesPendingApproval( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndGetUpgradesPendingApproval)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStartApprovedUpgrades<'a, P0>( + pub unsafe fn BeginStartApprovedUpgrades( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartApprovedUpgrades)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartApprovedUpgrades<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartApprovedUpgrades(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndStartApprovedUpgrades)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricClusterManagementClient7, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricClusterManagementClient, IFabricClusterManagementClient2, IFabricClusterManagementClient3, @@ -14708,11 +14289,6 @@ impl IFabricClusterManagementClient7 { IFabricClusterManagementClient5, IFabricClusterManagementClient6 ); -impl ::core::clone::Clone for IFabricClusterManagementClient7 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricClusterManagementClient7 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -14726,12 +14302,17 @@ impl ::core::fmt::Debug for IFabricClusterManagementClient7 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient7 { +unsafe impl ::windows_core::Interface for IFabricClusterManagementClient7 { type Vtable = IFabricClusterManagementClient7_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient7 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9b9105ac_d595_4f59_9c94_1ffdbf92a876); +impl ::core::clone::Clone for IFabricClusterManagementClient7 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient7 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9b9105ac_d595_4f59_9c94_1ffdbf92a876); } #[repr(C)] #[doc(hidden)] @@ -14743,73 +14324,72 @@ pub struct IFabricClusterManagementClient7_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndUpgradeConfiguration: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetClusterConfigurationUpgradeStatus: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetClusterConfigurationUpgradeStatus: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetClusterConfiguration: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetClusterConfiguration: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetUpgradesPendingApproval: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetUpgradesPendingApproval: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginStartApprovedUpgrades: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndStartApprovedUpgrades: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClusterManagementClient8(::windows::core::IUnknown); +pub struct IFabricClusterManagementClient8(::windows_core::IUnknown); impl IFabricClusterManagementClient8 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( + pub unsafe fn BeginNodeStateRemoved( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -14818,19 +14398,19 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndNodeStateRemoved(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -14839,22 +14419,21 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverPartitions<'a, P0>( + pub unsafe fn BeginRecoverPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -14863,18 +14442,18 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -14883,25 +14462,24 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( + pub unsafe fn BeginDeactivateNode( &self, nodename: P0, intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -14909,43 +14487,44 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), intent, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeactivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginActivateNode<'a, P0, P1>( + pub unsafe fn BeginActivateNode( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -14953,44 +14532,45 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginProvisionFabric( &self, codefilepath: P0, clustermanifestfilepath: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -14998,42 +14578,43 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginUpgradeFabric<'a, P0>( + pub unsafe fn BeginUpgradeFabric( &self, upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15041,40 +14622,41 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetFabricUpgradeProgress( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15082,22 +14664,22 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn EndGetFabricUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15105,26 +14687,24 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15132,22 +14712,22 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15155,25 +14735,23 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( &self, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15181,22 +14759,22 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15204,27 +14782,25 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionFabric( &self, codeversion: P0, configversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15232,20 +14808,20 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUnprovisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15253,22 +14829,21 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterManifest<'a, P0>( + pub unsafe fn BeginGetClusterManifest( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15276,22 +14851,22 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterManifest<'a, P0>( + pub unsafe fn EndGetClusterManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15299,25 +14874,23 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRecoverPartition<'a, P0>( + pub unsafe fn BeginRecoverPartition( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15325,19 +14898,19 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartition(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15345,23 +14918,22 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( + pub unsafe fn BeginRecoverServicePartitions( &self, servicename: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15369,22 +14941,19 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), + ::windows_core::Interface::as_raw(self), + servicename, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverServicePartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15392,23 +14961,21 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( + pub unsafe fn BeginRecoverSystemPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15416,21 +14983,18 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverSystemPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -15438,570 +15002,554 @@ impl IFabricClusterManagementClient8 { .base__ .base__ .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( + pub unsafe fn BeginUpdateFabricUpgrade( &self, description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStopNode<'a, P0>( + pub unsafe fn BeginStopNode( &self, stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), + ::windows_core::Interface::as_raw(self), + stopnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .EndStopNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRestartNode<'a, P0>( + pub unsafe fn BeginRestartNode( &self, restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), + ::windows_core::Interface::as_raw(self), + restartnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .EndRestartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginStartNode<'a, P0>( + pub unsafe fn BeginStartNode( &self, startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), + ::windows_core::Interface::as_raw(self), + startnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .EndStartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( + pub unsafe fn CopyClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpath: P1, clustermanifestpathinimagestore: P2, codepackagepath: P3, codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( + pub unsafe fn RemoveClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpathinimagestore: P1, codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( + pub unsafe fn BeginRollbackFabricUpgrade( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRollbackFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginResetPartitionLoad<'a, P0>( + pub unsafe fn BeginResetPartitionLoad( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndResetPartitionLoad<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndResetPartitionLoad(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting( &self, enabled: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - enabled.into(), + ::windows_core::Interface::as_raw(self), + enabled.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndToggleVerboseServicePlacementHealthReporting<'a, P0>( + pub unsafe fn EndToggleVerboseServicePlacementHealthReporting( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeConfiguration<'a, P0>( + pub unsafe fn BeginUpgradeConfiguration( &self, startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startupgradedescription), + ::windows_core::Interface::as_raw(self), + startupgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeConfiguration<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeConfiguration(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterConfigurationUpgradeStatus<'a, P0>( + pub unsafe fn BeginGetClusterConfigurationUpgradeStatus( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterConfigurationUpgradeStatus<'a, P0>( + pub unsafe fn EndGetClusterConfigurationUpgradeStatus( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterConfiguration<'a, P0>( + pub unsafe fn BeginGetClusterConfiguration( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterConfiguration<'a, P0>( + pub unsafe fn EndGetClusterConfiguration( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetUpgradesPendingApproval<'a, P0>( + pub unsafe fn BeginGetUpgradesPendingApproval( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetUpgradesPendingApproval<'a, P0>( + pub unsafe fn EndGetUpgradesPendingApproval( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStartApprovedUpgrades<'a, P0>( + pub unsafe fn BeginStartApprovedUpgrades( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartApprovedUpgrades<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartApprovedUpgrades(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterManifest2<'a, P0>( + pub unsafe fn BeginGetClusterManifest2( &self, querydescription: *const super::super::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterManifest2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterManifest2)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterManifest2<'a, P0>( + pub unsafe fn EndGetClusterManifest2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterManifest2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterManifest2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricClusterManagementClient8, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricClusterManagementClient, IFabricClusterManagementClient2, IFabricClusterManagementClient3, @@ -16010,11 +15558,6 @@ impl IFabricClusterManagementClient8 { IFabricClusterManagementClient6, IFabricClusterManagementClient7 ); -impl ::core::clone::Clone for IFabricClusterManagementClient8 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricClusterManagementClient8 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -16028,12 +15571,17 @@ impl ::core::fmt::Debug for IFabricClusterManagementClient8 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient8 { +unsafe impl ::windows_core::Interface for IFabricClusterManagementClient8 { type Vtable = IFabricClusterManagementClient8_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient8 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0b79641c_79a6_4162_904a_840babd08381); +impl ::core::clone::Clone for IFabricClusterManagementClient8 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient8 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0b79641c_79a6_4162_904a_840babd08381); } #[repr(C)] #[doc(hidden)] @@ -16045,30 +15593,29 @@ pub struct IFabricClusterManagementClient8_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetClusterManifest2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricClusterManagementClient9(::windows::core::IUnknown); +pub struct IFabricClusterManagementClient9(::windows_core::IUnknown); impl IFabricClusterManagementClient9 { - pub unsafe fn BeginNodeStateRemoved<'a, P0, P1>( + pub unsafe fn BeginNodeStateRemoved( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16078,19 +15625,19 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndNodeStateRemoved<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndNodeStateRemoved(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16100,22 +15647,21 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .EndNodeStateRemoved)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverPartitions<'a, P0>( + pub unsafe fn BeginRecoverPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16125,18 +15671,18 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartitions<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16146,25 +15692,24 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .EndRecoverPartitions)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeactivateNode<'a, P0, P1>( + pub unsafe fn BeginDeactivateNode( &self, nodename: P0, intent: super::super::FABRIC_NODE_DEACTIVATION_INTENT, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16173,20 +15718,20 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginDeactivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), intent, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeactivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeactivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16194,23 +15739,24 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .base__ - .EndDeactivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeactivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginActivateNode<'a, P0, P1>( + pub unsafe fn BeginActivateNode( &self, nodename: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16219,19 +15765,19 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginActivateNode)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndActivateNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndActivateNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16239,25 +15785,26 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .base__ - .EndActivateNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndActivateNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginProvisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginProvisionFabric( &self, codefilepath: P0, clustermanifestfilepath: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16266,20 +15813,20 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginProvisionFabric)( - ::windows::core::Vtable::as_raw(self), - codefilepath.into(), - clustermanifestfilepath.into(), + ::windows_core::Interface::as_raw(self), + codefilepath.into_param().abi(), + clustermanifestfilepath.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProvisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndProvisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16287,22 +15834,23 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .base__ - .EndProvisionFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndProvisionFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginUpgradeFabric<'a, P0>( + pub unsafe fn BeginUpgradeFabric( &self, upgradedescription: *const super::super::FABRIC_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16311,19 +15859,19 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginUpgradeFabric)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(upgradedescription), + ::windows_core::Interface::as_raw(self), + upgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16331,21 +15879,22 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .base__ - .EndUpgradeFabric)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndUpgradeFabric)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn BeginGetFabricUpgradeProgress( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16354,22 +15903,22 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetFabricUpgradeProgress<'a, P0>( + pub unsafe fn EndGetFabricUpgradeProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16378,26 +15927,24 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .EndGetFabricUpgradeProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveNextFabricUpgradeDomain<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain( &self, progress: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult2>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16406,22 +15953,22 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - progress.into().abi(), + ::windows_core::Interface::as_raw(self), + progress.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16430,25 +15977,23 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .EndMoveNextFabricUpgradeDomain)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginMoveNextFabricUpgradeDomain2<'a, P0, P1>( + pub unsafe fn BeginMoveNextFabricUpgradeDomain2( &self, nextupgradedomain: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16457,22 +16002,22 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - nextupgradedomain.into(), + ::windows_core::Interface::as_raw(self), + nextupgradedomain.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveNextFabricUpgradeDomain2<'a, P0>( + pub unsafe fn EndMoveNextFabricUpgradeDomain2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16481,27 +16026,25 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .EndMoveNextFabricUpgradeDomain2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUnprovisionFabric<'a, P0, P1, P2>( + pub unsafe fn BeginUnprovisionFabric( &self, codeversion: P0, configversion: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16510,20 +16053,20 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), - codeversion.into(), - configversion.into(), + ::windows_core::Interface::as_raw(self), + codeversion.into_param().abi(), + configversion.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnprovisionFabric<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUnprovisionFabric(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16532,22 +16075,21 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .EndUnprovisionFabric)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterManifest<'a, P0>( + pub unsafe fn BeginGetClusterManifest( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16556,22 +16098,22 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterManifest<'a, P0>( + pub unsafe fn EndGetClusterManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16580,25 +16122,23 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .EndGetClusterManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRecoverPartition<'a, P0>( + pub unsafe fn BeginRecoverPartition( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16607,19 +16147,19 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginRecoverPartition)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverPartition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverPartition(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16628,23 +16168,22 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .EndRecoverPartition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverServicePartitions<'a, P0>( + pub unsafe fn BeginRecoverServicePartitions( &self, servicename: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16653,22 +16192,19 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), + ::windows_core::Interface::as_raw(self), + servicename, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverServicePartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverServicePartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16677,23 +16213,21 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .EndRecoverServicePartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRecoverSystemPartitions<'a, P0>( + pub unsafe fn BeginRecoverSystemPartitions( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16702,21 +16236,18 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRecoverSystemPartitions<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRecoverSystemPartitions(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16725,24 +16256,22 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .EndRecoverSystemPartitions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateFabricUpgrade<'a, P0>( + pub unsafe fn BeginUpdateFabricUpgrade( &self, description: *const super::super::FABRIC_UPGRADE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16750,19 +16279,19 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateFabricUpgrade<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16770,23 +16299,22 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .EndUpdateFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStopNode<'a, P0>( + pub unsafe fn BeginStopNode( &self, stopnodedescription: *const super::super::FABRIC_STOP_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16794,41 +16322,42 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(stopnodedescription), + ::windows_core::Interface::as_raw(self), + stopnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStopNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStopNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .base__ - .EndStopNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRestartNode<'a, P0>( + pub unsafe fn BeginRestartNode( &self, restartnodedescription: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16836,41 +16365,42 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartnodedescription), + ::windows_core::Interface::as_raw(self), + restartnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .base__ - .EndRestartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginStartNode<'a, P0>( + pub unsafe fn BeginStartNode( &self, startnodedescription: *const super::super::FABRIC_START_NODE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16878,44 +16408,47 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startnodedescription), + ::windows_core::Interface::as_raw(self), + startnodedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartNode<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartNode(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .base__ - .EndStartNode)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn CopyClusterPackage<'a, P0, P1, P2, P3, P4>( + pub unsafe fn CopyClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpath: P1, clustermanifestpathinimagestore: P2, codepackagepath: P3, codepackagepathinimagestore: P4, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into<::windows::core::PCWSTR>, - P4: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P4: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16923,27 +16456,27 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .CopyClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpath.into(), - clustermanifestpathinimagestore.into(), - codepackagepath.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpath.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepath.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn RemoveClusterPackage<'a, P0, P1, P2>( + pub unsafe fn RemoveClusterPackage( &self, imagestoreconnectionstring: P0, clustermanifestpathinimagestore: P1, codepackagepathinimagestore: P2, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -16951,445 +16484,423 @@ impl IFabricClusterManagementClient9 { .base__ .base__ .RemoveClusterPackage)( - ::windows::core::Vtable::as_raw(self), - imagestoreconnectionstring.into(), - clustermanifestpathinimagestore.into(), - codepackagepathinimagestore.into(), + ::windows_core::Interface::as_raw(self), + imagestoreconnectionstring.into_param().abi(), + clustermanifestpathinimagestore.into_param().abi(), + codepackagepathinimagestore.into_param().abi(), ) .ok() } - pub unsafe fn BeginRollbackFabricUpgrade<'a, P0>( + pub unsafe fn BeginRollbackFabricUpgrade( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRollbackFabricUpgrade<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndRollbackFabricUpgrade(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndRollbackFabricUpgrade)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginResetPartitionLoad<'a, P0>( + pub unsafe fn BeginResetPartitionLoad( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndResetPartitionLoad<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndResetPartitionLoad(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndResetPartitionLoad)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting( &self, enabled: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - enabled.into(), + ::windows_core::Interface::as_raw(self), + enabled.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndToggleVerboseServicePlacementHealthReporting<'a, P0>( + pub unsafe fn EndToggleVerboseServicePlacementHealthReporting( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndToggleVerboseServicePlacementHealthReporting)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpgradeConfiguration<'a, P0>( + pub unsafe fn BeginUpgradeConfiguration( &self, startupgradedescription: *const super::super::FABRIC_START_UPGRADE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(startupgradedescription), + ::windows_core::Interface::as_raw(self), + startupgradedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpgradeConfiguration<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpgradeConfiguration(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndUpgradeConfiguration)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterConfigurationUpgradeStatus<'a, P0>( + pub unsafe fn BeginGetClusterConfigurationUpgradeStatus( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterConfigurationUpgradeStatus<'a, P0>( + pub unsafe fn EndGetClusterConfigurationUpgradeStatus( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetClusterConfigurationUpgradeStatus)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterConfiguration<'a, P0>( + pub unsafe fn BeginGetClusterConfiguration( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterConfiguration<'a, P0>( + pub unsafe fn EndGetClusterConfiguration( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetClusterConfiguration)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetUpgradesPendingApproval<'a, P0>( + pub unsafe fn BeginGetUpgradesPendingApproval( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetUpgradesPendingApproval<'a, P0>( + pub unsafe fn EndGetUpgradesPendingApproval( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetUpgradesPendingApproval)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStartApprovedUpgrades<'a, P0>( + pub unsafe fn BeginStartApprovedUpgrades( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartApprovedUpgrades<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartApprovedUpgrades(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndStartApprovedUpgrades)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetClusterManifest2<'a, P0>( + pub unsafe fn BeginGetClusterManifest2( &self, querydescription: *const super::super::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetClusterManifest2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterManifest2<'a, P0>( + pub unsafe fn EndGetClusterManifest2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetClusterManifest2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetUpgradeOrchestrationServiceState<'a, P0>( + pub unsafe fn BeginGetUpgradeOrchestrationServiceState( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetUpgradeOrchestrationServiceState)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetUpgradeOrchestrationServiceState<'a, P0>( + pub unsafe fn EndGetUpgradeOrchestrationServiceState( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetUpgradeOrchestrationServiceState)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginSetUpgradeOrchestrationServiceState<'a, P0, P1>( + pub unsafe fn BeginSetUpgradeOrchestrationServiceState( &self, state: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginSetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - state.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginSetUpgradeOrchestrationServiceState)( + ::windows_core::Interface::as_raw(self), + state.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndSetUpgradeOrchestrationServiceState<'a, P0>( + pub unsafe fn EndSetUpgradeOrchestrationServiceState( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndSetUpgradeOrchestrationServiceState)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndSetUpgradeOrchestrationServiceState)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricClusterManagementClient9, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricClusterManagementClient, IFabricClusterManagementClient2, IFabricClusterManagementClient3, @@ -17399,11 +16910,6 @@ impl IFabricClusterManagementClient9 { IFabricClusterManagementClient7, IFabricClusterManagementClient8 ); -impl ::core::clone::Clone for IFabricClusterManagementClient9 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricClusterManagementClient9 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -17417,12 +16923,17 @@ impl ::core::fmt::Debug for IFabricClusterManagementClient9 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricClusterManagementClient9 { +unsafe impl ::windows_core::Interface for IFabricClusterManagementClient9 { type Vtable = IFabricClusterManagementClient9_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricClusterManagementClient9 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc0f57578_538c_4cbe_bb55_8098b6a7cd4e); +impl ::core::clone::Clone for IFabricClusterManagementClient9 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricClusterManagementClient9 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc0f57578_538c_4cbe_bb55_8098b6a7cd4e); } #[repr(C)] #[doc(hidden)] @@ -17434,48 +16945,46 @@ pub struct IFabricClusterManagementClient9_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetUpgradeOrchestrationServiceState: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginSetUpgradeOrchestrationServiceState: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - state: ::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, + ) -> ::windows_core::HRESULT, pub EndSetUpgradeOrchestrationServiceState: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricDeployedApplicationHealthResult(::windows::core::IUnknown); +pub struct IFabricDeployedApplicationHealthResult(::windows_core::IUnknown); impl IFabricDeployedApplicationHealthResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_DeployedApplicationHealth( &self, ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH { - (::windows::core::Vtable::vtable(self).get_DeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_DeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricDeployedApplicationHealthResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricDeployedApplicationHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricDeployedApplicationHealthResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -17489,42 +16998,48 @@ impl ::core::fmt::Debug for IFabricDeployedApplicationHealthResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricDeployedApplicationHealthResult { +unsafe impl ::windows_core::Interface for IFabricDeployedApplicationHealthResult { type Vtable = IFabricDeployedApplicationHealthResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricDeployedApplicationHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4df50bf4_7c28_4210_94f7_50625df6c942); +impl ::core::clone::Clone for IFabricDeployedApplicationHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricDeployedApplicationHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4df50bf4_7c28_4210_94f7_50625df6c942); } #[repr(C)] #[doc(hidden)] pub struct IFabricDeployedApplicationHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_DeployedApplicationHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH, + #[cfg(not(feature = "Win32_Foundation"))] + get_DeployedApplicationHealth: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricDeployedServicePackageHealthResult(::windows::core::IUnknown); +pub struct IFabricDeployedServicePackageHealthResult(::windows_core::IUnknown); impl IFabricDeployedServicePackageHealthResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_DeployedServicePackageHealth( &self, ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { - (::windows::core::Vtable::vtable(self).get_DeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_DeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricDeployedServicePackageHealthResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricDeployedServicePackageHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricDeployedServicePackageHealthResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -17538,249 +17053,241 @@ impl ::core::fmt::Debug for IFabricDeployedServicePackageHealthResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricDeployedServicePackageHealthResult { +unsafe impl ::windows_core::Interface for IFabricDeployedServicePackageHealthResult { type Vtable = IFabricDeployedServicePackageHealthResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricDeployedServicePackageHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x40991ce0_cdbb_44e9_9cdc_b14a5d5ea4c1); +impl ::core::clone::Clone for IFabricDeployedServicePackageHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricDeployedServicePackageHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x40991ce0_cdbb_44e9_9cdc_b14a5d5ea4c1); } #[repr(C)] #[doc(hidden)] pub struct IFabricDeployedServicePackageHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_DeployedServicePackageHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH, + #[cfg(not(feature = "Win32_Foundation"))] + get_DeployedServicePackageHealth: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricFaultManagementClient(::windows::core::IUnknown); +pub struct IFabricFaultManagementClient(::windows_core::IUnknown); impl IFabricFaultManagementClient { - pub unsafe fn BeginRestartNode<'a, P0>( + pub unsafe fn BeginRestartNode( &self, description: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION2, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestartNode)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartNode<'a, P0>( + pub unsafe fn EndRestartNode( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndRestartNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndRestartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginStartNode<'a, P0>( + pub unsafe fn BeginStartNode( &self, description: *const super::super::FABRIC_START_NODE_DESCRIPTION2, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartNode)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartNode<'a, P0>( + pub unsafe fn EndStartNode( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndStartNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndStartNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginStopNode<'a, P0>( + pub unsafe fn BeginStopNode( &self, description: *const super::super::FABRIC_STOP_NODE_DESCRIPTION2, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStopNode)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStopNode)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStopNode<'a, P0>( + pub unsafe fn EndStopNode( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndStopNode)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndStopNode)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRestartDeployedCodePackage<'a, P0>( + pub unsafe fn BeginRestartDeployedCodePackage( &self, description: *const super::super::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartDeployedCodePackage<'a, P0>( + pub unsafe fn EndRestartDeployedCodePackage( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndRestartDeployedCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndRestartDeployedCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMovePrimary<'a, P0>( + pub unsafe fn BeginMovePrimary( &self, description: *const super::super::FABRIC_MOVE_PRIMARY_DESCRIPTION2, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginMovePrimary)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginMovePrimary)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMovePrimary<'a, P0>( + pub unsafe fn EndMovePrimary( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndMovePrimary)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndMovePrimary)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginMoveSecondary<'a, P0>( + pub unsafe fn BeginMoveSecondary( &self, description: *const super::super::FABRIC_MOVE_SECONDARY_DESCRIPTION2, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginMoveSecondary)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginMoveSecondary)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndMoveSecondary<'a, P0>( + pub unsafe fn EndMoveSecondary( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndMoveSecondary)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndMoveSecondary)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricFaultManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricFaultManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricFaultManagementClient, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricFaultManagementClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -17794,105 +17301,109 @@ impl ::core::fmt::Debug for IFabricFaultManagementClient { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricFaultManagementClient { +unsafe impl ::windows_core::Interface for IFabricFaultManagementClient { type Vtable = IFabricFaultManagementClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricFaultManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x769e1838_8726_4dcd_a3c0_211673a6967a); +impl ::core::clone::Clone for IFabricFaultManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricFaultManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x769e1838_8726_4dcd_a3c0_211673a6967a); } #[repr(C)] #[doc(hidden)] pub struct IFabricFaultManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginRestartNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, description: *const super::super::FABRIC_RESTART_NODE_DESCRIPTION2, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRestartNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginStartNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, description: *const super::super::FABRIC_START_NODE_DESCRIPTION2, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndStartNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginStopNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, description: *const super::super::FABRIC_STOP_NODE_DESCRIPTION2, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndStopNode: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginRestartDeployedCodePackage: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, description: *const super::super::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRestartDeployedCodePackage: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginMovePrimary: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, description: *const super::super::FABRIC_MOVE_PRIMARY_DESCRIPTION2, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndMovePrimary: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginMoveSecondary: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, description: *const super::super::FABRIC_MOVE_SECONDARY_DESCRIPTION2, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndMoveSecondary: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGatewayInformationResult(::windows::core::IUnknown); +pub struct IFabricGatewayInformationResult(::windows_core::IUnknown); impl IFabricGatewayInformationResult { pub unsafe fn get_GatewayInformation(&self) -> *mut super::super::FABRIC_GATEWAY_INFORMATION { - (::windows::core::Vtable::vtable(self).get_GatewayInformation)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_GatewayInformation)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricGatewayInformationResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGatewayInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricGatewayInformationResult, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricGatewayInformationResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -17906,39 +17417,43 @@ impl ::core::fmt::Debug for IFabricGatewayInformationResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGatewayInformationResult { +unsafe impl ::windows_core::Interface for IFabricGatewayInformationResult { type Vtable = IFabricGatewayInformationResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGatewayInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa57e7740_fa33_448e_9f35_8bf802a713aa); +impl ::core::clone::Clone for IFabricGatewayInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGatewayInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa57e7740_fa33_448e_9f35_8bf802a713aa); } #[repr(C)] #[doc(hidden)] pub struct IFabricGatewayInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_GatewayInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_GATEWAY_INFORMATION, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetApplicationListResult(::windows::core::IUnknown); +pub struct IFabricGetApplicationListResult(::windows_core::IUnknown); impl IFabricGetApplicationListResult { pub unsafe fn get_ApplicationList( &self, ) -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ApplicationList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ApplicationList)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricGetApplicationListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetApplicationListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricGetApplicationListResult, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricGetApplicationListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -17952,49 +17467,50 @@ impl ::core::fmt::Debug for IFabricGetApplicationListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetApplicationListResult { +unsafe impl ::windows_core::Interface for IFabricGetApplicationListResult { type Vtable = IFabricGetApplicationListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetApplicationListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf038c61e_7059_41b6_8dea_d304a2080f46); +impl ::core::clone::Clone for IFabricGetApplicationListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetApplicationListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf038c61e_7059_41b6_8dea_d304a2080f46); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetApplicationListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ApplicationList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetApplicationListResult2(::windows::core::IUnknown); +pub struct IFabricGetApplicationListResult2(::windows_core::IUnknown); impl IFabricGetApplicationListResult2 { pub unsafe fn get_ApplicationList( &self, ) -> *mut super::super::FABRIC_APPLICATION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_ApplicationList)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationList)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetApplicationListResult2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricGetApplicationListResult ); -impl ::core::clone::Clone for IFabricGetApplicationListResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetApplicationListResult2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18008,12 +17524,17 @@ impl ::core::fmt::Debug for IFabricGetApplicationListResult2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetApplicationListResult2 { +unsafe impl ::windows_core::Interface for IFabricGetApplicationListResult2 { type Vtable = IFabricGetApplicationListResult2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetApplicationListResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6637a860_26bc_4f1a_902f_f418fcfe1e51); +impl ::core::clone::Clone for IFabricGetApplicationListResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetApplicationListResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6637a860_26bc_4f1a_902f_f418fcfe1e51); } #[repr(C)] #[doc(hidden)] @@ -18023,26 +17544,22 @@ pub struct IFabricGetApplicationListResult2_Vtbl { this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PAGING_STATUS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetApplicationLoadInformationResult(::windows::core::IUnknown); +pub struct IFabricGetApplicationLoadInformationResult(::windows_core::IUnknown); impl IFabricGetApplicationLoadInformationResult { pub unsafe fn get_ApplicationLoadInformation( &self, ) -> *mut super::super::FABRIC_APPLICATION_LOAD_INFORMATION { - (::windows::core::Vtable::vtable(self).get_ApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ApplicationLoadInformation)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetApplicationLoadInformationResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetApplicationLoadInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetApplicationLoadInformationResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18056,40 +17573,44 @@ impl ::core::fmt::Debug for IFabricGetApplicationLoadInformationResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetApplicationLoadInformationResult { +unsafe impl ::windows_core::Interface for IFabricGetApplicationLoadInformationResult { type Vtable = IFabricGetApplicationLoadInformationResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetApplicationLoadInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x38fd0512_7586_4bd5_9616_b7070cf025c0); +impl ::core::clone::Clone for IFabricGetApplicationLoadInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetApplicationLoadInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x38fd0512_7586_4bd5_9616_b7070cf025c0); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetApplicationLoadInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ApplicationLoadInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_APPLICATION_LOAD_INFORMATION, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetApplicationNameResult(::windows::core::IUnknown); +pub struct IFabricGetApplicationNameResult(::windows_core::IUnknown); impl IFabricGetApplicationNameResult { pub unsafe fn get_ApplicationName( &self, ) -> *mut super::super::FABRIC_APPLICATION_NAME_QUERY_RESULT { - (::windows::core::Vtable::vtable(self).get_ApplicationName)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ApplicationName)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricGetApplicationNameResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetApplicationNameResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricGetApplicationNameResult, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricGetApplicationNameResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18103,48 +17624,49 @@ impl ::core::fmt::Debug for IFabricGetApplicationNameResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetApplicationNameResult { +unsafe impl ::windows_core::Interface for IFabricGetApplicationNameResult { type Vtable = IFabricGetApplicationNameResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetApplicationNameResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x258dbcc8_ac9a_47ff_838b_57ff506c73b1); +impl ::core::clone::Clone for IFabricGetApplicationNameResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetApplicationNameResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x258dbcc8_ac9a_47ff_838b_57ff506c73b1); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetApplicationNameResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ApplicationName: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_APPLICATION_NAME_QUERY_RESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetApplicationNetworkListResult(::windows::core::IUnknown); +pub struct IFabricGetApplicationNetworkListResult(::windows_core::IUnknown); impl IFabricGetApplicationNetworkListResult { pub unsafe fn get_ApplicationNetworkList( &self, ) -> *mut super::super::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ApplicationNetworkList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ApplicationNetworkList)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetApplicationNetworkListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetApplicationNetworkListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetApplicationNetworkListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18158,36 +17680,37 @@ impl ::core::fmt::Debug for IFabricGetApplicationNetworkListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetApplicationNetworkListResult { +unsafe impl ::windows_core::Interface for IFabricGetApplicationNetworkListResult { type Vtable = IFabricGetApplicationNetworkListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetApplicationNetworkListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4f9d0390_aa08_4dee_ba49_62891eb47c37); +impl ::core::clone::Clone for IFabricGetApplicationNetworkListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetApplicationNetworkListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4f9d0390_aa08_4dee_ba49_62891eb47c37); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetApplicationNetworkListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_ApplicationNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } +pub struct IFabricGetApplicationNetworkListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ApplicationNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetApplicationTypeListResult(::windows::core::IUnknown); +pub struct IFabricGetApplicationTypeListResult(::windows_core::IUnknown); impl IFabricGetApplicationTypeListResult { pub unsafe fn get_ApplicationTypeList( &self, ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ApplicationTypeList)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetApplicationTypeListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetApplicationTypeListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetApplicationTypeListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18201,48 +17724,49 @@ impl ::core::fmt::Debug for IFabricGetApplicationTypeListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetApplicationTypeListResult { +unsafe impl ::windows_core::Interface for IFabricGetApplicationTypeListResult { type Vtable = IFabricGetApplicationTypeListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetApplicationTypeListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x944f7a70_224e_4191_8dd1_bba46dc88dd2); +impl ::core::clone::Clone for IFabricGetApplicationTypeListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetApplicationTypeListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x944f7a70_224e_4191_8dd1_bba46dc88dd2); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetApplicationTypeListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ApplicationTypeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetApplicationTypePagedListResult(::windows::core::IUnknown); +pub struct IFabricGetApplicationTypePagedListResult(::windows_core::IUnknown); impl IFabricGetApplicationTypePagedListResult { pub unsafe fn get_ApplicationTypePagedList( &self, ) -> *mut super::super::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ApplicationTypePagedList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ApplicationTypePagedList)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetApplicationTypePagedListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetApplicationTypePagedListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetApplicationTypePagedListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18256,17 +17780,22 @@ impl ::core::fmt::Debug for IFabricGetApplicationTypePagedListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetApplicationTypePagedListResult { +unsafe impl ::windows_core::Interface for IFabricGetApplicationTypePagedListResult { type Vtable = IFabricGetApplicationTypePagedListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetApplicationTypePagedListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x5d8dde9c_05e8_428d_b494_43873d7c2db8); +impl ::core::clone::Clone for IFabricGetApplicationTypePagedListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetApplicationTypePagedListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x5d8dde9c_05e8_428d_b494_43873d7c2db8); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetApplicationTypePagedListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ApplicationTypePagedList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, @@ -18276,24 +17805,20 @@ pub struct IFabricGetApplicationTypePagedListResult_Vtbl { this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PAGING_STATUS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetClusterHealthChunkResult(::windows::core::IUnknown); +pub struct IFabricGetClusterHealthChunkResult(::windows_core::IUnknown); impl IFabricGetClusterHealthChunkResult { pub unsafe fn get_ClusterHealthChunk(&self) -> *mut super::super::FABRIC_CLUSTER_HEALTH_CHUNK { - (::windows::core::Vtable::vtable(self).get_ClusterHealthChunk)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ClusterHealthChunk)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetClusterHealthChunkResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetClusterHealthChunkResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetClusterHealthChunkResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18307,42 +17832,45 @@ impl ::core::fmt::Debug for IFabricGetClusterHealthChunkResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetClusterHealthChunkResult { +unsafe impl ::windows_core::Interface for IFabricGetClusterHealthChunkResult { type Vtable = IFabricGetClusterHealthChunkResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetClusterHealthChunkResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x7fefcf06_c840_4d8a_9cc7_36f080e0e121); +impl ::core::clone::Clone for IFabricGetClusterHealthChunkResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetClusterHealthChunkResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x7fefcf06_c840_4d8a_9cc7_36f080e0e121); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetClusterHealthChunkResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ClusterHealthChunk: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_CLUSTER_HEALTH_CHUNK, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetClusterLoadInformationResult(::windows::core::IUnknown); +pub struct IFabricGetClusterLoadInformationResult(::windows_core::IUnknown); impl IFabricGetClusterLoadInformationResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ClusterLoadInformation( &self, ) -> *mut super::super::FABRIC_CLUSTER_LOAD_INFORMATION { - (::windows::core::Vtable::vtable(self).get_ClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetClusterLoadInformationResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetClusterLoadInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetClusterLoadInformationResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18356,42 +17884,46 @@ impl ::core::fmt::Debug for IFabricGetClusterLoadInformationResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetClusterLoadInformationResult { +unsafe impl ::windows_core::Interface for IFabricGetClusterLoadInformationResult { type Vtable = IFabricGetClusterLoadInformationResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetClusterLoadInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x7cc3eb08_0e69_4e52_81fc_0190ab997dbf); +impl ::core::clone::Clone for IFabricGetClusterLoadInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetClusterLoadInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x7cc3eb08_0e69_4e52_81fc_0190ab997dbf); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetClusterLoadInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_ClusterLoadInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_CLUSTER_LOAD_INFORMATION, + #[cfg(not(feature = "Win32_Foundation"))] + get_ClusterLoadInformation: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetDeployedApplicationListResult(::windows::core::IUnknown); +pub struct IFabricGetDeployedApplicationListResult(::windows_core::IUnknown); impl IFabricGetDeployedApplicationListResult { pub unsafe fn get_DeployedApplicationList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_DeployedApplicationList)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetDeployedApplicationListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetDeployedApplicationListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetDeployedApplicationListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18405,41 +17937,42 @@ impl ::core::fmt::Debug for IFabricGetDeployedApplicationListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetDeployedApplicationListResult { +unsafe impl ::windows_core::Interface for IFabricGetDeployedApplicationListResult { type Vtable = IFabricGetDeployedApplicationListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetDeployedApplicationListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x5722b789_3936_4c33_9f7a_342967457612); +impl ::core::clone::Clone for IFabricGetDeployedApplicationListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetDeployedApplicationListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x5722b789_3936_4c33_9f7a_342967457612); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetDeployedApplicationListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , } +pub struct IFabricGetDeployedApplicationListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetDeployedApplicationPagedListResult(::windows::core::IUnknown); +pub struct IFabricGetDeployedApplicationPagedListResult(::windows_core::IUnknown); impl IFabricGetDeployedApplicationPagedListResult { pub unsafe fn get_DeployedApplicationPagedList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedApplicationPagedList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_DeployedApplicationPagedList)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetDeployedApplicationPagedListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetDeployedApplicationPagedListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetDeployedApplicationPagedListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18453,36 +17986,39 @@ impl ::core::fmt::Debug for IFabricGetDeployedApplicationPagedListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetDeployedApplicationPagedListResult { +unsafe impl ::windows_core::Interface for IFabricGetDeployedApplicationPagedListResult { type Vtable = IFabricGetDeployedApplicationPagedListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetDeployedApplicationPagedListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xebd76f6f_508e_43ea_9ca2_a98ea2c0e846); +impl ::core::clone::Clone for IFabricGetDeployedApplicationPagedListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetDeployedApplicationPagedListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xebd76f6f_508e_43ea_9ca2_a98ea2c0e846); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetDeployedApplicationPagedListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedApplicationPagedList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } +pub struct IFabricGetDeployedApplicationPagedListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedApplicationPagedList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetDeployedCodePackageListResult(::windows::core::IUnknown); +pub struct IFabricGetDeployedCodePackageListResult(::windows_core::IUnknown); impl IFabricGetDeployedCodePackageListResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_DeployedCodePackageList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_DeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetDeployedCodePackageListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetDeployedCodePackageListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetDeployedCodePackageListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18496,41 +18032,42 @@ impl ::core::fmt::Debug for IFabricGetDeployedCodePackageListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetDeployedCodePackageListResult { +unsafe impl ::windows_core::Interface for IFabricGetDeployedCodePackageListResult { type Vtable = IFabricGetDeployedCodePackageListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetDeployedCodePackageListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3f390652_c0dc_4919_8a7f_8ae1e827de0c); +impl ::core::clone::Clone for IFabricGetDeployedCodePackageListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetDeployedCodePackageListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3f390652_c0dc_4919_8a7f_8ae1e827de0c); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetDeployedCodePackageListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST , } +pub struct IFabricGetDeployedCodePackageListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , # [ cfg ( feature = "Win32_Foundation" ) ] pub get_DeployedCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST , # [ cfg ( not ( feature = "Win32_Foundation" ) ) ] get_DeployedCodePackageList :usize , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetDeployedNetworkCodePackageListResult(::windows::core::IUnknown); +pub struct IFabricGetDeployedNetworkCodePackageListResult(::windows_core::IUnknown); impl IFabricGetDeployedNetworkCodePackageListResult { pub unsafe fn get_DeployedNetworkCodePackageList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedNetworkCodePackageList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_DeployedNetworkCodePackageList)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetDeployedNetworkCodePackageListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetDeployedNetworkCodePackageListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetDeployedNetworkCodePackageListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18544,41 +18081,42 @@ impl ::core::fmt::Debug for IFabricGetDeployedNetworkCodePackageListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetDeployedNetworkCodePackageListResult { +unsafe impl ::windows_core::Interface for IFabricGetDeployedNetworkCodePackageListResult { type Vtable = IFabricGetDeployedNetworkCodePackageListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetDeployedNetworkCodePackageListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6586d264_a96e_4f46_9388_189de5d61d6d); +impl ::core::clone::Clone for IFabricGetDeployedNetworkCodePackageListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetDeployedNetworkCodePackageListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6586d264_a96e_4f46_9388_189de5d61d6d); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetDeployedNetworkCodePackageListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedNetworkCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } +pub struct IFabricGetDeployedNetworkCodePackageListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedNetworkCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetDeployedNetworkListResult(::windows::core::IUnknown); +pub struct IFabricGetDeployedNetworkListResult(::windows_core::IUnknown); impl IFabricGetDeployedNetworkListResult { pub unsafe fn get_DeployedNetworkList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedNetworkList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_DeployedNetworkList)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetDeployedNetworkListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetDeployedNetworkListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetDeployedNetworkListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18592,17 +18130,22 @@ impl ::core::fmt::Debug for IFabricGetDeployedNetworkListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetDeployedNetworkListResult { +unsafe impl ::windows_core::Interface for IFabricGetDeployedNetworkListResult { type Vtable = IFabricGetDeployedNetworkListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetDeployedNetworkListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x347f5d8c_1abd_48e1_a7d1_9083556dafd3); +impl ::core::clone::Clone for IFabricGetDeployedNetworkListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetDeployedNetworkListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x347f5d8c_1abd_48e1_a7d1_9083556dafd3); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetDeployedNetworkListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_DeployedNetworkList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, @@ -18612,26 +18155,22 @@ pub struct IFabricGetDeployedNetworkListResult_Vtbl { this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PAGING_STATUS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetDeployedReplicaListResult(::windows::core::IUnknown); +pub struct IFabricGetDeployedReplicaListResult(::windows_core::IUnknown); impl IFabricGetDeployedReplicaListResult { pub unsafe fn get_DeployedReplicaList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_DeployedReplicaList)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetDeployedReplicaListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetDeployedReplicaListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetDeployedReplicaListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18645,36 +18184,37 @@ impl ::core::fmt::Debug for IFabricGetDeployedReplicaListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetDeployedReplicaListResult { +unsafe impl ::windows_core::Interface for IFabricGetDeployedReplicaListResult { type Vtable = IFabricGetDeployedReplicaListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetDeployedReplicaListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x29e064bf_5d78_49e5_baa6_acfc24a4a8b5); +impl ::core::clone::Clone for IFabricGetDeployedReplicaListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetDeployedReplicaListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x29e064bf_5d78_49e5_baa6_acfc24a4a8b5); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetDeployedReplicaListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedReplicaList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST , } +pub struct IFabricGetDeployedReplicaListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedReplicaList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetDeployedServicePackageListResult(::windows::core::IUnknown); +pub struct IFabricGetDeployedServicePackageListResult(::windows_core::IUnknown); impl IFabricGetDeployedServicePackageListResult { pub unsafe fn get_DeployedServicePackageList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_DeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetDeployedServicePackageListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetDeployedServicePackageListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetDeployedServicePackageListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18688,36 +18228,37 @@ impl ::core::fmt::Debug for IFabricGetDeployedServicePackageListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetDeployedServicePackageListResult { +unsafe impl ::windows_core::Interface for IFabricGetDeployedServicePackageListResult { type Vtable = IFabricGetDeployedServicePackageListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetDeployedServicePackageListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x65851388_0421_4107_977b_39f4e15440d4); +impl ::core::clone::Clone for IFabricGetDeployedServicePackageListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetDeployedServicePackageListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x65851388_0421_4107_977b_39f4e15440d4); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetDeployedServicePackageListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedServicePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST , } +pub struct IFabricGetDeployedServicePackageListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedServicePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetDeployedServiceReplicaDetailResult(::windows::core::IUnknown); +pub struct IFabricGetDeployedServiceReplicaDetailResult(::windows_core::IUnknown); impl IFabricGetDeployedServiceReplicaDetailResult { pub unsafe fn get_ReplicaDetail( &self, ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - (::windows::core::Vtable::vtable(self).get_ReplicaDetail)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_ReplicaDetail)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetDeployedServiceReplicaDetailResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetDeployedServiceReplicaDetailResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetDeployedServiceReplicaDetailResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18731,36 +18272,37 @@ impl ::core::fmt::Debug for IFabricGetDeployedServiceReplicaDetailResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetDeployedServiceReplicaDetailResult { +unsafe impl ::windows_core::Interface for IFabricGetDeployedServiceReplicaDetailResult { type Vtable = IFabricGetDeployedServiceReplicaDetailResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetDeployedServiceReplicaDetailResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6d9d355e_89cf_4928_b758_b11ca4664fbe); +impl ::core::clone::Clone for IFabricGetDeployedServiceReplicaDetailResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetDeployedServiceReplicaDetailResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6d9d355e_89cf_4928_b758_b11ca4664fbe); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetDeployedServiceReplicaDetailResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_ReplicaDetail :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM , } +pub struct IFabricGetDeployedServiceReplicaDetailResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ReplicaDetail :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetDeployedServiceTypeListResult(::windows::core::IUnknown); +pub struct IFabricGetDeployedServiceTypeListResult(::windows_core::IUnknown); impl IFabricGetDeployedServiceTypeListResult { pub unsafe fn get_DeployedServiceTypeList( &self, ) -> *mut super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_DeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_DeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetDeployedServiceTypeListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetDeployedServiceTypeListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetDeployedServiceTypeListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18774,41 +18316,42 @@ impl ::core::fmt::Debug for IFabricGetDeployedServiceTypeListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetDeployedServiceTypeListResult { +unsafe impl ::windows_core::Interface for IFabricGetDeployedServiceTypeListResult { type Vtable = IFabricGetDeployedServiceTypeListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetDeployedServiceTypeListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xdba68c7a_3f77_49bb_b611_ff94df062b8d); +impl ::core::clone::Clone for IFabricGetDeployedServiceTypeListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetDeployedServiceTypeListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xdba68c7a_3f77_49bb_b611_ff94df062b8d); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetDeployedServiceTypeListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_DeployedServiceTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST , } +pub struct IFabricGetDeployedServiceTypeListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_DeployedServiceTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetNetworkApplicationListResult(::windows::core::IUnknown); +pub struct IFabricGetNetworkApplicationListResult(::windows_core::IUnknown); impl IFabricGetNetworkApplicationListResult { pub unsafe fn get_NetworkApplicationList( &self, ) -> *mut super::super::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_NetworkApplicationList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_NetworkApplicationList)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetNetworkApplicationListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetNetworkApplicationListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetNetworkApplicationListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18822,36 +18365,37 @@ impl ::core::fmt::Debug for IFabricGetNetworkApplicationListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetNetworkApplicationListResult { +unsafe impl ::windows_core::Interface for IFabricGetNetworkApplicationListResult { type Vtable = IFabricGetNetworkApplicationListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetNetworkApplicationListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xad1f51ff_e244_498e_9f72_609b01124b84); +impl ::core::clone::Clone for IFabricGetNetworkApplicationListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetNetworkApplicationListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xad1f51ff_e244_498e_9f72_609b01124b84); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetNetworkApplicationListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_NetworkApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } +pub struct IFabricGetNetworkApplicationListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_NetworkApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST , pub get_PagingStatus :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PAGING_STATUS , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetNetworkListResult(::windows::core::IUnknown); +pub struct IFabricGetNetworkListResult(::windows_core::IUnknown); impl IFabricGetNetworkListResult { pub unsafe fn get_NetworkList(&self) -> *mut super::super::FABRIC_NETWORK_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_NetworkList)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_NetworkList)( + ::windows_core::Interface::as_raw(self), + ) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricGetNetworkListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetNetworkListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!(IFabricGetNetworkListResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricGetNetworkListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18865,17 +18409,22 @@ impl ::core::fmt::Debug for IFabricGetNetworkListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetNetworkListResult { +unsafe impl ::windows_core::Interface for IFabricGetNetworkListResult { type Vtable = IFabricGetNetworkListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetNetworkListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xbd777a0f_2020_40bb_8f23_8756649cce47); +impl ::core::clone::Clone for IFabricGetNetworkListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetNetworkListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xbd777a0f_2020_40bb_8f23_8756649cce47); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetNetworkListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_NetworkList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, @@ -18884,28 +18433,27 @@ pub struct IFabricGetNetworkListResult_Vtbl { this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PAGING_STATUS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetNetworkNodeListResult(::windows::core::IUnknown); +pub struct IFabricGetNetworkNodeListResult(::windows_core::IUnknown); impl IFabricGetNetworkNodeListResult { pub unsafe fn get_NetworkNodeList( &self, ) -> *mut super::super::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_NetworkNodeList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_NetworkNodeList)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricGetNetworkNodeListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetNetworkNodeListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!( + IFabricGetNetworkNodeListResult, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricGetNetworkNodeListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18919,17 +18467,22 @@ impl ::core::fmt::Debug for IFabricGetNetworkNodeListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetNetworkNodeListResult { +unsafe impl ::windows_core::Interface for IFabricGetNetworkNodeListResult { type Vtable = IFabricGetNetworkNodeListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetNetworkNodeListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3ba780e9_58eb_478d_bc89_42c89e19d083); +impl ::core::clone::Clone for IFabricGetNetworkNodeListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetNetworkNodeListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3ba780e9_58eb_478d_bc89_42c89e19d083); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetNetworkNodeListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_NetworkNodeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, @@ -18939,19 +18492,19 @@ pub struct IFabricGetNetworkNodeListResult_Vtbl { this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PAGING_STATUS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetNodeListResult(::windows::core::IUnknown); +pub struct IFabricGetNodeListResult(::windows_core::IUnknown); impl IFabricGetNodeListResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_NodeList(&self) -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_NodeList)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricGetNodeListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetNodeListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_NodeList)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!(IFabricGetNodeListResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricGetNodeListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -18965,46 +18518,52 @@ impl ::core::fmt::Debug for IFabricGetNodeListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetNodeListResult { +unsafe impl ::windows_core::Interface for IFabricGetNodeListResult { type Vtable = IFabricGetNodeListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetNodeListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x7cc3eb08_0e69_4e52_81fc_0190ab997dbe); +impl ::core::clone::Clone for IFabricGetNodeListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetNodeListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x7cc3eb08_0e69_4e52_81fc_0190ab997dbe); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetNodeListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_NodeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST, + #[cfg(not(feature = "Win32_Foundation"))] + get_NodeList: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetNodeListResult2(::windows::core::IUnknown); +pub struct IFabricGetNodeListResult2(::windows_core::IUnknown); impl IFabricGetNodeListResult2 { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_NodeList(&self) -> *mut super::super::FABRIC_NODE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).base__.get_NodeList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).base__.get_NodeList)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetNodeListResult2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricGetNodeListResult ); -impl ::core::clone::Clone for IFabricGetNodeListResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetNodeListResult2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19018,12 +18577,17 @@ impl ::core::fmt::Debug for IFabricGetNodeListResult2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetNodeListResult2 { +unsafe impl ::windows_core::Interface for IFabricGetNodeListResult2 { type Vtable = IFabricGetNodeListResult2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetNodeListResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4a0f2da7_f851_44e5_8e12_aa521076097a); +impl ::core::clone::Clone for IFabricGetNodeListResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetNodeListResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4a0f2da7_f851_44e5_8e12_aa521076097a); } #[repr(C)] #[doc(hidden)] @@ -19033,26 +18597,24 @@ pub struct IFabricGetNodeListResult2_Vtbl { this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PAGING_STATUS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetNodeLoadInformationResult(::windows::core::IUnknown); +pub struct IFabricGetNodeLoadInformationResult(::windows_core::IUnknown); impl IFabricGetNodeLoadInformationResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_NodeLoadInformation( &self, ) -> *mut super::super::FABRIC_NODE_LOAD_INFORMATION { - (::windows::core::Vtable::vtable(self).get_NodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_NodeLoadInformation)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetNodeLoadInformationResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetNodeLoadInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetNodeLoadInformationResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19066,39 +18628,43 @@ impl ::core::fmt::Debug for IFabricGetNodeLoadInformationResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetNodeLoadInformationResult { +unsafe impl ::windows_core::Interface for IFabricGetNodeLoadInformationResult { type Vtable = IFabricGetNodeLoadInformationResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetNodeLoadInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4332eb3a_aed6_86fe_c2fa_653123dea09b); +impl ::core::clone::Clone for IFabricGetNodeLoadInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetNodeLoadInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4332eb3a_aed6_86fe_c2fa_653123dea09b); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetNodeLoadInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_NodeLoadInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_NODE_LOAD_INFORMATION, + #[cfg(not(feature = "Win32_Foundation"))] + get_NodeLoadInformation: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetPartitionListResult(::windows::core::IUnknown); +pub struct IFabricGetPartitionListResult(::windows_core::IUnknown); impl IFabricGetPartitionListResult { pub unsafe fn get_PartitionList( &self, ) -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_PartitionList)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricGetPartitionListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetPartitionListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_PartitionList)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!(IFabricGetPartitionListResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricGetPartitionListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19112,49 +18678,50 @@ impl ::core::fmt::Debug for IFabricGetPartitionListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetPartitionListResult { +unsafe impl ::windows_core::Interface for IFabricGetPartitionListResult { type Vtable = IFabricGetPartitionListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetPartitionListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xafc1266c_967b_4769_9f8a_b249c5887ee6); +impl ::core::clone::Clone for IFabricGetPartitionListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetPartitionListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xafc1266c_967b_4769_9f8a_b249c5887ee6); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetPartitionListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_PartitionList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetPartitionListResult2(::windows::core::IUnknown); +pub struct IFabricGetPartitionListResult2(::windows_core::IUnknown); impl IFabricGetPartitionListResult2 { pub unsafe fn get_PartitionList( &self, ) -> *mut super::super::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_PartitionList)(::windows::core::Vtable::as_raw(self)) + .get_PartitionList)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetPartitionListResult2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricGetPartitionListResult ); -impl ::core::clone::Clone for IFabricGetPartitionListResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetPartitionListResult2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19168,12 +18735,17 @@ impl ::core::fmt::Debug for IFabricGetPartitionListResult2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetPartitionListResult2 { +unsafe impl ::windows_core::Interface for IFabricGetPartitionListResult2 { type Vtable = IFabricGetPartitionListResult2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetPartitionListResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb131b99a_d251_47b2_9d08_24ddd6793206); +impl ::core::clone::Clone for IFabricGetPartitionListResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetPartitionListResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb131b99a_d251_47b2_9d08_24ddd6793206); } #[repr(C)] #[doc(hidden)] @@ -19183,26 +18755,24 @@ pub struct IFabricGetPartitionListResult2_Vtbl { this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PAGING_STATUS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetPartitionLoadInformationResult(::windows::core::IUnknown); +pub struct IFabricGetPartitionLoadInformationResult(::windows_core::IUnknown); impl IFabricGetPartitionLoadInformationResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_PartitionLoadInformation( &self, ) -> *mut super::super::FABRIC_PARTITION_LOAD_INFORMATION { - (::windows::core::Vtable::vtable(self).get_PartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ) - } -} -::windows::core::interface_hierarchy!( - IFabricGetPartitionLoadInformationResult, - ::windows::core::IUnknown -); -impl ::core::clone::Clone for IFabricGetPartitionLoadInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_PartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!( + IFabricGetPartitionLoadInformationResult, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricGetPartitionLoadInformationResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19216,42 +18786,46 @@ impl ::core::fmt::Debug for IFabricGetPartitionLoadInformationResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetPartitionLoadInformationResult { +unsafe impl ::windows_core::Interface for IFabricGetPartitionLoadInformationResult { type Vtable = IFabricGetPartitionLoadInformationResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetPartitionLoadInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x46f1a40c_a4f3_409e_a7ec_6fd115f7acc7); +impl ::core::clone::Clone for IFabricGetPartitionLoadInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetPartitionLoadInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x46f1a40c_a4f3_409e_a7ec_6fd115f7acc7); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetPartitionLoadInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_PartitionLoadInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PARTITION_LOAD_INFORMATION, + #[cfg(not(feature = "Win32_Foundation"))] + get_PartitionLoadInformation: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetProvisionedCodeVersionListResult(::windows::core::IUnknown); +pub struct IFabricGetProvisionedCodeVersionListResult(::windows_core::IUnknown); impl IFabricGetProvisionedCodeVersionListResult { pub unsafe fn get_ProvisionedCodeVersionList( &self, ) -> *mut super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ProvisionedCodeVersionList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ProvisionedCodeVersionList)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetProvisionedCodeVersionListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetProvisionedCodeVersionListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetProvisionedCodeVersionListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19265,36 +18839,37 @@ impl ::core::fmt::Debug for IFabricGetProvisionedCodeVersionListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetProvisionedCodeVersionListResult { +unsafe impl ::windows_core::Interface for IFabricGetProvisionedCodeVersionListResult { type Vtable = IFabricGetProvisionedCodeVersionListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetProvisionedCodeVersionListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xd042bdb6_4364_4818_b395_0e6b1a22cb11); +impl ::core::clone::Clone for IFabricGetProvisionedCodeVersionListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetProvisionedCodeVersionListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xd042bdb6_4364_4818_b395_0e6b1a22cb11); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetProvisionedCodeVersionListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_ProvisionedCodeVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST , } +pub struct IFabricGetProvisionedCodeVersionListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ProvisionedCodeVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetProvisionedConfigVersionListResult(::windows::core::IUnknown); +pub struct IFabricGetProvisionedConfigVersionListResult(::windows_core::IUnknown); impl IFabricGetProvisionedConfigVersionListResult { pub unsafe fn get_ProvisionedConfigVersionList( &self, ) -> *mut super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ProvisionedConfigVersionList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ProvisionedConfigVersionList)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetProvisionedConfigVersionListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetProvisionedConfigVersionListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetProvisionedConfigVersionListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19308,29 +18883,32 @@ impl ::core::fmt::Debug for IFabricGetProvisionedConfigVersionListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetProvisionedConfigVersionListResult { +unsafe impl ::windows_core::Interface for IFabricGetProvisionedConfigVersionListResult { type Vtable = IFabricGetProvisionedConfigVersionListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetProvisionedConfigVersionListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x1bbb9f78_e883_49d1_a998_7eb864fd4a0e); +impl ::core::clone::Clone for IFabricGetProvisionedConfigVersionListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetProvisionedConfigVersionListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x1bbb9f78_e883_49d1_a998_7eb864fd4a0e); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetProvisionedConfigVersionListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_ProvisionedConfigVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST , } +pub struct IFabricGetProvisionedConfigVersionListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ProvisionedConfigVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetRepairTaskListResult(::windows::core::IUnknown); +pub struct IFabricGetRepairTaskListResult(::windows_core::IUnknown); impl IFabricGetRepairTaskListResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_Tasks(&self) -> *mut super::super::FABRIC_REPAIR_TASK_LIST { - (::windows::core::Vtable::vtable(self).get_Tasks)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricGetRepairTaskListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetRepairTaskListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_Tasks)(::windows_core::Interface::as_raw(self)) } } +::windows_core::imp::interface_hierarchy!(IFabricGetRepairTaskListResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricGetRepairTaskListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19344,38 +18922,42 @@ impl ::core::fmt::Debug for IFabricGetRepairTaskListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetRepairTaskListResult { +unsafe impl ::windows_core::Interface for IFabricGetRepairTaskListResult { type Vtable = IFabricGetRepairTaskListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetRepairTaskListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x576b2462_5f69_4351_87c7_3ec2d1654a22); +impl ::core::clone::Clone for IFabricGetRepairTaskListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetRepairTaskListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x576b2462_5f69_4351_87c7_3ec2d1654a22); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetRepairTaskListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_Tasks: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_REPAIR_TASK_LIST, + #[cfg(not(feature = "Win32_Foundation"))] + get_Tasks: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetReplicaListResult(::windows::core::IUnknown); +pub struct IFabricGetReplicaListResult(::windows_core::IUnknown); impl IFabricGetReplicaListResult { pub unsafe fn get_ReplicaList( &self, ) -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ReplicaList)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricGetReplicaListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetReplicaListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_ReplicaList)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!(IFabricGetReplicaListResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricGetReplicaListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19389,49 +18971,50 @@ impl ::core::fmt::Debug for IFabricGetReplicaListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetReplicaListResult { +unsafe impl ::windows_core::Interface for IFabricGetReplicaListResult { type Vtable = IFabricGetReplicaListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetReplicaListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xe00d3761_3ac5_407d_a04f_1b59486217cf); +impl ::core::clone::Clone for IFabricGetReplicaListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetReplicaListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xe00d3761_3ac5_407d_a04f_1b59486217cf); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetReplicaListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ReplicaList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetReplicaListResult2(::windows::core::IUnknown); +pub struct IFabricGetReplicaListResult2(::windows_core::IUnknown); impl IFabricGetReplicaListResult2 { pub unsafe fn get_ReplicaList( &self, ) -> *mut super::super::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).base__.get_ReplicaList)( - ::windows::core::Vtable::as_raw(self), - ) + (::windows_core::Interface::vtable(self) + .base__ + .get_ReplicaList)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetReplicaListResult2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricGetReplicaListResult ); -impl ::core::clone::Clone for IFabricGetReplicaListResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetReplicaListResult2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19445,12 +19028,17 @@ impl ::core::fmt::Debug for IFabricGetReplicaListResult2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetReplicaListResult2 { +unsafe impl ::windows_core::Interface for IFabricGetReplicaListResult2 { type Vtable = IFabricGetReplicaListResult2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetReplicaListResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0bc12f86_c157_4c0d_b274_01fb09145934); +impl ::core::clone::Clone for IFabricGetReplicaListResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetReplicaListResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0bc12f86_c157_4c0d_b274_01fb09145934); } #[repr(C)] #[doc(hidden)] @@ -19460,26 +19048,24 @@ pub struct IFabricGetReplicaListResult2_Vtbl { this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PAGING_STATUS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetReplicaLoadInformationResult(::windows::core::IUnknown); +pub struct IFabricGetReplicaLoadInformationResult(::windows_core::IUnknown); impl IFabricGetReplicaLoadInformationResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ReplicaLoadInformation( &self, ) -> *mut super::super::FABRIC_REPLICA_LOAD_INFORMATION { - (::windows::core::Vtable::vtable(self).get_ReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetReplicaLoadInformationResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetReplicaLoadInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetReplicaLoadInformationResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19493,38 +19079,44 @@ impl ::core::fmt::Debug for IFabricGetReplicaLoadInformationResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetReplicaLoadInformationResult { +unsafe impl ::windows_core::Interface for IFabricGetReplicaLoadInformationResult { type Vtable = IFabricGetReplicaLoadInformationResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetReplicaLoadInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xe4190ca0_225c_11e4_8c21_0800200c9a66); +impl ::core::clone::Clone for IFabricGetReplicaLoadInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetReplicaLoadInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xe4190ca0_225c_11e4_8c21_0800200c9a66); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetReplicaLoadInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_ReplicaLoadInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_REPLICA_LOAD_INFORMATION, + #[cfg(not(feature = "Win32_Foundation"))] + get_ReplicaLoadInformation: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetRollingUpgradeMonitoringPolicyResult(::windows::core::IUnknown); +pub struct IFabricGetRollingUpgradeMonitoringPolicyResult(::windows_core::IUnknown); impl IFabricGetRollingUpgradeMonitoringPolicyResult { pub unsafe fn get_Policy(&self) -> *mut super::super::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { - (::windows::core::Vtable::vtable(self).get_Policy)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Policy)(::windows_core::Interface::as_raw( + self, + )) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetRollingUpgradeMonitoringPolicyResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetRollingUpgradeMonitoringPolicyResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetRollingUpgradeMonitoringPolicyResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19538,43 +19130,44 @@ impl ::core::fmt::Debug for IFabricGetRollingUpgradeMonitoringPolicyResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetRollingUpgradeMonitoringPolicyResult { +unsafe impl ::windows_core::Interface for IFabricGetRollingUpgradeMonitoringPolicyResult { type Vtable = IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetRollingUpgradeMonitoringPolicyResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x02bd6674_9c5a_4262_89a8_ac1a6a2fb5e9); +impl ::core::clone::Clone for IFabricGetRollingUpgradeMonitoringPolicyResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetRollingUpgradeMonitoringPolicyResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x02bd6674_9c5a_4262_89a8_ac1a6a2fb5e9); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Policy: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetServiceGroupMemberListResult(::windows::core::IUnknown); +pub struct IFabricGetServiceGroupMemberListResult(::windows_core::IUnknown); impl IFabricGetServiceGroupMemberListResult { pub unsafe fn get_ServiceGroupMemberList( &self, ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetServiceGroupMemberListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetServiceGroupMemberListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetServiceGroupMemberListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19588,36 +19181,37 @@ impl ::core::fmt::Debug for IFabricGetServiceGroupMemberListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetServiceGroupMemberListResult { +unsafe impl ::windows_core::Interface for IFabricGetServiceGroupMemberListResult { type Vtable = IFabricGetServiceGroupMemberListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetServiceGroupMemberListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xe9f7f574_fd07_4a71_9f22_9cf9ccf3c166); +impl ::core::clone::Clone for IFabricGetServiceGroupMemberListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetServiceGroupMemberListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xe9f7f574_fd07_4a71_9f22_9cf9ccf3c166); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetServiceGroupMemberListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_ServiceGroupMemberList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST , } +pub struct IFabricGetServiceGroupMemberListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ServiceGroupMemberList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetServiceGroupMemberTypeListResult(::windows::core::IUnknown); +pub struct IFabricGetServiceGroupMemberTypeListResult(::windows_core::IUnknown); impl IFabricGetServiceGroupMemberTypeListResult { pub unsafe fn get_ServiceGroupMemberTypeList( &self, ) -> *mut super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetServiceGroupMemberTypeListResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetServiceGroupMemberTypeListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetServiceGroupMemberTypeListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19631,31 +19225,32 @@ impl ::core::fmt::Debug for IFabricGetServiceGroupMemberTypeListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetServiceGroupMemberTypeListResult { +unsafe impl ::windows_core::Interface for IFabricGetServiceGroupMemberTypeListResult { type Vtable = IFabricGetServiceGroupMemberTypeListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetServiceGroupMemberTypeListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x5e572763_29a9_463a_b602_1332c0f60e6b); +impl ::core::clone::Clone for IFabricGetServiceGroupMemberTypeListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetServiceGroupMemberTypeListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x5e572763_29a9_463a_b602_1332c0f60e6b); } #[repr(C)] #[doc(hidden)] -pub struct IFabricGetServiceGroupMemberTypeListResult_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub get_ServiceGroupMemberTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST , } +pub struct IFabricGetServiceGroupMemberTypeListResult_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub get_ServiceGroupMemberTypeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , ) -> *mut super::super:: FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetServiceListResult(::windows::core::IUnknown); +pub struct IFabricGetServiceListResult(::windows_core::IUnknown); impl IFabricGetServiceListResult { pub unsafe fn get_ServiceList(&self) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceList)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricGetServiceListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetServiceListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_ServiceList)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!(IFabricGetServiceListResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricGetServiceListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19669,46 +19264,47 @@ impl ::core::fmt::Debug for IFabricGetServiceListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetServiceListResult { +unsafe impl ::windows_core::Interface for IFabricGetServiceListResult { type Vtable = IFabricGetServiceListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetServiceListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9953e19a_ea1e_4a1f_bda4_ab42fdb77185); +impl ::core::clone::Clone for IFabricGetServiceListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetServiceListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9953e19a_ea1e_4a1f_bda4_ab42fdb77185); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetServiceListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ServiceList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetServiceListResult2(::windows::core::IUnknown); +pub struct IFabricGetServiceListResult2(::windows_core::IUnknown); impl IFabricGetServiceListResult2 { pub unsafe fn get_ServiceList(&self) -> *mut super::super::FABRIC_SERVICE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).base__.get_ServiceList)( - ::windows::core::Vtable::as_raw(self), - ) + (::windows_core::Interface::vtable(self) + .base__ + .get_ServiceList)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_PagingStatus(&self) -> *mut super::super::FABRIC_PAGING_STATUS { - (::windows::core::Vtable::vtable(self).get_PagingStatus)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_PagingStatus)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetServiceListResult2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricGetServiceListResult ); -impl ::core::clone::Clone for IFabricGetServiceListResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetServiceListResult2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19722,12 +19318,17 @@ impl ::core::fmt::Debug for IFabricGetServiceListResult2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetServiceListResult2 { +unsafe impl ::windows_core::Interface for IFabricGetServiceListResult2 { type Vtable = IFabricGetServiceListResult2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetServiceListResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x30263683_4b25_4ec3_86d7_94ed86e7a8bf); +impl ::core::clone::Clone for IFabricGetServiceListResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetServiceListResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x30263683_4b25_4ec3_86d7_94ed86e7a8bf); } #[repr(C)] #[doc(hidden)] @@ -19737,21 +19338,17 @@ pub struct IFabricGetServiceListResult2_Vtbl { this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PAGING_STATUS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetServiceNameResult(::windows::core::IUnknown); +pub struct IFabricGetServiceNameResult(::windows_core::IUnknown); impl IFabricGetServiceNameResult { pub unsafe fn get_ServiceName(&self) -> *mut super::super::FABRIC_SERVICE_NAME_QUERY_RESULT { - (::windows::core::Vtable::vtable(self).get_ServiceName)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricGetServiceNameResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetServiceNameResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_ServiceName)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!(IFabricGetServiceNameResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricGetServiceNameResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19765,39 +19362,43 @@ impl ::core::fmt::Debug for IFabricGetServiceNameResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetServiceNameResult { +unsafe impl ::windows_core::Interface for IFabricGetServiceNameResult { type Vtable = IFabricGetServiceNameResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetServiceNameResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb64fb70c_fe53_4ca1_b6d9_23d1150fe76c); +impl ::core::clone::Clone for IFabricGetServiceNameResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetServiceNameResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb64fb70c_fe53_4ca1_b6d9_23d1150fe76c); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetServiceNameResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ServiceName: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SERVICE_NAME_QUERY_RESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetServiceTypeListResult(::windows::core::IUnknown); +pub struct IFabricGetServiceTypeListResult(::windows_core::IUnknown); impl IFabricGetServiceTypeListResult { pub unsafe fn get_ServiceTypeList( &self, ) -> *mut super::super::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceTypeList)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ServiceTypeList)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricGetServiceTypeListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetServiceTypeListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricGetServiceTypeListResult, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricGetServiceTypeListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19811,43 +19412,44 @@ impl ::core::fmt::Debug for IFabricGetServiceTypeListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetServiceTypeListResult { +unsafe impl ::windows_core::Interface for IFabricGetServiceTypeListResult { type Vtable = IFabricGetServiceTypeListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetServiceTypeListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x886e4ad2_edb8_4734_9dd4_0e9a2be5238b); +impl ::core::clone::Clone for IFabricGetServiceTypeListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetServiceTypeListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x886e4ad2_edb8_4734_9dd4_0e9a2be5238b); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetServiceTypeListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ServiceTypeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricGetUnplacedReplicaInformationResult(::windows::core::IUnknown); +pub struct IFabricGetUnplacedReplicaInformationResult(::windows_core::IUnknown); impl IFabricGetUnplacedReplicaInformationResult { pub unsafe fn get_UnplacedReplicaInformation( &self, ) -> *mut super::super::FABRIC_UNPLACED_REPLICA_INFORMATION { - (::windows::core::Vtable::vtable(self).get_UnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_UnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricGetUnplacedReplicaInformationResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricGetUnplacedReplicaInformationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricGetUnplacedReplicaInformationResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -19861,307 +19463,315 @@ impl ::core::fmt::Debug for IFabricGetUnplacedReplicaInformationResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetUnplacedReplicaInformationResult { +unsafe impl ::windows_core::Interface for IFabricGetUnplacedReplicaInformationResult { type Vtable = IFabricGetUnplacedReplicaInformationResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetUnplacedReplicaInformationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9d86a611_3fd3_451b_9495_6a831f417473); +impl ::core::clone::Clone for IFabricGetUnplacedReplicaInformationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetUnplacedReplicaInformationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9d86a611_3fd3_451b_9495_6a831f417473); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetUnplacedReplicaInformationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_UnplacedReplicaInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_UNPLACED_REPLICA_INFORMATION, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricHealthClient(::windows::core::IUnknown); +pub struct IFabricHealthClient(::windows_core::IUnknown); impl IFabricHealthClient { pub unsafe fn ReportHealth( &self, healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthreport), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportHealth)( + ::windows_core::Interface::as_raw(self), + healthreport, ) .ok() } - pub unsafe fn BeginGetClusterHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetClusterHealth( &self, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthpolicy), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterHealth)( + ::windows_core::Interface::as_raw(self), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterHealth<'a, P0>( + pub unsafe fn EndGetClusterHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeHealth<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetNodeHealth( &self, nodename: P0, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - ::core::mem::transmute(healthpolicy), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNodeHealth)( + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeHealth<'a, P0>( + pub unsafe fn EndGetNodeHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNodeHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetApplicationHealth( &self, applicationname: *const u16, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(healthpolicy), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationHealth<'a, P0>( + pub unsafe fn EndGetApplicationHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetServiceHealth( &self, servicename: *const u16, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - ::core::mem::transmute(healthpolicy), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceHealth)( + ::windows_core::Interface::as_raw(self), + servicename, + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceHealth<'a, P0>( + pub unsafe fn EndGetServiceHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetPartitionHealth( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionHealth)( + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), - ::core::mem::transmute(healthpolicy), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionHealth<'a, P0>( + pub unsafe fn EndGetPartitionHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetReplicaHealth( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetReplicaHealth)( + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), replicaid, - ::core::mem::transmute(healthpolicy), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaHealth<'a, P0>( + pub unsafe fn EndGetReplicaHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetReplicaHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationHealth<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedApplicationHealth( &self, applicationname: *const u16, nodename: P0, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nodename.into(), - ::core::mem::transmute(healthpolicy), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + nodename.into_param().abi(), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationHealth<'a, P0>( + pub unsafe fn EndGetDeployedApplicationHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageHealth<'a, P0, P1, P2>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedServicePackageHealth( &self, applicationname: *const u16, servicemanifestname: P0, @@ -20169,49 +19779,42 @@ impl IFabricHealthClient { healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - servicemanifestname.into(), - nodename.into(), - ::core::mem::transmute(healthpolicy), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicemanifestname.into_param().abi(), + nodename.into_param().abi(), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageHealth<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricHealthClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricHealthClient { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricHealthClient, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricHealthClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -20223,46 +19826,58 @@ impl ::core::fmt::Debug for IFabricHealthClient { f.debug_tuple("IFabricHealthClient").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricHealthClient { +unsafe impl ::windows_core::Interface for IFabricHealthClient { type Vtable = IFabricHealthClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricHealthClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3d00d0be_7014_41da_9c5b_0a9ef46e2a43); +impl ::core::clone::Clone for IFabricHealthClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricHealthClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3d00d0be_7014_41da_9c5b_0a9ef46e2a43); } #[repr(C)] #[doc(hidden)] pub struct IFabricHealthClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub ReportHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginGetClusterHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetClusterHealth: usize, pub EndGetClusterHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginGetNodeHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - nodename: ::windows::core::PCWSTR, + nodename: ::windows_core::PCWSTR, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetNodeHealth: usize, pub EndGetNodeHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginGetApplicationHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, applicationname: *const u16, @@ -20270,12 +19885,15 @@ pub struct IFabricHealthClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetApplicationHealth: usize, pub EndGetApplicationHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginGetServiceHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, servicename: *const u16, @@ -20283,384 +19901,401 @@ pub struct IFabricHealthClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetServiceHealth: usize, pub EndGetServiceHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginGetPartitionHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetPartitionHealth: usize, pub EndGetPartitionHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginGetReplicaHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetReplicaHealth: usize, pub EndGetReplicaHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginGetDeployedApplicationHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, applicationname: *const u16, - nodename: ::windows::core::PCWSTR, + nodename: ::windows_core::PCWSTR, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetDeployedApplicationHealth: usize, pub EndGetDeployedApplicationHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginGetDeployedServicePackageHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, applicationname: *const u16, - servicemanifestname: ::windows::core::PCWSTR, - nodename: ::windows::core::PCWSTR, + servicemanifestname: ::windows_core::PCWSTR, + nodename: ::windows_core::PCWSTR, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetDeployedServicePackageHealth: usize, pub EndGetDeployedServicePackageHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricHealthClient2(::windows::core::IUnknown); +pub struct IFabricHealthClient2(::windows_core::IUnknown); impl IFabricHealthClient2 { pub unsafe fn ReportHealth( &self, healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthreport), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.ReportHealth)( + ::windows_core::Interface::as_raw(self), + healthreport, ) .ok() } - pub unsafe fn BeginGetClusterHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetClusterHealth( &self, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterHealth<'a, P0>( + pub unsafe fn EndGetClusterHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeHealth<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetNodeHealth( &self, nodename: P0, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeHealth<'a, P0>( + pub unsafe fn EndGetNodeHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetApplicationHealth( &self, applicationname: *const u16, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + applicationname, + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationHealth<'a, P0>( + pub unsafe fn EndGetApplicationHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetServiceHealth( &self, servicename: *const u16, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + servicename, + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceHealth<'a, P0>( + pub unsafe fn EndGetServiceHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetPartitionHealth( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), - ::core::mem::transmute(healthpolicy), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionHealth<'a, P0>( + pub unsafe fn EndGetPartitionHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetReplicaHealth( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), replicaid, - ::core::mem::transmute(healthpolicy), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaHealth<'a, P0>( + pub unsafe fn EndGetReplicaHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationHealth<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedApplicationHealth( &self, applicationname: *const u16, nodename: P0, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nodename.into(), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + applicationname, + nodename.into_param().abi(), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationHealth<'a, P0>( + pub unsafe fn EndGetDeployedApplicationHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageHealth<'a, P0, P1, P2>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedServicePackageHealth( &self, applicationname: *const u16, servicemanifestname: P0, @@ -20668,345 +20303,338 @@ impl IFabricHealthClient2 { healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - servicemanifestname.into(), - nodename.into(), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + applicationname, + servicemanifestname.into_param().abi(), + nodename.into_param().abi(), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageHealth<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetClusterHealth2( &self, querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterHealth2<'a, P0>( + pub unsafe fn EndGetClusterHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetNodeHealth2( &self, querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNodeHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNodeHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeHealth2<'a, P0>( + pub unsafe fn EndGetNodeHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNodeHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNodeHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetApplicationHealth2( &self, querydescription: *const super::super::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationHealth2<'a, P0>( + pub unsafe fn EndGetApplicationHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetServiceHealth2( &self, querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceHealth2<'a, P0>( + pub unsafe fn EndGetServiceHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetPartitionHealth2( &self, querydescription: *const super::super::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionHealth2<'a, P0>( + pub unsafe fn EndGetPartitionHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetReplicaHealth2( &self, querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetReplicaHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaHealth2<'a, P0>( + pub unsafe fn EndGetReplicaHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetReplicaHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedApplicationHealth2( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationHealth2<'a, P0>( + pub unsafe fn EndGetDeployedApplicationHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedServicePackageHealth2( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedServicePackageHealth2)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageHealth2<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedServicePackageHealth2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricHealthClient2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricHealthClient ); -impl ::core::clone::Clone for IFabricHealthClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricHealthClient2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -21020,345 +20648,350 @@ impl ::core::fmt::Debug for IFabricHealthClient2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricHealthClient2 { +unsafe impl ::windows_core::Interface for IFabricHealthClient2 { type Vtable = IFabricHealthClient2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricHealthClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x66cbc014_d7b3_4f81_a498_e580feb9a1f5); +impl ::core::clone::Clone for IFabricHealthClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricHealthClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x66cbc014_d7b3_4f81_a498_e580feb9a1f5); } #[repr(C)] #[doc(hidden)] -pub struct IFabricHealthClient2_Vtbl where { pub base__ : IFabricHealthClient_Vtbl , pub BeginGetClusterHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetClusterHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetNodeHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NODE_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetNodeHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetServiceHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetServiceHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetPartitionHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetPartitionHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetReplicaHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetReplicaHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetDeployedApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetDeployedApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetDeployedServicePackageHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: 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 , pub EndGetDeployedServicePackageHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , } +pub struct IFabricHealthClient2_Vtbl where { pub base__ : IFabricHealthClient_Vtbl , # [ cfg ( feature = "Win32_Foundation" ) ] pub BeginGetClusterHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( not ( feature = "Win32_Foundation" ) ) ] BeginGetClusterHealth2 :usize , pub EndGetClusterHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( feature = "Win32_Foundation" ) ] pub BeginGetNodeHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NODE_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( not ( feature = "Win32_Foundation" ) ) ] BeginGetNodeHealth2 :usize , pub EndGetNodeHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( feature = "Win32_Foundation" ) ] pub BeginGetApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( not ( feature = "Win32_Foundation" ) ) ] BeginGetApplicationHealth2 :usize , pub EndGetApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( feature = "Win32_Foundation" ) ] pub BeginGetServiceHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( not ( feature = "Win32_Foundation" ) ) ] BeginGetServiceHealth2 :usize , pub EndGetServiceHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( feature = "Win32_Foundation" ) ] pub BeginGetPartitionHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( not ( feature = "Win32_Foundation" ) ) ] BeginGetPartitionHealth2 :usize , pub EndGetPartitionHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( feature = "Win32_Foundation" ) ] pub BeginGetReplicaHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( not ( feature = "Win32_Foundation" ) ) ] BeginGetReplicaHealth2 :usize , pub EndGetReplicaHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( feature = "Win32_Foundation" ) ] pub BeginGetDeployedApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( not ( feature = "Win32_Foundation" ) ) ] BeginGetDeployedApplicationHealth2 :usize , pub EndGetDeployedApplicationHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( feature = "Win32_Foundation" ) ] pub BeginGetDeployedServicePackageHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: 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 , # [ cfg ( not ( feature = "Win32_Foundation" ) ) ] BeginGetDeployedServicePackageHealth2 :usize , pub EndGetDeployedServicePackageHealth2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricHealthClient3(::windows::core::IUnknown); +pub struct IFabricHealthClient3(::windows_core::IUnknown); impl IFabricHealthClient3 { pub unsafe fn ReportHealth( &self, healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ - .ReportHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthreport), - ) + .ReportHealth)(::windows_core::Interface::as_raw(self), healthreport) .ok() } - pub unsafe fn BeginGetClusterHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetClusterHealth( &self, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterHealth<'a, P0>( + pub unsafe fn EndGetClusterHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeHealth<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetNodeHealth( &self, nodename: P0, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeHealth<'a, P0>( + pub unsafe fn EndGetNodeHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetApplicationHealth( &self, applicationname: *const u16, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + applicationname, + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationHealth<'a, P0>( + pub unsafe fn EndGetApplicationHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetServiceHealth( &self, servicename: *const u16, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + servicename, + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceHealth<'a, P0>( + pub unsafe fn EndGetServiceHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetPartitionHealth( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), - ::core::mem::transmute(healthpolicy), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionHealth<'a, P0>( + pub unsafe fn EndGetPartitionHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetReplicaHealth( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), replicaid, - ::core::mem::transmute(healthpolicy), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaHealth<'a, P0>( + pub unsafe fn EndGetReplicaHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationHealth<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedApplicationHealth( &self, applicationname: *const u16, nodename: P0, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nodename.into(), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + applicationname, + nodename.into_param().abi(), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationHealth<'a, P0>( + pub unsafe fn EndGetDeployedApplicationHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageHealth<'a, P0, P1, P2>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedServicePackageHealth( &self, applicationname: *const u16, servicemanifestname: P0, @@ -21366,416 +20999,409 @@ impl IFabricHealthClient3 { healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - servicemanifestname.into(), - nodename.into(), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + applicationname, + servicemanifestname.into_param().abi(), + nodename.into_param().abi(), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageHealth<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetClusterHealth2( &self, querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetClusterHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterHealth2<'a, P0>( + pub unsafe fn EndGetClusterHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetClusterHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetNodeHealth2( &self, querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetNodeHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeHealth2<'a, P0>( + pub unsafe fn EndGetNodeHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetNodeHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetApplicationHealth2( &self, querydescription: *const super::super::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationHealth2<'a, P0>( + pub unsafe fn EndGetApplicationHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetServiceHealth2( &self, querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetServiceHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceHealth2<'a, P0>( + pub unsafe fn EndGetServiceHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetServiceHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetPartitionHealth2( &self, querydescription: *const super::super::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionHealth2<'a, P0>( + pub unsafe fn EndGetPartitionHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetReplicaHealth2( &self, querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaHealth2<'a, P0>( + pub unsafe fn EndGetReplicaHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedApplicationHealth2( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationHealth2<'a, P0>( + pub unsafe fn EndGetDeployedApplicationHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedServicePackageHealth2( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageHealth2<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterHealthChunk<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetClusterHealthChunk( &self, querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterHealthChunk)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterHealthChunk)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterHealthChunk<'a, P0>( + pub unsafe fn EndGetClusterHealthChunk( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterHealthChunk)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterHealthChunk)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricHealthClient3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricHealthClient, IFabricHealthClient2 ); -impl ::core::clone::Clone for IFabricHealthClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricHealthClient3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -21789,374 +21415,382 @@ impl ::core::fmt::Debug for IFabricHealthClient3 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricHealthClient3 { +unsafe impl ::windows_core::Interface for IFabricHealthClient3 { type Vtable = IFabricHealthClient3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricHealthClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xdd3e4497_3373_458d_ad22_c88ebd27493e); +impl ::core::clone::Clone for IFabricHealthClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricHealthClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xdd3e4497_3373_458d_ad22_c88ebd27493e); } #[repr(C)] #[doc(hidden)] pub struct IFabricHealthClient3_Vtbl { pub base__: IFabricHealthClient2_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginGetClusterHealthChunk: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetClusterHealthChunk: usize, pub EndGetClusterHealthChunk: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricHealthClient4(::windows::core::IUnknown); +pub struct IFabricHealthClient4(::windows_core::IUnknown); impl IFabricHealthClient4 { pub unsafe fn ReportHealth( &self, healthreport: *const super::super::FABRIC_HEALTH_REPORT, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .ReportHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthreport), - ) + .ReportHealth)(::windows_core::Interface::as_raw(self), healthreport) .ok() } - pub unsafe fn BeginGetClusterHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetClusterHealth( &self, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterHealth<'a, P0>( + pub unsafe fn EndGetClusterHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetClusterHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeHealth<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetNodeHealth( &self, nodename: P0, healthpolicy: *const super::super::FABRIC_CLUSTER_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - nodename.into(), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + nodename.into_param().abi(), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeHealth<'a, P0>( + pub unsafe fn EndGetNodeHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetNodeHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetApplicationHealth( &self, applicationname: *const u16, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + applicationname, + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationHealth<'a, P0>( + pub unsafe fn EndGetApplicationHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetServiceHealth( &self, servicename: *const u16, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + servicename, + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceHealth<'a, P0>( + pub unsafe fn EndGetServiceHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetServiceHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetPartitionHealth( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), - ::core::mem::transmute(healthpolicy), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionHealth<'a, P0>( + pub unsafe fn EndGetPartitionHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaHealth<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetReplicaHealth( &self, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(partitionid), replicaid, - ::core::mem::transmute(healthpolicy), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaHealth<'a, P0>( + pub unsafe fn EndGetReplicaHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationHealth<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedApplicationHealth( &self, applicationname: *const u16, nodename: P0, healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - nodename.into(), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + applicationname, + nodename.into_param().abi(), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationHealth<'a, P0>( + pub unsafe fn EndGetDeployedApplicationHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageHealth<'a, P0, P1, P2>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedServicePackageHealth( &self, applicationname: *const u16, servicemanifestname: P0, @@ -22164,451 +21798,446 @@ impl IFabricHealthClient4 { healthpolicy: *const super::super::FABRIC_APPLICATION_HEALTH_POLICY, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - servicemanifestname.into(), - nodename.into(), - ::core::mem::transmute(healthpolicy), + ::windows_core::Interface::as_raw(self), + applicationname, + servicemanifestname.into_param().abi(), + nodename.into_param().abi(), + healthpolicy, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageHealth<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageHealth( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetClusterHealth2( &self, querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetClusterHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterHealth2<'a, P0>( + pub unsafe fn EndGetClusterHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetClusterHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetNodeHealth2( &self, querydescription: *const super::super::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetNodeHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeHealth2<'a, P0>( + pub unsafe fn EndGetNodeHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetNodeHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetApplicationHealth2( &self, querydescription: *const super::super::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationHealth2<'a, P0>( + pub unsafe fn EndGetApplicationHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetServiceHealth2( &self, querydescription: *const super::super::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetServiceHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceHealth2<'a, P0>( + pub unsafe fn EndGetServiceHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetServiceHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetPartitionHealth2( &self, querydescription: *const super::super::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionHealth2<'a, P0>( + pub unsafe fn EndGetPartitionHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetReplicaHealth2( &self, querydescription: *const super::super::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaHealth2<'a, P0>( + pub unsafe fn EndGetReplicaHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedApplicationHealth2( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationHealth2<'a, P0>( + pub unsafe fn EndGetDeployedApplicationHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageHealth2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedServicePackageHealth2( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageHealth2<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageHealth2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterHealthChunk<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetClusterHealthChunk( &self, querydescription: *const super::super::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetClusterHealthChunk)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterHealthChunk<'a, P0>( + pub unsafe fn EndGetClusterHealthChunk( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetClusterHealthChunk)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportHealth2( &self, healthreport: *const super::super::FABRIC_HEALTH_REPORT, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthreport), - ::core::mem::transmute(sendoptions), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportHealth2)( + ::windows_core::Interface::as_raw(self), + healthreport, + sendoptions, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricHealthClient4, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricHealthClient, IFabricHealthClient2, IFabricHealthClient3 ); -impl ::core::clone::Clone for IFabricHealthClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricHealthClient4 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -22622,114 +22251,114 @@ impl ::core::fmt::Debug for IFabricHealthClient4 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricHealthClient4 { +unsafe impl ::windows_core::Interface for IFabricHealthClient4 { type Vtable = IFabricHealthClient4_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricHealthClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9f0401af_4909_404f_8696_0a71bd753e98); +impl ::core::clone::Clone for IFabricHealthClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricHealthClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9f0401af_4909_404f_8696_0a71bd753e98); } #[repr(C)] #[doc(hidden)] pub struct IFabricHealthClient4_Vtbl { pub base__: IFabricHealthClient3_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub ReportHealth2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthreport: *const super::super::FABRIC_HEALTH_REPORT, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportHealth2: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricInfrastructureServiceClient(::windows::core::IUnknown); +pub struct IFabricInfrastructureServiceClient(::windows_core::IUnknown); impl IFabricInfrastructureServiceClient { - pub unsafe fn BeginInvokeInfrastructureCommand<'a, P0, P1>( + pub unsafe fn BeginInvokeInfrastructureCommand( &self, servicename: *const u16, command: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginInvokeInfrastructureCommand)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - command.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginInvokeInfrastructureCommand)( + ::windows_core::Interface::as_raw(self), + servicename, + command.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndInvokeInfrastructureCommand<'a, P0>( + pub unsafe fn EndInvokeInfrastructureCommand( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndInvokeInfrastructureCommand)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndInvokeInfrastructureCommand)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginInvokeInfrastructureQuery<'a, P0, P1>( + pub unsafe fn BeginInvokeInfrastructureQuery( &self, servicename: *const u16, command: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginInvokeInfrastructureQuery)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicename), - command.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginInvokeInfrastructureQuery)( + ::windows_core::Interface::as_raw(self), + servicename, + command.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndInvokeInfrastructureQuery<'a, P0>( + pub unsafe fn EndInvokeInfrastructureQuery( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndInvokeInfrastructureQuery)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndInvokeInfrastructureQuery)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricInfrastructureServiceClient, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricInfrastructureServiceClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricInfrastructureServiceClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -22743,58 +22372,60 @@ impl ::core::fmt::Debug for IFabricInfrastructureServiceClient { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricInfrastructureServiceClient { +unsafe impl ::windows_core::Interface for IFabricInfrastructureServiceClient { type Vtable = IFabricInfrastructureServiceClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricInfrastructureServiceClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa0cfbc71_184b_443b_b102_4b6d0a7cbc49); +impl ::core::clone::Clone for IFabricInfrastructureServiceClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricInfrastructureServiceClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa0cfbc71_184b_443b_b102_4b6d0a7cbc49); } #[repr(C)] #[doc(hidden)] pub struct IFabricInfrastructureServiceClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginInvokeInfrastructureCommand: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, servicename: *const u16, - command: ::windows::core::PCWSTR, + command: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndInvokeInfrastructureCommand: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginInvokeInfrastructureQuery: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, servicename: *const u16, - command: ::windows::core::PCWSTR, + command: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndInvokeInfrastructureQuery: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricMovePrimaryResult(::windows::core::IUnknown); +pub struct IFabricMovePrimaryResult(::windows_core::IUnknown); impl IFabricMovePrimaryResult { pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_MOVE_PRIMARY_RESULT { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricMovePrimaryResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricMovePrimaryResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_Result)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!(IFabricMovePrimaryResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricMovePrimaryResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -22808,34 +22439,37 @@ impl ::core::fmt::Debug for IFabricMovePrimaryResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricMovePrimaryResult { +unsafe impl ::windows_core::Interface for IFabricMovePrimaryResult { type Vtable = IFabricMovePrimaryResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricMovePrimaryResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x66ac03f5_e61c_47a2_80fe_49309a02c92c); +impl ::core::clone::Clone for IFabricMovePrimaryResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricMovePrimaryResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x66ac03f5_e61c_47a2_80fe_49309a02c92c); } #[repr(C)] #[doc(hidden)] pub struct IFabricMovePrimaryResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Result: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_MOVE_PRIMARY_RESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricMoveSecondaryResult(::windows::core::IUnknown); +pub struct IFabricMoveSecondaryResult(::windows_core::IUnknown); impl IFabricMoveSecondaryResult { pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_MOVE_SECONDARY_RESULT { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricMoveSecondaryResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricMoveSecondaryResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_Result)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!(IFabricMoveSecondaryResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricMoveSecondaryResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -22849,49 +22483,50 @@ impl ::core::fmt::Debug for IFabricMoveSecondaryResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricMoveSecondaryResult { +unsafe impl ::windows_core::Interface for IFabricMoveSecondaryResult { type Vtable = IFabricMoveSecondaryResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricMoveSecondaryResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x60fe896a_b690_4abb_94fd_86c615d29bee); +impl ::core::clone::Clone for IFabricMoveSecondaryResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricMoveSecondaryResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x60fe896a_b690_4abb_94fd_86c615d29bee); } #[repr(C)] #[doc(hidden)] pub struct IFabricMoveSecondaryResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Result: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_MOVE_SECONDARY_RESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricNameEnumerationResult(::windows::core::IUnknown); +pub struct IFabricNameEnumerationResult(::windows_core::IUnknown); impl IFabricNameEnumerationResult { pub unsafe fn get_EnumerationStatus(&self) -> super::super::FABRIC_ENUMERATION_STATUS { - (::windows::core::Vtable::vtable(self).get_EnumerationStatus)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_EnumerationStatus)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn GetNames( &self, itemcount: *mut u32, buffereditems: *mut *mut *mut u16, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetNames)( + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, ) .ok() } } -::windows::core::interface_hierarchy!(IFabricNameEnumerationResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricNameEnumerationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricNameEnumerationResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricNameEnumerationResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -22905,17 +22540,22 @@ impl ::core::fmt::Debug for IFabricNameEnumerationResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricNameEnumerationResult { +unsafe impl ::windows_core::Interface for IFabricNameEnumerationResult { type Vtable = IFabricNameEnumerationResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricNameEnumerationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x557e8105_f4f4_4fd3_9d21_075f34e2f98c); +impl ::core::clone::Clone for IFabricNameEnumerationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricNameEnumerationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x557e8105_f4f4_4fd3_9d21_075f34e2f98c); } #[repr(C)] #[doc(hidden)] pub struct IFabricNameEnumerationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_EnumerationStatus: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) @@ -22924,299 +22564,279 @@ pub struct IFabricNameEnumerationResult_Vtbl { this: *mut ::core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut *mut u16, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricNetworkManagementClient(::windows::core::IUnknown); +pub struct IFabricNetworkManagementClient(::windows_core::IUnknown); impl IFabricNetworkManagementClient { - pub unsafe fn BeginCreateNetwork<'a, P0, P1>( + pub unsafe fn BeginCreateNetwork( &self, networkname: P0, description: *const super::super::FABRIC_NETWORK_DESCRIPTION, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateNetwork)( - ::windows::core::Vtable::as_raw(self), - networkname.into(), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateNetwork)( + ::windows_core::Interface::as_raw(self), + networkname.into_param().abi(), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateNetwork<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateNetwork(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndCreateNetwork)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndCreateNetwork)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteNetwork<'a, P0>( + pub unsafe fn BeginDeleteNetwork( &self, deletedescription: *const super::super::FABRIC_DELETE_NETWORK_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteNetwork)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteNetwork)( + ::windows_core::Interface::as_raw(self), + deletedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteNetwork<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteNetwork(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndDeleteNetwork)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndDeleteNetwork)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetNetworkList<'a, P0>( + pub unsafe fn BeginGetNetworkList( &self, querydescription: *const super::super::FABRIC_NETWORK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNetworkList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNetworkList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNetworkList<'a, P0>( + pub unsafe fn EndGetNetworkList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNetworkList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNetworkList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNetworkApplicationList<'a, P0>( + pub unsafe fn BeginGetNetworkApplicationList( &self, querydescription: *const super::super::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNetworkApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNetworkApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNetworkApplicationList<'a, P0>( + pub unsafe fn EndGetNetworkApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNetworkApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNetworkApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNetworkNodeList<'a, P0>( + pub unsafe fn BeginGetNetworkNodeList( &self, querydescription: *const super::super::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNetworkNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNetworkNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNetworkNodeList<'a, P0>( + pub unsafe fn EndGetNetworkNodeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNetworkNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNetworkNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationNetworkList<'a, P0>( + pub unsafe fn BeginGetApplicationNetworkList( &self, querydescription: *const super::super::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationNetworkList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationNetworkList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationNetworkList<'a, P0>( + pub unsafe fn EndGetApplicationNetworkList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationNetworkList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationNetworkList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedNetworkList<'a, P0>( + pub unsafe fn BeginGetDeployedNetworkList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedNetworkList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedNetworkList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedNetworkList<'a, P0>( + pub unsafe fn EndGetDeployedNetworkList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedNetworkList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedNetworkList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedNetworkCodePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedNetworkCodePackageList( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedNetworkCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedNetworkCodePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedNetworkCodePackageList<'a, P0>( + pub unsafe fn EndGetDeployedNetworkCodePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedNetworkCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedNetworkCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricNetworkManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricNetworkManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricNetworkManagementClient, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricNetworkManagementClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -23230,31 +22850,34 @@ impl ::core::fmt::Debug for IFabricNetworkManagementClient { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricNetworkManagementClient { +unsafe impl ::windows_core::Interface for IFabricNetworkManagementClient { type Vtable = IFabricNetworkManagementClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricNetworkManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfdb754c6_69c5_4bcf_bba5_cb70c84a4398); +impl ::core::clone::Clone for IFabricNetworkManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricNetworkManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfdb754c6_69c5_4bcf_bba5_cb70c84a4398); } #[repr(C)] #[doc(hidden)] -pub struct IFabricNetworkManagementClient_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub BeginCreateNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , networkname : :: windows::core::PCWSTR , description : *const super::super:: FABRIC_NETWORK_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndCreateNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginDeleteNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , deletedescription : *const super::super:: FABRIC_DELETE_NETWORK_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndDeleteNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NETWORK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetNetworkApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetNetworkApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetNetworkNodeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NETWORK_NODE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetNetworkNodeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetApplicationNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetApplicationNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetDeployedNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetDeployedNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetDeployedNetworkCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: 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 , pub EndGetDeployedNetworkCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , } +pub struct IFabricNetworkManagementClient_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub BeginCreateNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , networkname : ::windows_core::PCWSTR , description : *const super::super:: FABRIC_NETWORK_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndCreateNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginDeleteNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , deletedescription : *const super::super:: FABRIC_DELETE_NETWORK_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndDeleteNetwork :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NETWORK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetNetworkApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetNetworkApplicationList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetNetworkNodeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_NETWORK_NODE_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetNetworkNodeList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetApplicationNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetApplicationNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetDeployedNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedNetworkList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetDeployedNetworkCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: 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 , pub EndGetDeployedNetworkCodePackageList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricNodeHealthResult(::windows::core::IUnknown); +pub struct IFabricNodeHealthResult(::windows_core::IUnknown); impl IFabricNodeHealthResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_NodeHealth(&self) -> *mut super::super::FABRIC_NODE_HEALTH { - (::windows::core::Vtable::vtable(self).get_NodeHealth)(::windows::core::Vtable::as_raw( + (::windows_core::Interface::vtable(self).get_NodeHealth)(::windows_core::Interface::as_raw( self, )) } } -::windows::core::interface_hierarchy!(IFabricNodeHealthResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricNodeHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricNodeHealthResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricNodeHealthResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -23268,37 +22891,43 @@ impl ::core::fmt::Debug for IFabricNodeHealthResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricNodeHealthResult { +unsafe impl ::windows_core::Interface for IFabricNodeHealthResult { type Vtable = IFabricNodeHealthResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricNodeHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xe461f70b_51b8_4b73_9f35_e38e5ac68719); +impl ::core::clone::Clone for IFabricNodeHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricNodeHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xe461f70b_51b8_4b73_9f35_e38e5ac68719); } #[repr(C)] #[doc(hidden)] pub struct IFabricNodeHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_NodeHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_NODE_HEALTH, + #[cfg(not(feature = "Win32_Foundation"))] + get_NodeHealth: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricNodeTransitionProgressResult(::windows::core::IUnknown); +pub struct IFabricNodeTransitionProgressResult(::windows_core::IUnknown); impl IFabricNodeTransitionProgressResult { pub unsafe fn get_Progress(&self) -> *mut super::super::FABRIC_NODE_TRANSITION_PROGRESS { - (::windows::core::Vtable::vtable(self).get_Progress)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Progress)(::windows_core::Interface::as_raw( + self, + )) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricNodeTransitionProgressResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricNodeTransitionProgressResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricNodeTransitionProgressResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -23312,38 +22941,41 @@ impl ::core::fmt::Debug for IFabricNodeTransitionProgressResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricNodeTransitionProgressResult { +unsafe impl ::windows_core::Interface for IFabricNodeTransitionProgressResult { type Vtable = IFabricNodeTransitionProgressResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricNodeTransitionProgressResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x68a98626_6a1b_4dd8_ad93_74c0936e86aa); +impl ::core::clone::Clone for IFabricNodeTransitionProgressResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricNodeTransitionProgressResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x68a98626_6a1b_4dd8_ad93_74c0936e86aa); } #[repr(C)] #[doc(hidden)] pub struct IFabricNodeTransitionProgressResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Progress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_NODE_TRANSITION_PROGRESS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricOrchestrationUpgradeStatusResult(::windows::core::IUnknown); +pub struct IFabricOrchestrationUpgradeStatusResult(::windows_core::IUnknown); impl IFabricOrchestrationUpgradeStatusResult { pub unsafe fn get_Progress(&self) -> *mut super::super::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { - (::windows::core::Vtable::vtable(self).get_Progress)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Progress)(::windows_core::Interface::as_raw( + self, + )) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricOrchestrationUpgradeStatusResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricOrchestrationUpgradeStatusResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricOrchestrationUpgradeStatusResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -23357,39 +22989,42 @@ impl ::core::fmt::Debug for IFabricOrchestrationUpgradeStatusResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricOrchestrationUpgradeStatusResult { +unsafe impl ::windows_core::Interface for IFabricOrchestrationUpgradeStatusResult { type Vtable = IFabricOrchestrationUpgradeStatusResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricOrchestrationUpgradeStatusResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x95a56e4a_490d_445e_865c_ef0a62f15504); +impl ::core::clone::Clone for IFabricOrchestrationUpgradeStatusResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricOrchestrationUpgradeStatusResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x95a56e4a_490d_445e_865c_ef0a62f15504); } #[repr(C)] #[doc(hidden)] pub struct IFabricOrchestrationUpgradeStatusResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Progress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricPartitionDataLossProgressResult(::windows::core::IUnknown); +pub struct IFabricPartitionDataLossProgressResult(::windows_core::IUnknown); impl IFabricPartitionDataLossProgressResult { pub unsafe fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_DATA_LOSS_PROGRESS { - (::windows::core::Vtable::vtable(self).get_Progress)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Progress)(::windows_core::Interface::as_raw( + self, + )) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricPartitionDataLossProgressResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricPartitionDataLossProgressResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricPartitionDataLossProgressResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -23403,38 +23038,41 @@ impl ::core::fmt::Debug for IFabricPartitionDataLossProgressResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricPartitionDataLossProgressResult { +unsafe impl ::windows_core::Interface for IFabricPartitionDataLossProgressResult { type Vtable = IFabricPartitionDataLossProgressResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricPartitionDataLossProgressResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x614921e6_75f1_44e7_9107_ab88819136b8); +impl ::core::clone::Clone for IFabricPartitionDataLossProgressResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricPartitionDataLossProgressResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x614921e6_75f1_44e7_9107_ab88819136b8); } #[repr(C)] #[doc(hidden)] pub struct IFabricPartitionDataLossProgressResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Progress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PARTITION_DATA_LOSS_PROGRESS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricPartitionHealthResult(::windows::core::IUnknown); +pub struct IFabricPartitionHealthResult(::windows_core::IUnknown); impl IFabricPartitionHealthResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_PartitionHealth(&self) -> *mut super::super::FABRIC_PARTITION_HEALTH { - (::windows::core::Vtable::vtable(self).get_PartitionHealth)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_PartitionHealth)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricPartitionHealthResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricPartitionHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricPartitionHealthResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricPartitionHealthResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -23448,38 +23086,44 @@ impl ::core::fmt::Debug for IFabricPartitionHealthResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricPartitionHealthResult { +unsafe impl ::windows_core::Interface for IFabricPartitionHealthResult { type Vtable = IFabricPartitionHealthResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricPartitionHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x10c9e99d_bb3f_4263_a7f7_abbaf3c03576); +impl ::core::clone::Clone for IFabricPartitionHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricPartitionHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x10c9e99d_bb3f_4263_a7f7_abbaf3c03576); } #[repr(C)] #[doc(hidden)] pub struct IFabricPartitionHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_PartitionHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PARTITION_HEALTH, + #[cfg(not(feature = "Win32_Foundation"))] + get_PartitionHealth: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricPartitionQuorumLossProgressResult(::windows::core::IUnknown); +pub struct IFabricPartitionQuorumLossProgressResult(::windows_core::IUnknown); impl IFabricPartitionQuorumLossProgressResult { pub unsafe fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { - (::windows::core::Vtable::vtable(self).get_Progress)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Progress)(::windows_core::Interface::as_raw( + self, + )) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricPartitionQuorumLossProgressResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricPartitionQuorumLossProgressResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricPartitionQuorumLossProgressResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -23493,39 +23137,42 @@ impl ::core::fmt::Debug for IFabricPartitionQuorumLossProgressResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricPartitionQuorumLossProgressResult { +unsafe impl ::windows_core::Interface for IFabricPartitionQuorumLossProgressResult { type Vtable = IFabricPartitionQuorumLossProgressResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricPartitionQuorumLossProgressResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x36d8e378_3706_403d_8d99_2afd1a120687); +impl ::core::clone::Clone for IFabricPartitionQuorumLossProgressResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricPartitionQuorumLossProgressResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x36d8e378_3706_403d_8d99_2afd1a120687); } #[repr(C)] #[doc(hidden)] pub struct IFabricPartitionQuorumLossProgressResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Progress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricPartitionRestartProgressResult(::windows::core::IUnknown); +pub struct IFabricPartitionRestartProgressResult(::windows_core::IUnknown); impl IFabricPartitionRestartProgressResult { pub unsafe fn get_Progress(&self) -> *mut super::super::FABRIC_PARTITION_RESTART_PROGRESS { - (::windows::core::Vtable::vtable(self).get_Progress)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Progress)(::windows_core::Interface::as_raw( + self, + )) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricPartitionRestartProgressResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricPartitionRestartProgressResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricPartitionRestartProgressResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -23539,44 +23186,45 @@ impl ::core::fmt::Debug for IFabricPartitionRestartProgressResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricPartitionRestartProgressResult { +unsafe impl ::windows_core::Interface for IFabricPartitionRestartProgressResult { type Vtable = IFabricPartitionRestartProgressResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricPartitionRestartProgressResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xd2cb2ee1_a1ba_4cbd_80f7_14fd3d55bb61); +impl ::core::clone::Clone for IFabricPartitionRestartProgressResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricPartitionRestartProgressResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xd2cb2ee1_a1ba_4cbd_80f7_14fd3d55bb61); } #[repr(C)] #[doc(hidden)] pub struct IFabricPartitionRestartProgressResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Progress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_PARTITION_RESTART_PROGRESS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricPropertyBatchResult(::windows::core::IUnknown); +pub struct IFabricPropertyBatchResult(::windows_core::IUnknown); impl IFabricPropertyBatchResult { pub unsafe fn GetProperty( &self, operationindexinrequest: u32, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetProperty)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetProperty)( + ::windows_core::Interface::as_raw(self), operationindexinrequest, - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricPropertyBatchResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricPropertyBatchResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricPropertyBatchResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricPropertyBatchResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -23590,55 +23238,59 @@ impl ::core::fmt::Debug for IFabricPropertyBatchResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricPropertyBatchResult { +unsafe impl ::windows_core::Interface for IFabricPropertyBatchResult { type Vtable = IFabricPropertyBatchResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricPropertyBatchResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xee747ff5_3fbb_46a8_adbc_47ce09c48bbe); +impl ::core::clone::Clone for IFabricPropertyBatchResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricPropertyBatchResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xee747ff5_3fbb_46a8_adbc_47ce09c48bbe); } #[repr(C)] #[doc(hidden)] pub struct IFabricPropertyBatchResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub GetProperty: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, operationindexinrequest: u32, property: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricPropertyEnumerationResult(::windows::core::IUnknown); +pub struct IFabricPropertyEnumerationResult(::windows_core::IUnknown); impl IFabricPropertyEnumerationResult { pub unsafe fn get_EnumerationStatus(&self) -> super::super::FABRIC_ENUMERATION_STATUS { - (::windows::core::Vtable::vtable(self).get_EnumerationStatus)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_EnumerationStatus)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn get_PropertyCount(&self) -> u32 { - (::windows::core::Vtable::vtable(self).get_PropertyCount)(::windows::core::Vtable::as_raw( - self, - )) + (::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::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetProperty)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetProperty)( + ::windows_core::Interface::as_raw(self), index, - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricPropertyEnumerationResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricPropertyEnumerationResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!( + IFabricPropertyEnumerationResult, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricPropertyEnumerationResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -23652,17 +23304,22 @@ impl ::core::fmt::Debug for IFabricPropertyEnumerationResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricPropertyEnumerationResult { +unsafe impl ::windows_core::Interface for IFabricPropertyEnumerationResult { type Vtable = IFabricPropertyEnumerationResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricPropertyEnumerationResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa42da40d_a637_478d_83f3_2813871234cf); +impl ::core::clone::Clone for IFabricPropertyEnumerationResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricPropertyEnumerationResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa42da40d_a637_478d_83f3_2813871234cf); } #[repr(C)] #[doc(hidden)] pub struct IFabricPropertyEnumerationResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_EnumerationStatus: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) @@ -23672,532 +23329,507 @@ pub struct IFabricPropertyEnumerationResult_Vtbl { this: *mut ::core::ffi::c_void, index: u32, property: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricPropertyManagementClient(::windows::core::IUnknown); +pub struct IFabricPropertyManagementClient(::windows_core::IUnknown); impl IFabricPropertyManagementClient { - pub unsafe fn BeginCreateName<'a, P0>( + pub unsafe fn BeginCreateName( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateName)( + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateName<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateName(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndCreateName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndCreateName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteName<'a, P0>( + pub unsafe fn BeginDeleteName( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteName)( + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteName<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteName(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndDeleteName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndDeleteName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginNameExists<'a, P0>( + pub unsafe fn BeginNameExists( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginNameExists)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginNameExists)( + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndNameExists<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndNameExists(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndNameExists)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndNameExists)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginEnumerateSubNames<'a, P0, P1, P2>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginEnumerateSubNames( &self, name: *const u16, previousresult: P0, recursive: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricNameEnumerationResult>>, - P1: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginEnumerateSubNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - previousresult.into().abi(), - recursive.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginEnumerateSubNames)( + ::windows_core::Interface::as_raw(self), + name, + previousresult.into_param().abi(), + recursive.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndEnumerateSubNames<'a, P0>( + pub unsafe fn EndEnumerateSubNames( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndEnumerateSubNames)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndEnumerateSubNames)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginPutPropertyBinary<'a, P0, P1>( + pub unsafe fn BeginPutPropertyBinary( &self, name: *const u16, propertyname: P0, data: &[u8], timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPutPropertyBinary)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPutPropertyBinary)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), data.len() as _, ::core::mem::transmute(data.as_ptr()), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndPutPropertyBinary<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndPutPropertyBinary(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndPutPropertyBinary)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndPutPropertyBinary)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginPutPropertyInt64<'a, P0, P1>( + pub unsafe fn BeginPutPropertyInt64( &self, name: *const u16, propertyname: P0, data: i64, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPutPropertyInt64)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPutPropertyInt64)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), data, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndPutPropertyInt64<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndPutPropertyInt64(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndPutPropertyInt64)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndPutPropertyInt64)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginPutPropertyDouble<'a, P0, P1>( + pub unsafe fn BeginPutPropertyDouble( &self, name: *const u16, propertyname: P0, data: f64, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPutPropertyDouble)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPutPropertyDouble)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), data, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndPutPropertyDouble<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndPutPropertyDouble(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndPutPropertyDouble)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndPutPropertyDouble)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginPutPropertyWString<'a, P0, P1, P2>( + pub unsafe fn BeginPutPropertyWString( &self, name: *const u16, propertyname: P0, data: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPutPropertyWString)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - data.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPutPropertyWString)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndPutPropertyWString<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndPutPropertyWString(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndPutPropertyWString)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndPutPropertyWString)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginPutPropertyGuid<'a, P0, P1>( + pub unsafe fn BeginPutPropertyGuid( &self, name: *const u16, propertyname: P0, - data: *const ::windows::core::GUID, + data: *const ::windows_core::GUID, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPutPropertyGuid)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - ::core::mem::transmute(data), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPutPropertyGuid)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndPutPropertyGuid<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndPutPropertyGuid(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndPutPropertyGuid)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndPutPropertyGuid)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteProperty<'a, P0, P1>( + pub unsafe fn BeginDeleteProperty( &self, name: *const u16, propertyname: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteProperty)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteProperty)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteProperty<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteProperty(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndDeleteProperty)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndDeleteProperty)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPropertyMetadata<'a, P0, P1>( + pub unsafe fn BeginGetPropertyMetadata( &self, name: *const u16, propertyname: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPropertyMetadata)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPropertyMetadata)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPropertyMetadata<'a, P0>( + pub unsafe fn EndGetPropertyMetadata( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPropertyMetadata)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPropertyMetadata)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProperty<'a, P0, P1>( + pub unsafe fn BeginGetProperty( &self, name: *const u16, propertyname: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetProperty)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetProperty)( + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProperty<'a, P0>( + pub unsafe fn EndGetProperty( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetProperty)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetProperty)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginSubmitPropertyBatch<'a, P0>( + pub unsafe fn BeginSubmitPropertyBatch( &self, name: *const u16, operations: &[super::super::FABRIC_PROPERTY_BATCH_OPERATION], timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginSubmitPropertyBatch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginSubmitPropertyBatch)( + ::windows_core::Interface::as_raw(self), + name, operations.len() as _, ::core::mem::transmute(operations.as_ptr()), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndSubmitPropertyBatch<'a, P0>( + pub unsafe fn EndSubmitPropertyBatch( &self, context: P0, failedoperationindexinrequest: *mut u32, result: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndSubmitPropertyBatch)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(failedoperationindexinrequest), + (::windows_core::Interface::vtable(self).EndSubmitPropertyBatch)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + failedoperationindexinrequest, ::core::mem::transmute(result), ) .ok() } - pub unsafe fn BeginEnumerateProperties<'a, P0, P1, P2>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginEnumerateProperties( &self, name: *const u16, includevalues: P0, previousresult: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricPropertyEnumerationResult>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginEnumerateProperties)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - includevalues.into(), - previousresult.into().abi(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginEnumerateProperties)( + ::windows_core::Interface::as_raw(self), + name, + includevalues.into_param().abi(), + previousresult.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndEnumerateProperties<'a, P0>( + pub unsafe fn EndEnumerateProperties( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndEnumerateProperties)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndEnumerateProperties)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricPropertyManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricPropertyManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!( + IFabricPropertyManagementClient, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricPropertyManagementClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -24211,51 +23843,57 @@ impl ::core::fmt::Debug for IFabricPropertyManagementClient { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricPropertyManagementClient { +unsafe impl ::windows_core::Interface for IFabricPropertyManagementClient { type Vtable = IFabricPropertyManagementClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricPropertyManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x26e58816_b5d5_4f08_9770_dbf0410c99d6); +impl ::core::clone::Clone for IFabricPropertyManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricPropertyManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x26e58816_b5d5_4f08_9770_dbf0410c99d6); } #[repr(C)] #[doc(hidden)] pub struct IFabricPropertyManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginCreateName: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndCreateName: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginDeleteName: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndDeleteName: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginNameExists: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndNameExists: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, value: *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginEnumerateSubNames: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, @@ -24264,116 +23902,118 @@ pub struct IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginEnumerateSubNames: usize, pub EndEnumerateSubNames: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginPutPropertyBinary: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, datalength: u32, data: *const u8, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndPutPropertyBinary: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginPutPropertyInt64: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, data: i64, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndPutPropertyInt64: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginPutPropertyDouble: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, data: f64, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndPutPropertyDouble: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginPutPropertyWString: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, - data: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, + data: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndPutPropertyWString: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginPutPropertyGuid: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, - data: *const ::windows::core::GUID, + propertyname: ::windows_core::PCWSTR, + data: *const ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndPutPropertyGuid: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginDeleteProperty: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndDeleteProperty: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetPropertyMetadata: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetPropertyMetadata: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetProperty: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, - propertyname: ::windows::core::PCWSTR, + propertyname: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetProperty: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginSubmitPropertyBatch: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, @@ -24382,13 +24022,14 @@ pub struct IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndSubmitPropertyBatch: unsafe extern "system" fn( 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, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginEnumerateProperties: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, @@ -24397,609 +24038,599 @@ pub struct IFabricPropertyManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginEnumerateProperties: usize, pub EndEnumerateProperties: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricPropertyManagementClient2(::windows::core::IUnknown); +pub struct IFabricPropertyManagementClient2(::windows_core::IUnknown); impl IFabricPropertyManagementClient2 { - pub unsafe fn BeginCreateName<'a, P0>( + pub unsafe fn BeginCreateName( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginCreateName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginCreateName)( + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateName<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateName(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndCreateName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).base__.EndCreateName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteName<'a, P0>( + pub unsafe fn BeginDeleteName( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginDeleteName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginDeleteName)( + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteName<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteName(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndDeleteName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).base__.EndDeleteName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginNameExists<'a, P0>( + pub unsafe fn BeginNameExists( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginNameExists)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginNameExists)( + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndNameExists<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndNameExists(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndNameExists)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.EndNameExists)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginEnumerateSubNames<'a, P0, P1, P2>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginEnumerateSubNames( &self, name: *const u16, previousresult: P0, recursive: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricNameEnumerationResult>>, - P1: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginEnumerateSubNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - previousresult.into().abi(), - recursive.into(), + ::windows_core::Interface::as_raw(self), + name, + previousresult.into_param().abi(), + recursive.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndEnumerateSubNames<'a, P0>( + pub unsafe fn EndEnumerateSubNames( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndEnumerateSubNames)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginPutPropertyBinary<'a, P0, P1>( + pub unsafe fn BeginPutPropertyBinary( &self, name: *const u16, propertyname: P0, data: &[u8], timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginPutPropertyBinary)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), data.len() as _, ::core::mem::transmute(data.as_ptr()), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndPutPropertyBinary<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndPutPropertyBinary(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndPutPropertyBinary)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginPutPropertyInt64<'a, P0, P1>( + pub unsafe fn BeginPutPropertyInt64( &self, name: *const u16, propertyname: P0, data: i64, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginPutPropertyInt64)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), data, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndPutPropertyInt64<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndPutPropertyInt64(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndPutPropertyInt64)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginPutPropertyDouble<'a, P0, P1>( + pub unsafe fn BeginPutPropertyDouble( &self, name: *const u16, propertyname: P0, data: f64, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginPutPropertyDouble)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), data, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndPutPropertyDouble<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndPutPropertyDouble(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndPutPropertyDouble)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginPutPropertyWString<'a, P0, P1, P2>( + pub unsafe fn BeginPutPropertyWString( &self, name: *const u16, propertyname: P0, data: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginPutPropertyWString)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - data.into(), + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndPutPropertyWString<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndPutPropertyWString(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndPutPropertyWString)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginPutPropertyGuid<'a, P0, P1>( + pub unsafe fn BeginPutPropertyGuid( &self, name: *const u16, propertyname: P0, - data: *const ::windows::core::GUID, + data: *const ::windows_core::GUID, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginPutPropertyGuid)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), - ::core::mem::transmute(data), + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), + data, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndPutPropertyGuid<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndPutPropertyGuid(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .EndPutPropertyGuid)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndPutPropertyGuid)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginDeleteProperty<'a, P0, P1>( + pub unsafe fn BeginDeleteProperty( &self, name: *const u16, propertyname: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginDeleteProperty)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteProperty<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteProperty(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .EndDeleteProperty)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeleteProperty)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetPropertyMetadata<'a, P0, P1>( + pub unsafe fn BeginGetPropertyMetadata( &self, name: *const u16, propertyname: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetPropertyMetadata)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPropertyMetadata<'a, P0>( + pub unsafe fn EndGetPropertyMetadata( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetPropertyMetadata)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProperty<'a, P0, P1>( + pub unsafe fn BeginGetProperty( &self, name: *const u16, propertyname: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetProperty)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - propertyname.into(), + ::windows_core::Interface::as_raw(self), + name, + propertyname.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProperty<'a, P0>( + pub unsafe fn EndGetProperty( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndGetProperty)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetProperty)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginSubmitPropertyBatch<'a, P0>( + pub unsafe fn BeginSubmitPropertyBatch( &self, name: *const u16, operations: &[super::super::FABRIC_PROPERTY_BATCH_OPERATION], timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginSubmitPropertyBatch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, operations.len() as _, ::core::mem::transmute(operations.as_ptr()), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndSubmitPropertyBatch<'a, P0>( + pub unsafe fn EndSubmitPropertyBatch( &self, context: P0, failedoperationindexinrequest: *mut u32, result: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndSubmitPropertyBatch)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(failedoperationindexinrequest), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + failedoperationindexinrequest, ::core::mem::transmute(result), ) .ok() } - pub unsafe fn BeginEnumerateProperties<'a, P0, P1, P2>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginEnumerateProperties( &self, name: *const u16, includevalues: P0, previousresult: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricPropertyEnumerationResult>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginEnumerateProperties)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - includevalues.into(), - previousresult.into().abi(), + ::windows_core::Interface::as_raw(self), + name, + includevalues.into_param().abi(), + previousresult.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndEnumerateProperties<'a, P0>( + pub unsafe fn EndEnumerateProperties( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndEnumerateProperties)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginPutCustomPropertyOperation<'a, P0>( + pub unsafe fn BeginPutCustomPropertyOperation( &self, name: *const u16, propertyoperation: *const super::super::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPutCustomPropertyOperation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(propertyoperation), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPutCustomPropertyOperation)( + ::windows_core::Interface::as_raw(self), + name, + propertyoperation, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndPutCustomPropertyOperation<'a, P0>( + pub unsafe fn EndPutCustomPropertyOperation( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndPutCustomPropertyOperation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndPutCustomPropertyOperation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricPropertyManagementClient2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricPropertyManagementClient ); -impl ::core::clone::Clone for IFabricPropertyManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricPropertyManagementClient2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -25013,12 +24644,17 @@ impl ::core::fmt::Debug for IFabricPropertyManagementClient2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricPropertyManagementClient2 { +unsafe impl ::windows_core::Interface for IFabricPropertyManagementClient2 { type Vtable = IFabricPropertyManagementClient2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricPropertyManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x04991c28_3f9d_4a49_9322_a56d308965fd); +impl ::core::clone::Clone for IFabricPropertyManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricPropertyManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x04991c28_3f9d_4a49_9322_a56d308965fd); } #[repr(C)] #[doc(hidden)] @@ -25031,25 +24667,25 @@ pub struct IFabricPropertyManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndPutCustomPropertyOperation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricPropertyMetadataResult(::windows::core::IUnknown); +pub struct IFabricPropertyMetadataResult(::windows_core::IUnknown); impl IFabricPropertyMetadataResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_Metadata(&self) -> *mut super::super::FABRIC_NAMED_PROPERTY_METADATA { - (::windows::core::Vtable::vtable(self).get_Metadata)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricPropertyMetadataResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricPropertyMetadataResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_Metadata)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!(IFabricPropertyMetadataResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricPropertyMetadataResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -25063,79 +24699,87 @@ impl ::core::fmt::Debug for IFabricPropertyMetadataResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricPropertyMetadataResult { +unsafe impl ::windows_core::Interface for IFabricPropertyMetadataResult { type Vtable = IFabricPropertyMetadataResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricPropertyMetadataResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x33302306_fb8d_4831_b493_57efcc772462); +impl ::core::clone::Clone for IFabricPropertyMetadataResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricPropertyMetadataResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x33302306_fb8d_4831_b493_57efcc772462); } #[repr(C)] #[doc(hidden)] pub struct IFabricPropertyMetadataResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_Metadata: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_NAMED_PROPERTY_METADATA, + #[cfg(not(feature = "Win32_Foundation"))] + get_Metadata: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricPropertyValueResult(::windows::core::IUnknown); +pub struct IFabricPropertyValueResult(::windows_core::IUnknown); impl IFabricPropertyValueResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_Property(&self) -> *mut super::super::FABRIC_NAMED_PROPERTY { - (::windows::core::Vtable::vtable(self).get_Property)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Property)(::windows_core::Interface::as_raw( + self, + )) } pub unsafe fn GetValueAsBinary( &self, bytecount: *mut u32, bufferedvalue: *mut *mut u8, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetValueAsBinary)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(bytecount), - ::core::mem::transmute(bufferedvalue), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetValueAsBinary)( + ::windows_core::Interface::as_raw(self), + bytecount, + bufferedvalue, ) .ok() } - pub unsafe fn GetValueAsInt64(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetValueAsInt64)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetValueAsInt64(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetValueAsInt64)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetValueAsDouble(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetValueAsDouble)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetValueAsDouble(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetValueAsDouble)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetValueAsWString(&self) -> ::windows::core::Result<::windows::core::PWSTR> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetValueAsWString)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetValueAsWString(&self) -> ::windows_core::Result<::windows_core::PCWSTR> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetValueAsWString)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::<::windows::core::PWSTR>(result__) + .from_abi(result__) } - pub unsafe fn GetValueAsGuid(&self) -> ::windows::core::Result<::windows::core::GUID> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetValueAsGuid)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetValueAsGuid(&self) -> ::windows_core::Result<::windows_core::GUID> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetValueAsGuid)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::<::windows::core::GUID>(result__) - } -} -::windows::core::interface_hierarchy!(IFabricPropertyValueResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricPropertyValueResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricPropertyValueResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricPropertyValueResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -25149,484 +24793,464 @@ impl ::core::fmt::Debug for IFabricPropertyValueResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricPropertyValueResult { +unsafe impl ::windows_core::Interface for IFabricPropertyValueResult { type Vtable = IFabricPropertyValueResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricPropertyValueResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9a518b49_9903_4b8f_834e_1979e9c6745e); +impl ::core::clone::Clone for IFabricPropertyValueResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricPropertyValueResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9a518b49_9903_4b8f_834e_1979e9c6745e); } #[repr(C)] #[doc(hidden)] pub struct IFabricPropertyValueResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_Property: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_NAMED_PROPERTY, + #[cfg(not(feature = "Win32_Foundation"))] + get_Property: usize, pub GetValueAsBinary: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, bytecount: *mut u32, bufferedvalue: *mut *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetValueAsInt64: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, value: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetValueAsDouble: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, value: *mut f64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetValueAsWString: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::HRESULT, + bufferedvalue: *mut ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT, pub GetValueAsGuid: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - value: *mut ::windows::core::GUID, - ) -> ::windows::core::HRESULT, + value: *mut ::windows_core::GUID, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricQueryClient(::windows::core::IUnknown); +pub struct IFabricQueryClient(::windows_core::IUnknown); impl IFabricQueryClient { - pub unsafe fn BeginGetNodeList<'a, P0>( + pub unsafe fn BeginGetNodeList( &self, querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNodeList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList<'a, P0>( + pub unsafe fn EndGetNodeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( + pub unsafe fn BeginGetApplicationTypeList( &self, querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( + pub unsafe fn EndGetApplicationTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( + pub unsafe fn BeginGetServiceTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceTypeList<'a, P0>( + pub unsafe fn EndGetServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationList<'a, P0>( + pub unsafe fn BeginGetApplicationList( &self, querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList<'a, P0>( + pub unsafe fn EndGetApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceList<'a, P0>( + pub unsafe fn BeginGetServiceList( &self, querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList<'a, P0>( + pub unsafe fn EndGetServiceList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionList<'a, P0>( + pub unsafe fn BeginGetPartitionList( &self, querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList<'a, P0>( + pub unsafe fn EndGetPartitionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaList<'a, P0>( + pub unsafe fn BeginGetReplicaList( &self, querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList<'a, P0>( + pub unsafe fn EndGetReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( + pub unsafe fn BeginGetDeployedApplicationList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( + pub unsafe fn EndGetDeployedApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedApplicationList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedServicePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedServicePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn BeginGetDeployedServiceTypeList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn EndGetDeployedServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedServiceTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedCodePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( + pub unsafe fn EndGetDeployedCodePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedCodePackageList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( + pub unsafe fn EndGetDeployedReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedReplicaList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricQueryClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricQueryClient { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricQueryClient, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricQueryClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -25638,113 +25262,118 @@ impl ::core::fmt::Debug for IFabricQueryClient { f.debug_tuple("IFabricQueryClient").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricQueryClient { +unsafe impl ::windows_core::Interface for IFabricQueryClient { type Vtable = IFabricQueryClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricQueryClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc629e422_90ba_4efd_8f64_cecf51bc3df0); +impl ::core::clone::Clone for IFabricQueryClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricQueryClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc629e422_90ba_4efd_8f64_cecf51bc3df0); } #[repr(C)] #[doc(hidden)] pub struct IFabricQueryClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginGetNodeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetNodeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetApplicationTypeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetApplicationTypeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetServiceTypeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetServiceTypeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetApplicationList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetApplicationList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetServiceList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetServiceList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetPartitionList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetPartitionList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetReplicaList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetReplicaList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetDeployedApplicationList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetDeployedApplicationList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetDeployedServicePackageList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, @@ -25752,66 +25381,64 @@ pub struct IFabricQueryClient_Vtbl { callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub EndGetDeployedServicePackageList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetDeployedServiceTypeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetDeployedServiceTypeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetDeployedCodePackageList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetDeployedCodePackageList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetDeployedReplicaList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetDeployedReplicaList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricQueryClient10(::windows::core::IUnknown); +pub struct IFabricQueryClient10(::windows_core::IUnknown); impl IFabricQueryClient10 { - pub unsafe fn BeginGetNodeList<'a, P0>( + pub unsafe fn BeginGetNodeList( &self, querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -25822,23 +25449,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList<'a, P0>( + pub unsafe fn EndGetNodeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -25849,25 +25476,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( + pub unsafe fn BeginGetApplicationTypeList( &self, querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -25878,23 +25503,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( + pub unsafe fn EndGetApplicationTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -25905,25 +25530,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( + pub unsafe fn BeginGetServiceTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -25934,23 +25557,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceTypeList<'a, P0>( + pub unsafe fn EndGetServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -25961,25 +25584,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationList<'a, P0>( + pub unsafe fn BeginGetApplicationList( &self, querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -25990,23 +25611,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList<'a, P0>( + pub unsafe fn EndGetApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26017,25 +25638,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceList<'a, P0>( + pub unsafe fn BeginGetServiceList( &self, querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26046,23 +25665,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList<'a, P0>( + pub unsafe fn EndGetServiceList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26073,25 +25692,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionList<'a, P0>( + pub unsafe fn BeginGetPartitionList( &self, querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26102,23 +25719,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList<'a, P0>( + pub unsafe fn EndGetPartitionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26129,25 +25746,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaList<'a, P0>( + pub unsafe fn BeginGetReplicaList( &self, querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26158,23 +25773,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList<'a, P0>( + pub unsafe fn EndGetReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26185,25 +25800,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( + pub unsafe fn BeginGetDeployedApplicationList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26214,23 +25827,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( + pub unsafe fn EndGetDeployedApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26241,25 +25854,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedServicePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26270,23 +25881,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26297,25 +25908,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn BeginGetDeployedServiceTypeList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26326,23 +25935,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn EndGetDeployedServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26353,25 +25962,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedCodePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26382,23 +25989,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( + pub unsafe fn EndGetDeployedCodePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26409,25 +26016,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26438,23 +26043,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( + pub unsafe fn EndGetDeployedReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26465,25 +26070,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaDetail( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26493,23 +26096,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn EndGetDeployedReplicaDetail( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26519,24 +26122,22 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( + pub unsafe fn BeginGetClusterLoadInformation( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26546,22 +26147,22 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( + pub unsafe fn EndGetClusterLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26571,25 +26172,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( + pub unsafe fn BeginGetPartitionLoadInformation( &self, querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26599,23 +26198,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( + pub unsafe fn EndGetPartitionLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26625,25 +26224,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26653,23 +26250,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricCodeVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26679,25 +26276,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26707,23 +26302,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricConfigVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26733,25 +26328,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( + pub unsafe fn BeginGetNodeLoadInformation( &self, querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26760,23 +26353,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( + pub unsafe fn EndGetNodeLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26785,25 +26378,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( + pub unsafe fn BeginGetReplicaLoadInformation( &self, querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26812,23 +26403,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( + pub unsafe fn EndGetReplicaLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26837,25 +26428,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26863,23 +26452,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26887,25 +26476,23 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26913,23 +26500,23 @@ impl IFabricQueryClient10 { .base__ .base__ .BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -26937,368 +26524,362 @@ impl IFabricQueryClient10 { .base__ .base__ .EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetUnplacedReplicaInformation<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetUnplacedReplicaInformation( &self, querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetUnplacedReplicaInformation<'a, P0>( + pub unsafe fn EndGetUnplacedReplicaInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList2<'a, P0>( + pub unsafe fn EndGetNodeList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetNodeList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList2<'a, P0>( + pub unsafe fn EndGetApplicationList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetApplicationList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList2<'a, P0>( + pub unsafe fn EndGetServiceList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetServiceList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList2<'a, P0>( + pub unsafe fn EndGetPartitionList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetPartitionList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList2<'a, P0>( + pub unsafe fn EndGetReplicaList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetReplicaList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationLoadInformation<'a, P0>( + pub unsafe fn BeginGetApplicationLoadInformation( &self, querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationLoadInformation<'a, P0>( + pub unsafe fn EndGetApplicationLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceName<'a, P0>( + pub unsafe fn BeginGetServiceName( &self, querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetServiceName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceName<'a, P0>( + pub unsafe fn EndGetServiceName( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetServiceName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationName<'a, P0>( + pub unsafe fn BeginGetApplicationName( &self, querydescription: *const super::super::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetApplicationName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationName<'a, P0>( + pub unsafe fn EndGetApplicationName( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetApplicationName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationTypePagedList<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetApplicationTypePagedList( &self, querydescription: *const super::super::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetApplicationTypePagedList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationTypePagedList<'a, P0>( + pub unsafe fn EndGetApplicationTypePagedList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetApplicationTypePagedList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationPagedList<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetDeployedApplicationPagedList( &self, querydescription: *const super::super::FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedApplicationPagedList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedApplicationPagedList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationPagedList<'a, P0>( + pub unsafe fn EndGetDeployedApplicationPagedList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedApplicationPagedList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedApplicationPagedList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricQueryClient10, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricQueryClient, IFabricQueryClient2, IFabricQueryClient3, @@ -27309,11 +26890,6 @@ impl IFabricQueryClient10 { IFabricQueryClient8, IFabricQueryClient9 ); -impl ::core::clone::Clone for IFabricQueryClient10 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricQueryClient10 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -27327,17 +26903,23 @@ impl ::core::fmt::Debug for IFabricQueryClient10 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricQueryClient10 { +unsafe impl ::windows_core::Interface for IFabricQueryClient10 { type Vtable = IFabricQueryClient10_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricQueryClient10 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x02139da8_7140_42ae_8403_79a551600e63); +impl ::core::clone::Clone for IFabricQueryClient10 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricQueryClient10 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x02139da8_7140_42ae_8403_79a551600e63); } #[repr(C)] #[doc(hidden)] pub struct IFabricQueryClient10_Vtbl { pub base__: IFabricQueryClient9_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginGetDeployedApplicationPagedList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, @@ -27345,684 +26927,650 @@ pub struct IFabricQueryClient10_Vtbl { callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetDeployedApplicationPagedList: usize, pub EndGetDeployedApplicationPagedList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricQueryClient2(::windows::core::IUnknown); +pub struct IFabricQueryClient2(::windows_core::IUnknown); impl IFabricQueryClient2 { - pub unsafe fn BeginGetNodeList<'a, P0>( + pub unsafe fn BeginGetNodeList( &self, querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList<'a, P0>( + pub unsafe fn EndGetNodeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetNodeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( + pub unsafe fn BeginGetApplicationTypeList( &self, querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( + pub unsafe fn EndGetApplicationTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( + pub unsafe fn BeginGetServiceTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceTypeList<'a, P0>( + pub unsafe fn EndGetServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationList<'a, P0>( + pub unsafe fn BeginGetApplicationList( &self, querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList<'a, P0>( + pub unsafe fn EndGetApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceList<'a, P0>( + pub unsafe fn BeginGetServiceList( &self, querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList<'a, P0>( + pub unsafe fn EndGetServiceList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionList<'a, P0>( + pub unsafe fn BeginGetPartitionList( &self, querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList<'a, P0>( + pub unsafe fn EndGetPartitionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaList<'a, P0>( + pub unsafe fn BeginGetReplicaList( &self, querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList<'a, P0>( + pub unsafe fn EndGetReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( + pub unsafe fn BeginGetDeployedApplicationList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( + pub unsafe fn EndGetDeployedApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedServicePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn BeginGetDeployedServiceTypeList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn EndGetDeployedServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedCodePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( + pub unsafe fn EndGetDeployedCodePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( + pub unsafe fn EndGetDeployedReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaDetail( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn EndGetDeployedReplicaDetail( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetDeployedReplicaDetail)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( + pub unsafe fn BeginGetClusterLoadInformation( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( + pub unsafe fn EndGetClusterLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetClusterLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( + pub unsafe fn BeginGetPartitionLoadInformation( &self, querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( + pub unsafe fn EndGetPartitionLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricCodeVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetProvisionedFabricCodeVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricConfigVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetProvisionedFabricConfigVersionList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricQueryClient2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricQueryClient ); -impl ::core::clone::Clone for IFabricQueryClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricQueryClient2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -28034,805 +27582,768 @@ impl ::core::fmt::Debug for IFabricQueryClient2 { f.debug_tuple("IFabricQueryClient2").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricQueryClient2 { +unsafe impl ::windows_core::Interface for IFabricQueryClient2 { type Vtable = IFabricQueryClient2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricQueryClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4e6d5d61_24c8_4240_a2e8_bcb1fc15d9af); +impl ::core::clone::Clone for IFabricQueryClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricQueryClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4e6d5d61_24c8_4240_a2e8_bcb1fc15d9af); } #[repr(C)] #[doc(hidden)] -pub struct IFabricQueryClient2_Vtbl where { pub base__ : IFabricQueryClient_Vtbl , pub BeginGetDeployedReplicaDetail :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetDeployedReplicaDetail :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetClusterLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetClusterLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetPartitionLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetPartitionLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetProvisionedFabricCodeVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetProvisionedFabricCodeVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetProvisionedFabricConfigVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetProvisionedFabricConfigVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , } +pub struct IFabricQueryClient2_Vtbl where { pub base__ : IFabricQueryClient_Vtbl , pub BeginGetDeployedReplicaDetail :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetDeployedReplicaDetail :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetClusterLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetClusterLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetPartitionLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetPartitionLoadInformation :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetProvisionedFabricCodeVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetProvisionedFabricCodeVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetProvisionedFabricConfigVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , querydescription : *const super::super:: FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetProvisionedFabricConfigVersionList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricQueryClient3(::windows::core::IUnknown); +pub struct IFabricQueryClient3(::windows_core::IUnknown); impl IFabricQueryClient3 { - pub unsafe fn BeginGetNodeList<'a, P0>( + pub unsafe fn BeginGetNodeList( &self, querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList<'a, P0>( + pub unsafe fn EndGetNodeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( + pub unsafe fn BeginGetApplicationTypeList( &self, querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( + pub unsafe fn EndGetApplicationTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( + pub unsafe fn BeginGetServiceTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceTypeList<'a, P0>( + pub unsafe fn EndGetServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationList<'a, P0>( + pub unsafe fn BeginGetApplicationList( &self, querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList<'a, P0>( + pub unsafe fn EndGetApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceList<'a, P0>( + pub unsafe fn BeginGetServiceList( &self, querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList<'a, P0>( + pub unsafe fn EndGetServiceList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionList<'a, P0>( + pub unsafe fn BeginGetPartitionList( &self, querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList<'a, P0>( + pub unsafe fn EndGetPartitionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaList<'a, P0>( + pub unsafe fn BeginGetReplicaList( &self, querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList<'a, P0>( + pub unsafe fn EndGetReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( + pub unsafe fn BeginGetDeployedApplicationList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( + pub unsafe fn EndGetDeployedApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedServicePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn BeginGetDeployedServiceTypeList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn EndGetDeployedServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedCodePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( + pub unsafe fn EndGetDeployedCodePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( + pub unsafe fn EndGetDeployedReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaDetail( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn EndGetDeployedReplicaDetail( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( + pub unsafe fn BeginGetClusterLoadInformation( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( + pub unsafe fn EndGetClusterLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( + pub unsafe fn BeginGetPartitionLoadInformation( &self, querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( + pub unsafe fn EndGetPartitionLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricCodeVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricConfigVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( + pub unsafe fn BeginGetNodeLoadInformation( &self, querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( + pub unsafe fn EndGetNodeLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNodeLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( + pub unsafe fn BeginGetReplicaLoadInformation( &self, querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( + pub unsafe fn EndGetReplicaLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetReplicaLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricQueryClient3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricQueryClient, IFabricQueryClient2 ); -impl ::core::clone::Clone for IFabricQueryClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricQueryClient3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -28844,12 +28355,17 @@ impl ::core::fmt::Debug for IFabricQueryClient3 { f.debug_tuple("IFabricQueryClient3").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricQueryClient3 { +unsafe impl ::windows_core::Interface for IFabricQueryClient3 { type Vtable = IFabricQueryClient3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricQueryClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x16f563f3_4017_496e_b0e7_2650de5774b3); +impl ::core::clone::Clone for IFabricQueryClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricQueryClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x16f563f3_4017_496e_b0e7_2650de5774b3); } #[repr(C)] #[doc(hidden)] @@ -28861,929 +28377,883 @@ pub struct IFabricQueryClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetNodeLoadInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetReplicaLoadInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetReplicaLoadInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricQueryClient4(::windows::core::IUnknown); +pub struct IFabricQueryClient4(::windows_core::IUnknown); impl IFabricQueryClient4 { - pub unsafe fn BeginGetNodeList<'a, P0>( + pub unsafe fn BeginGetNodeList( &self, querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList<'a, P0>( + pub unsafe fn EndGetNodeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( + pub unsafe fn BeginGetApplicationTypeList( &self, querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( + pub unsafe fn EndGetApplicationTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( + pub unsafe fn BeginGetServiceTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceTypeList<'a, P0>( + pub unsafe fn EndGetServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationList<'a, P0>( + pub unsafe fn BeginGetApplicationList( &self, querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList<'a, P0>( + pub unsafe fn EndGetApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceList<'a, P0>( + pub unsafe fn BeginGetServiceList( &self, querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList<'a, P0>( + pub unsafe fn EndGetServiceList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionList<'a, P0>( + pub unsafe fn BeginGetPartitionList( &self, querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList<'a, P0>( + pub unsafe fn EndGetPartitionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaList<'a, P0>( + pub unsafe fn BeginGetReplicaList( &self, querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList<'a, P0>( + pub unsafe fn EndGetReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( + pub unsafe fn BeginGetDeployedApplicationList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( + pub unsafe fn EndGetDeployedApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedServicePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn BeginGetDeployedServiceTypeList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn EndGetDeployedServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedCodePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( + pub unsafe fn EndGetDeployedCodePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( + pub unsafe fn EndGetDeployedReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaDetail( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn EndGetDeployedReplicaDetail( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( + pub unsafe fn BeginGetClusterLoadInformation( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( + pub unsafe fn EndGetClusterLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( + pub unsafe fn BeginGetPartitionLoadInformation( &self, querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( + pub unsafe fn EndGetPartitionLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricCodeVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricConfigVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( + pub unsafe fn BeginGetNodeLoadInformation( &self, querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( + pub unsafe fn EndGetNodeLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( + pub unsafe fn BeginGetReplicaLoadInformation( &self, querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( + pub unsafe fn EndGetReplicaLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceGroupMemberList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceGroupMemberTypeList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricQueryClient4, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricQueryClient, IFabricQueryClient2, IFabricQueryClient3 ); -impl ::core::clone::Clone for IFabricQueryClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricQueryClient4 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -29795,12 +29265,17 @@ impl ::core::fmt::Debug for IFabricQueryClient4 { f.debug_tuple("IFabricQueryClient4").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricQueryClient4 { +unsafe impl ::windows_core::Interface for IFabricQueryClient4 { type Vtable = IFabricQueryClient4_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricQueryClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xab92081d_0d78_410b_9777_0846dba24c10); +impl ::core::clone::Clone for IFabricQueryClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricQueryClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xab92081d_0d78_410b_9777_0846dba24c10); } #[repr(C)] #[doc(hidden)] @@ -29812,12 +29287,12 @@ pub struct IFabricQueryClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetServiceGroupMemberList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetServiceGroupMemberTypeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, @@ -29825,1001 +29300,954 @@ pub struct IFabricQueryClient4_Vtbl { callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub EndGetServiceGroupMemberTypeList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricQueryClient5(::windows::core::IUnknown); +pub struct IFabricQueryClient5(::windows_core::IUnknown); impl IFabricQueryClient5 { - pub unsafe fn BeginGetNodeList<'a, P0>( + pub unsafe fn BeginGetNodeList( &self, querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList<'a, P0>( + pub unsafe fn EndGetNodeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( + pub unsafe fn BeginGetApplicationTypeList( &self, querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( + pub unsafe fn EndGetApplicationTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( + pub unsafe fn BeginGetServiceTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceTypeList<'a, P0>( + pub unsafe fn EndGetServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationList<'a, P0>( + pub unsafe fn BeginGetApplicationList( &self, querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList<'a, P0>( + pub unsafe fn EndGetApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceList<'a, P0>( + pub unsafe fn BeginGetServiceList( &self, querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList<'a, P0>( + pub unsafe fn EndGetServiceList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionList<'a, P0>( + pub unsafe fn BeginGetPartitionList( &self, querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList<'a, P0>( + pub unsafe fn EndGetPartitionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaList<'a, P0>( + pub unsafe fn BeginGetReplicaList( &self, querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList<'a, P0>( + pub unsafe fn EndGetReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( + pub unsafe fn BeginGetDeployedApplicationList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( + pub unsafe fn EndGetDeployedApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedServicePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn BeginGetDeployedServiceTypeList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn EndGetDeployedServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedCodePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( + pub unsafe fn EndGetDeployedCodePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( + pub unsafe fn EndGetDeployedReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaDetail( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn EndGetDeployedReplicaDetail( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( + pub unsafe fn BeginGetClusterLoadInformation( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( + pub unsafe fn EndGetClusterLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( + pub unsafe fn BeginGetPartitionLoadInformation( &self, querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( + pub unsafe fn EndGetPartitionLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricCodeVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricConfigVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( + pub unsafe fn BeginGetNodeLoadInformation( &self, querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( + pub unsafe fn EndGetNodeLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( + pub unsafe fn BeginGetReplicaLoadInformation( &self, querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( + pub unsafe fn EndGetReplicaLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetUnplacedReplicaInformation<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetUnplacedReplicaInformation( &self, querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetUnplacedReplicaInformation<'a, P0>( + pub unsafe fn EndGetUnplacedReplicaInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetUnplacedReplicaInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricQueryClient5, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricQueryClient, IFabricQueryClient2, IFabricQueryClient3, IFabricQueryClient4 ); -impl ::core::clone::Clone for IFabricQueryClient5 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricQueryClient5 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -30831,17 +30259,23 @@ impl ::core::fmt::Debug for IFabricQueryClient5 { f.debug_tuple("IFabricQueryClient5").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricQueryClient5 { +unsafe impl ::windows_core::Interface for IFabricQueryClient5 { type Vtable = IFabricQueryClient5_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricQueryClient5 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x75c35e8c_87a2_4810_a401_b50da858fe34); +impl ::core::clone::Clone for IFabricQueryClient5 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricQueryClient5 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x75c35e8c_87a2_4810_a401_b50da858fe34); } #[repr(C)] #[doc(hidden)] pub struct IFabricQueryClient5_Vtbl { pub base__: IFabricQueryClient4_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginGetUnplacedReplicaInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, @@ -30849,1123 +30283,1078 @@ pub struct IFabricQueryClient5_Vtbl { callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetUnplacedReplicaInformation: usize, pub EndGetUnplacedReplicaInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricQueryClient6(::windows::core::IUnknown); +pub struct IFabricQueryClient6(::windows_core::IUnknown); impl IFabricQueryClient6 { - pub unsafe fn BeginGetNodeList<'a, P0>( + pub unsafe fn BeginGetNodeList( &self, querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList<'a, P0>( + pub unsafe fn EndGetNodeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( + pub unsafe fn BeginGetApplicationTypeList( &self, querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( + pub unsafe fn EndGetApplicationTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( + pub unsafe fn BeginGetServiceTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceTypeList<'a, P0>( + pub unsafe fn EndGetServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationList<'a, P0>( + pub unsafe fn BeginGetApplicationList( &self, querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList<'a, P0>( + pub unsafe fn EndGetApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceList<'a, P0>( + pub unsafe fn BeginGetServiceList( &self, querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList<'a, P0>( + pub unsafe fn EndGetServiceList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionList<'a, P0>( + pub unsafe fn BeginGetPartitionList( &self, querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList<'a, P0>( + pub unsafe fn EndGetPartitionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaList<'a, P0>( + pub unsafe fn BeginGetReplicaList( &self, querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList<'a, P0>( + pub unsafe fn EndGetReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( + pub unsafe fn BeginGetDeployedApplicationList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( + pub unsafe fn EndGetDeployedApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedServicePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn BeginGetDeployedServiceTypeList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn EndGetDeployedServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedCodePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( + pub unsafe fn EndGetDeployedCodePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( + pub unsafe fn EndGetDeployedReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaDetail( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn EndGetDeployedReplicaDetail( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( + pub unsafe fn BeginGetClusterLoadInformation( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( + pub unsafe fn EndGetClusterLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( + pub unsafe fn BeginGetPartitionLoadInformation( &self, querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( + pub unsafe fn EndGetPartitionLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricCodeVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricConfigVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( + pub unsafe fn BeginGetNodeLoadInformation( &self, querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( + pub unsafe fn EndGetNodeLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( + pub unsafe fn BeginGetReplicaLoadInformation( &self, querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( + pub unsafe fn EndGetReplicaLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetUnplacedReplicaInformation<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetUnplacedReplicaInformation( &self, querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetUnplacedReplicaInformation<'a, P0>( + pub unsafe fn EndGetUnplacedReplicaInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList2<'a, P0>( + pub unsafe fn EndGetNodeList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNodeList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNodeList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList2<'a, P0>( + pub unsafe fn EndGetApplicationList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList2<'a, P0>( + pub unsafe fn EndGetServiceList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList2<'a, P0>( + pub unsafe fn EndGetPartitionList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList2<'a, P0>( + pub unsafe fn EndGetReplicaList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetReplicaList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetReplicaList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricQueryClient6, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricQueryClient, IFabricQueryClient2, IFabricQueryClient3, IFabricQueryClient4, IFabricQueryClient5 ); -impl ::core::clone::Clone for IFabricQueryClient6 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricQueryClient6 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -31977,12 +31366,17 @@ impl ::core::fmt::Debug for IFabricQueryClient6 { f.debug_tuple("IFabricQueryClient6").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricQueryClient6 { +unsafe impl ::windows_core::Interface for IFabricQueryClient6 { type Vtable = IFabricQueryClient6_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricQueryClient6 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x173b2bb4_09c6_42fb_8754_caa8d43cf1b2); +impl ::core::clone::Clone for IFabricQueryClient6 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricQueryClient6 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x173b2bb4_09c6_42fb_8754_caa8d43cf1b2); } #[repr(C)] #[doc(hidden)] @@ -31992,44 +31386,43 @@ pub struct IFabricQueryClient6_Vtbl { this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetApplicationList2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetServiceList2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetPartitionList2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetReplicaList2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricQueryClient7(::windows::core::IUnknown); +pub struct IFabricQueryClient7(::windows_core::IUnknown); impl IFabricQueryClient7 { - pub unsafe fn BeginGetNodeList<'a, P0>( + pub unsafe fn BeginGetNodeList( &self, querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32037,23 +31430,23 @@ impl IFabricQueryClient7 { .base__ .base__ .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList<'a, P0>( + pub unsafe fn EndGetNodeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32061,25 +31454,23 @@ impl IFabricQueryClient7 { .base__ .base__ .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( + pub unsafe fn BeginGetApplicationTypeList( &self, querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32087,23 +31478,23 @@ impl IFabricQueryClient7 { .base__ .base__ .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( + pub unsafe fn EndGetApplicationTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32111,25 +31502,23 @@ impl IFabricQueryClient7 { .base__ .base__ .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( + pub unsafe fn BeginGetServiceTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32137,23 +31526,23 @@ impl IFabricQueryClient7 { .base__ .base__ .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceTypeList<'a, P0>( + pub unsafe fn EndGetServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32161,25 +31550,23 @@ impl IFabricQueryClient7 { .base__ .base__ .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationList<'a, P0>( + pub unsafe fn BeginGetApplicationList( &self, querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32187,23 +31574,23 @@ impl IFabricQueryClient7 { .base__ .base__ .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList<'a, P0>( + pub unsafe fn EndGetApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32211,25 +31598,23 @@ impl IFabricQueryClient7 { .base__ .base__ .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceList<'a, P0>( + pub unsafe fn BeginGetServiceList( &self, querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32237,23 +31622,23 @@ impl IFabricQueryClient7 { .base__ .base__ .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList<'a, P0>( + pub unsafe fn EndGetServiceList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32261,25 +31646,23 @@ impl IFabricQueryClient7 { .base__ .base__ .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionList<'a, P0>( + pub unsafe fn BeginGetPartitionList( &self, querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32287,23 +31670,23 @@ impl IFabricQueryClient7 { .base__ .base__ .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList<'a, P0>( + pub unsafe fn EndGetPartitionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32311,25 +31694,23 @@ impl IFabricQueryClient7 { .base__ .base__ .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaList<'a, P0>( + pub unsafe fn BeginGetReplicaList( &self, querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32337,23 +31718,23 @@ impl IFabricQueryClient7 { .base__ .base__ .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList<'a, P0>( + pub unsafe fn EndGetReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32361,25 +31742,23 @@ impl IFabricQueryClient7 { .base__ .base__ .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( + pub unsafe fn BeginGetDeployedApplicationList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32387,23 +31766,23 @@ impl IFabricQueryClient7 { .base__ .base__ .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( + pub unsafe fn EndGetDeployedApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32411,25 +31790,23 @@ impl IFabricQueryClient7 { .base__ .base__ .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedServicePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32437,23 +31814,23 @@ impl IFabricQueryClient7 { .base__ .base__ .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32461,25 +31838,23 @@ impl IFabricQueryClient7 { .base__ .base__ .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn BeginGetDeployedServiceTypeList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32487,23 +31862,23 @@ impl IFabricQueryClient7 { .base__ .base__ .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn EndGetDeployedServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32511,25 +31886,23 @@ impl IFabricQueryClient7 { .base__ .base__ .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedCodePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32537,23 +31910,23 @@ impl IFabricQueryClient7 { .base__ .base__ .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( + pub unsafe fn EndGetDeployedCodePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32561,25 +31934,23 @@ impl IFabricQueryClient7 { .base__ .base__ .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32587,23 +31958,23 @@ impl IFabricQueryClient7 { .base__ .base__ .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( + pub unsafe fn EndGetDeployedReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -32611,595 +31982,577 @@ impl IFabricQueryClient7 { .base__ .base__ .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaDetail( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn EndGetDeployedReplicaDetail( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( + pub unsafe fn BeginGetClusterLoadInformation( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( + pub unsafe fn EndGetClusterLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( + pub unsafe fn BeginGetPartitionLoadInformation( &self, querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( + pub unsafe fn EndGetPartitionLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricCodeVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricConfigVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( + pub unsafe fn BeginGetNodeLoadInformation( &self, querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( + pub unsafe fn EndGetNodeLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( + pub unsafe fn BeginGetReplicaLoadInformation( &self, querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( + pub unsafe fn EndGetReplicaLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetUnplacedReplicaInformation<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetUnplacedReplicaInformation( &self, querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetUnplacedReplicaInformation<'a, P0>( + pub unsafe fn EndGetUnplacedReplicaInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList2<'a, P0>( + pub unsafe fn EndGetNodeList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndGetNodeList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetNodeList2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList2<'a, P0>( + pub unsafe fn EndGetApplicationList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetApplicationList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList2<'a, P0>( + pub unsafe fn EndGetServiceList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetServiceList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList2<'a, P0>( + pub unsafe fn EndGetPartitionList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetPartitionList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList2<'a, P0>( + pub unsafe fn EndGetReplicaList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetReplicaList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationLoadInformation<'a, P0>( + pub unsafe fn BeginGetApplicationLoadInformation( &self, querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationLoadInformation)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationLoadInformation<'a, P0>( + pub unsafe fn EndGetApplicationLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationLoadInformation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricQueryClient7, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricQueryClient, IFabricQueryClient2, IFabricQueryClient3, @@ -33207,11 +32560,6 @@ impl IFabricQueryClient7 { IFabricQueryClient5, IFabricQueryClient6 ); -impl ::core::clone::Clone for IFabricQueryClient7 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricQueryClient7 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -33223,12 +32571,17 @@ impl ::core::fmt::Debug for IFabricQueryClient7 { f.debug_tuple("IFabricQueryClient7").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricQueryClient7 { +unsafe impl ::windows_core::Interface for IFabricQueryClient7 { type Vtable = IFabricQueryClient7_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricQueryClient7 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x538baa81_ba97_46da_95ac_e1cdd184cc74); +impl ::core::clone::Clone for IFabricQueryClient7 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricQueryClient7 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x538baa81_ba97_46da_95ac_e1cdd184cc74); } #[repr(C)] #[doc(hidden)] @@ -33241,30 +32594,28 @@ pub struct IFabricQueryClient7_Vtbl { callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub EndGetApplicationLoadInformation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricQueryClient8(::windows::core::IUnknown); +pub struct IFabricQueryClient8(::windows_core::IUnknown); impl IFabricQueryClient8 { - pub unsafe fn BeginGetNodeList<'a, P0>( + pub unsafe fn BeginGetNodeList( &self, querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33273,23 +32624,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList<'a, P0>( + pub unsafe fn EndGetNodeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33298,25 +32649,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( + pub unsafe fn BeginGetApplicationTypeList( &self, querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33325,23 +32674,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( + pub unsafe fn EndGetApplicationTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33350,25 +32699,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( + pub unsafe fn BeginGetServiceTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33377,23 +32724,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceTypeList<'a, P0>( + pub unsafe fn EndGetServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33402,25 +32749,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationList<'a, P0>( + pub unsafe fn BeginGetApplicationList( &self, querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33429,23 +32774,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList<'a, P0>( + pub unsafe fn EndGetApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33454,25 +32799,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceList<'a, P0>( + pub unsafe fn BeginGetServiceList( &self, querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33481,23 +32824,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList<'a, P0>( + pub unsafe fn EndGetServiceList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33506,25 +32849,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionList<'a, P0>( + pub unsafe fn BeginGetPartitionList( &self, querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33533,23 +32874,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList<'a, P0>( + pub unsafe fn EndGetPartitionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33558,25 +32899,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaList<'a, P0>( + pub unsafe fn BeginGetReplicaList( &self, querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33585,23 +32924,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList<'a, P0>( + pub unsafe fn EndGetReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33610,25 +32949,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( + pub unsafe fn BeginGetDeployedApplicationList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33637,23 +32974,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( + pub unsafe fn EndGetDeployedApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33662,25 +32999,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedServicePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33689,23 +33024,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33714,25 +33049,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn BeginGetDeployedServiceTypeList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33741,23 +33074,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn EndGetDeployedServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33766,25 +33099,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedCodePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33793,23 +33124,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( + pub unsafe fn EndGetDeployedCodePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33818,25 +33149,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33845,23 +33174,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( + pub unsafe fn EndGetDeployedReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33870,25 +33199,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaDetail( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33896,23 +33223,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn EndGetDeployedReplicaDetail( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33920,24 +33247,22 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( + pub unsafe fn BeginGetClusterLoadInformation( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33945,22 +33270,22 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( + pub unsafe fn EndGetClusterLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33968,25 +33293,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( + pub unsafe fn BeginGetPartitionLoadInformation( &self, querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -33994,23 +33317,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( + pub unsafe fn EndGetPartitionLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34018,25 +33341,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34044,23 +33365,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricCodeVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34068,25 +33389,23 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34094,23 +33413,23 @@ impl IFabricQueryClient8 { .base__ .base__ .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricConfigVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34118,450 +33437,436 @@ impl IFabricQueryClient8 { .base__ .base__ .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( + pub unsafe fn BeginGetNodeLoadInformation( &self, querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( + pub unsafe fn EndGetNodeLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( + pub unsafe fn BeginGetReplicaLoadInformation( &self, querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( + pub unsafe fn EndGetReplicaLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetUnplacedReplicaInformation<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetUnplacedReplicaInformation( &self, querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetUnplacedReplicaInformation<'a, P0>( + pub unsafe fn EndGetUnplacedReplicaInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList2<'a, P0>( + pub unsafe fn EndGetNodeList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetNodeList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList2<'a, P0>( + pub unsafe fn EndGetApplicationList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetApplicationList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList2<'a, P0>( + pub unsafe fn EndGetServiceList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetServiceList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList2<'a, P0>( + pub unsafe fn EndGetPartitionList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetPartitionList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList2<'a, P0>( + pub unsafe fn EndGetReplicaList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetReplicaList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationLoadInformation<'a, P0>( + pub unsafe fn BeginGetApplicationLoadInformation( &self, querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationLoadInformation<'a, P0>( + pub unsafe fn EndGetApplicationLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceName<'a, P0>( + pub unsafe fn BeginGetServiceName( &self, querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceName)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceName<'a, P0>( + pub unsafe fn EndGetServiceName( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationName<'a, P0>( + pub unsafe fn BeginGetApplicationName( &self, querydescription: *const super::super::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationName)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationName<'a, P0>( + pub unsafe fn EndGetApplicationName( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationName)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricQueryClient8, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricQueryClient, IFabricQueryClient2, IFabricQueryClient3, @@ -34570,11 +33875,6 @@ impl IFabricQueryClient8 { IFabricQueryClient6, IFabricQueryClient7 ); -impl ::core::clone::Clone for IFabricQueryClient8 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricQueryClient8 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -34586,12 +33886,17 @@ impl ::core::fmt::Debug for IFabricQueryClient8 { f.debug_tuple("IFabricQueryClient8").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricQueryClient8 { +unsafe impl ::windows_core::Interface for IFabricQueryClient8 { type Vtable = IFabricQueryClient8_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricQueryClient8 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2c850629_6a83_4fc3_8468_c868b87e9a17); +impl ::core::clone::Clone for IFabricQueryClient8 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricQueryClient8 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2c850629_6a83_4fc3_8468_c868b87e9a17); } #[repr(C)] #[doc(hidden)] @@ -34603,41 +33908,40 @@ pub struct IFabricQueryClient8_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetServiceName: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetApplicationName: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetApplicationName: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricQueryClient9(::windows::core::IUnknown); +pub struct IFabricQueryClient9(::windows_core::IUnknown); impl IFabricQueryClient9 { - pub unsafe fn BeginGetNodeList<'a, P0>( + pub unsafe fn BeginGetNodeList( &self, querydescription: *const super::super::FABRIC_NODE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34647,23 +33951,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetNodeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList<'a, P0>( + pub unsafe fn EndGetNodeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34673,25 +33977,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetNodeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationTypeList<'a, P0>( + pub unsafe fn BeginGetApplicationTypeList( &self, querydescription: *const super::super::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34701,23 +34003,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationTypeList<'a, P0>( + pub unsafe fn EndGetApplicationTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34727,25 +34029,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetApplicationTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceTypeList<'a, P0>( + pub unsafe fn BeginGetServiceTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34755,23 +34055,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceTypeList<'a, P0>( + pub unsafe fn EndGetServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34781,25 +34081,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationList<'a, P0>( + pub unsafe fn BeginGetApplicationList( &self, querydescription: *const super::super::FABRIC_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34809,23 +34107,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList<'a, P0>( + pub unsafe fn EndGetApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34835,25 +34133,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceList<'a, P0>( + pub unsafe fn BeginGetServiceList( &self, querydescription: *const super::super::FABRIC_SERVICE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34863,23 +34159,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetServiceList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList<'a, P0>( + pub unsafe fn EndGetServiceList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34889,25 +34185,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetServiceList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionList<'a, P0>( + pub unsafe fn BeginGetPartitionList( &self, querydescription: *const super::super::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34917,23 +34211,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList<'a, P0>( + pub unsafe fn EndGetPartitionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34943,25 +34237,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetPartitionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaList<'a, P0>( + pub unsafe fn BeginGetReplicaList( &self, querydescription: *const super::super::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34971,23 +34263,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList<'a, P0>( + pub unsafe fn EndGetReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -34997,25 +34289,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedApplicationList<'a, P0>( + pub unsafe fn BeginGetDeployedApplicationList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35025,23 +34315,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedApplicationList<'a, P0>( + pub unsafe fn EndGetDeployedApplicationList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35051,25 +34341,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetDeployedApplicationList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServicePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedServicePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35079,23 +34367,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServicePackageList<'a, P0>( + pub unsafe fn EndGetDeployedServicePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35105,25 +34393,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetDeployedServicePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn BeginGetDeployedServiceTypeList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35133,23 +34419,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedServiceTypeList<'a, P0>( + pub unsafe fn EndGetDeployedServiceTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35159,25 +34445,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetDeployedServiceTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedCodePackageList<'a, P0>( + pub unsafe fn BeginGetDeployedCodePackageList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35187,23 +34471,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedCodePackageList<'a, P0>( + pub unsafe fn EndGetDeployedCodePackageList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35213,25 +34497,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetDeployedCodePackageList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaList<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaList( &self, querydescription: *const super::super::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35241,23 +34523,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaList<'a, P0>( + pub unsafe fn EndGetDeployedReplicaList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35267,25 +34549,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetDeployedReplicaList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn BeginGetDeployedReplicaDetail( &self, querydescription : *const super::super:: FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35294,23 +34574,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetDeployedReplicaDetail<'a, P0>( + pub unsafe fn EndGetDeployedReplicaDetail( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35319,24 +34599,22 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetDeployedReplicaDetail)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetClusterLoadInformation<'a, P0>( + pub unsafe fn BeginGetClusterLoadInformation( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35345,22 +34623,22 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetClusterLoadInformation<'a, P0>( + pub unsafe fn EndGetClusterLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35369,25 +34647,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetClusterLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetPartitionLoadInformation<'a, P0>( + pub unsafe fn BeginGetPartitionLoadInformation( &self, querydescription: *const super::super::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35396,23 +34672,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionLoadInformation<'a, P0>( + pub unsafe fn EndGetPartitionLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35421,25 +34697,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetPartitionLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricCodeVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35448,23 +34722,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricCodeVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricCodeVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35473,25 +34747,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetProvisionedFabricCodeVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn BeginGetProvisionedFabricConfigVersionList( &self, querydescription: *const super::super::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35500,23 +34772,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetProvisionedFabricConfigVersionList<'a, P0>( + pub unsafe fn EndGetProvisionedFabricConfigVersionList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35525,25 +34797,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetProvisionedFabricConfigVersionList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetNodeLoadInformation<'a, P0>( + pub unsafe fn BeginGetNodeLoadInformation( &self, querydescription: *const super::super::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35551,23 +34821,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeLoadInformation<'a, P0>( + pub unsafe fn EndGetNodeLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35575,25 +34845,23 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetNodeLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetReplicaLoadInformation<'a, P0>( + pub unsafe fn BeginGetReplicaLoadInformation( &self, querydescription: *const super::super::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35601,23 +34869,23 @@ impl IFabricQueryClient9 { .base__ .base__ .BeginGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaLoadInformation<'a, P0>( + pub unsafe fn EndGetReplicaLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -35625,411 +34893,401 @@ impl IFabricQueryClient9 { .base__ .base__ .EndGetReplicaLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetServiceGroupMemberList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn BeginGetServiceGroupMemberTypeList( &self, querydescription: *const super::super::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupMemberTypeList<'a, P0>( + pub unsafe fn EndGetServiceGroupMemberTypeList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetServiceGroupMemberTypeList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetUnplacedReplicaInformation<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetUnplacedReplicaInformation( &self, querydescription : *const super::super:: FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetUnplacedReplicaInformation<'a, P0>( + pub unsafe fn EndGetUnplacedReplicaInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetUnplacedReplicaInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeList2<'a, P0>( + pub unsafe fn EndGetNodeList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetNodeList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationList2<'a, P0>( + pub unsafe fn EndGetApplicationList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetApplicationList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceList2<'a, P0>( + pub unsafe fn EndGetServiceList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetServiceList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionList2<'a, P0>( + pub unsafe fn EndGetPartitionList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetPartitionList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetReplicaList2<'a, P0>( + pub unsafe fn EndGetReplicaList2( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetReplicaList2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationLoadInformation<'a, P0>( + pub unsafe fn BeginGetApplicationLoadInformation( &self, querydescription : *const super::super:: FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationLoadInformation<'a, P0>( + pub unsafe fn EndGetApplicationLoadInformation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetApplicationLoadInformation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceName<'a, P0>( + pub unsafe fn BeginGetServiceName( &self, querydescription: *const super::super::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetServiceName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceName<'a, P0>( + pub unsafe fn EndGetServiceName( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetServiceName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationName<'a, P0>( + pub unsafe fn BeginGetApplicationName( &self, querydescription: *const super::super::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetApplicationName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationName<'a, P0>( + pub unsafe fn EndGetApplicationName( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetApplicationName)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetApplicationTypePagedList<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetApplicationTypePagedList( &self, querydescription: *const super::super::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetApplicationTypePagedList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetApplicationTypePagedList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetApplicationTypePagedList<'a, P0>( + pub unsafe fn EndGetApplicationTypePagedList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetApplicationTypePagedList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetApplicationTypePagedList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricQueryClient9, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricQueryClient, IFabricQueryClient2, IFabricQueryClient3, @@ -36039,11 +35297,6 @@ impl IFabricQueryClient9 { IFabricQueryClient7, IFabricQueryClient8 ); -impl ::core::clone::Clone for IFabricQueryClient9 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricQueryClient9 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -36055,246 +35308,240 @@ impl ::core::fmt::Debug for IFabricQueryClient9 { f.debug_tuple("IFabricQueryClient9").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricQueryClient9 { +unsafe impl ::windows_core::Interface for IFabricQueryClient9 { type Vtable = IFabricQueryClient9_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricQueryClient9 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x76f0b4a5_4941_49d7_993c_ad7afc37c6af); +impl ::core::clone::Clone for IFabricQueryClient9 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricQueryClient9 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x76f0b4a5_4941_49d7_993c_ad7afc37c6af); } #[repr(C)] #[doc(hidden)] pub struct IFabricQueryClient9_Vtbl { pub base__: IFabricQueryClient8_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginGetApplicationTypePagedList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetApplicationTypePagedList: usize, pub EndGetApplicationTypePagedList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricRepairManagementClient(::windows::core::IUnknown); +pub struct IFabricRepairManagementClient(::windows_core::IUnknown); impl IFabricRepairManagementClient { - pub unsafe fn BeginCreateRepairTask<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginCreateRepairTask( &self, repairtask: *const super::super::FABRIC_REPAIR_TASK, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(repairtask), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateRepairTask)( + ::windows_core::Interface::as_raw(self), + repairtask, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateRepairTask<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndCreateRepairTask(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndCreateRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndCreateRepairTask)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginCancelRepairTask<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginCancelRepairTask( &self, requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCancelRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(requestdescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCancelRepairTask)( + ::windows_core::Interface::as_raw(self), + requestdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCancelRepairTask<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndCancelRepairTask(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndCancelRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndCancelRepairTask)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginForceApproveRepairTask<'a, P0>( + pub unsafe fn BeginForceApproveRepairTask( &self, requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginForceApproveRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(requestdescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginForceApproveRepairTask)( + ::windows_core::Interface::as_raw(self), + requestdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndForceApproveRepairTask<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result + pub unsafe fn EndForceApproveRepairTask(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndForceApproveRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndForceApproveRepairTask)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginDeleteRepairTask<'a, P0>( + pub unsafe fn BeginDeleteRepairTask( &self, requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(requestdescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteRepairTask)( + ::windows_core::Interface::as_raw(self), + requestdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteRepairTask<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteRepairTask(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndDeleteRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndDeleteRepairTask)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateRepairExecutionState<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginUpdateRepairExecutionState( &self, repairtask: *const super::super::FABRIC_REPAIR_TASK, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateRepairExecutionState)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(repairtask), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateRepairExecutionState)( + ::windows_core::Interface::as_raw(self), + repairtask, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateRepairExecutionState<'a, P0>( + pub unsafe fn EndUpdateRepairExecutionState( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndUpdateRepairExecutionState)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndUpdateRepairExecutionState)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetRepairTaskList<'a, P0>( + pub unsafe fn BeginGetRepairTaskList( &self, querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetRepairTaskList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetRepairTaskList)( + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetRepairTaskList<'a, P0>( + pub unsafe fn EndGetRepairTaskList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetRepairTaskList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetRepairTaskList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricRepairManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricRepairManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricRepairManagementClient, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricRepairManagementClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -36308,367 +35555,369 @@ impl ::core::fmt::Debug for IFabricRepairManagementClient { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricRepairManagementClient { +unsafe impl ::windows_core::Interface for IFabricRepairManagementClient { type Vtable = IFabricRepairManagementClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricRepairManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xee483ba5_9018_4c99_9804_be6185db88e6); +impl ::core::clone::Clone for IFabricRepairManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricRepairManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xee483ba5_9018_4c99_9804_be6185db88e6); } #[repr(C)] #[doc(hidden)] pub struct IFabricRepairManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginCreateRepairTask: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, repairtask: *const super::super::FABRIC_REPAIR_TASK, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginCreateRepairTask: usize, pub EndCreateRepairTask: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitversion: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginCancelRepairTask: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginCancelRepairTask: usize, pub EndCancelRepairTask: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitversion: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginForceApproveRepairTask: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndForceApproveRepairTask: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitversion: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginDeleteRepairTask: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndDeleteRepairTask: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginUpdateRepairExecutionState: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, repairtask: *const super::super::FABRIC_REPAIR_TASK, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginUpdateRepairExecutionState: usize, pub EndUpdateRepairExecutionState: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitversion: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetRepairTaskList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetRepairTaskList: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricRepairManagementClient2(::windows::core::IUnknown); +pub struct IFabricRepairManagementClient2(::windows_core::IUnknown); impl IFabricRepairManagementClient2 { - pub unsafe fn BeginCreateRepairTask<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginCreateRepairTask( &self, repairtask: *const super::super::FABRIC_REPAIR_TASK, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginCreateRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(repairtask), + ::windows_core::Interface::as_raw(self), + repairtask, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateRepairTask<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndCreateRepairTask(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndCreateRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginCancelRepairTask<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginCancelRepairTask( &self, requestdescription: *const super::super::FABRIC_REPAIR_CANCEL_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginCancelRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(requestdescription), + ::windows_core::Interface::as_raw(self), + requestdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCancelRepairTask<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndCancelRepairTask(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndCancelRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginForceApproveRepairTask<'a, P0>( + pub unsafe fn BeginForceApproveRepairTask( &self, requestdescription: *const super::super::FABRIC_REPAIR_APPROVE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginForceApproveRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(requestdescription), + ::windows_core::Interface::as_raw(self), + requestdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndForceApproveRepairTask<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result + pub unsafe fn EndForceApproveRepairTask(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndForceApproveRepairTask)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginDeleteRepairTask<'a, P0>( + pub unsafe fn BeginDeleteRepairTask( &self, requestdescription: *const super::super::FABRIC_REPAIR_DELETE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginDeleteRepairTask)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(requestdescription), + ::windows_core::Interface::as_raw(self), + requestdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteRepairTask<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteRepairTask(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndDeleteRepairTask)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateRepairExecutionState<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginUpdateRepairExecutionState( &self, repairtask: *const super::super::FABRIC_REPAIR_TASK, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUpdateRepairExecutionState)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(repairtask), + ::windows_core::Interface::as_raw(self), + repairtask, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateRepairExecutionState<'a, P0>( + pub unsafe fn EndUpdateRepairExecutionState( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndUpdateRepairExecutionState)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetRepairTaskList<'a, P0>( + pub unsafe fn BeginGetRepairTaskList( &self, querydescription: *const super::super::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetRepairTaskList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(querydescription), + ::windows_core::Interface::as_raw(self), + querydescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetRepairTaskList<'a, P0>( + pub unsafe fn EndGetRepairTaskList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetRepairTaskList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginUpdateRepairTaskHealthPolicy<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginUpdateRepairTaskHealthPolicy( &self, updatedescription: *const super::super::FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateRepairTaskHealthPolicy)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(updatedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateRepairTaskHealthPolicy)( + ::windows_core::Interface::as_raw(self), + updatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateRepairTaskHealthPolicy<'a, P0>( + pub unsafe fn EndUpdateRepairTaskHealthPolicy( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndUpdateRepairTaskHealthPolicy)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndUpdateRepairTaskHealthPolicy)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricRepairManagementClient2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricRepairManagementClient ); -impl ::core::clone::Clone for IFabricRepairManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricRepairManagementClient2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -36682,17 +35931,23 @@ impl ::core::fmt::Debug for IFabricRepairManagementClient2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricRepairManagementClient2 { +unsafe impl ::windows_core::Interface for IFabricRepairManagementClient2 { type Vtable = IFabricRepairManagementClient2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricRepairManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x5067d775_3baa_48e4_8c72_bb5573cc3fb8); +impl ::core::clone::Clone for IFabricRepairManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricRepairManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x5067d775_3baa_48e4_8c72_bb5573cc3fb8); } #[repr(C)] #[doc(hidden)] pub struct IFabricRepairManagementClient2_Vtbl { pub base__: IFabricRepairManagementClient_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginUpdateRepairTaskHealthPolicy: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, updatedescription: *const super::super::FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION, @@ -36700,28 +35955,26 @@ pub struct IFabricRepairManagementClient2_Vtbl { callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginUpdateRepairTaskHealthPolicy: usize, pub EndUpdateRepairTaskHealthPolicy: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitversion: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricReplicaHealthResult(::windows::core::IUnknown); +pub struct IFabricReplicaHealthResult(::windows_core::IUnknown); impl IFabricReplicaHealthResult { pub unsafe fn get_ReplicaHealth(&self) -> *mut super::super::FABRIC_REPLICA_HEALTH { - (::windows::core::Vtable::vtable(self).get_ReplicaHealth)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricReplicaHealthResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricReplicaHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_ReplicaHealth)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!(IFabricReplicaHealthResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricReplicaHealthResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -36735,62 +35988,63 @@ impl ::core::fmt::Debug for IFabricReplicaHealthResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricReplicaHealthResult { +unsafe impl ::windows_core::Interface for IFabricReplicaHealthResult { type Vtable = IFabricReplicaHealthResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricReplicaHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb4d5f2d9_e5cc_49ae_a6c8_89e8df7b6c15); +impl ::core::clone::Clone for IFabricReplicaHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricReplicaHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb4d5f2d9_e5cc_49ae_a6c8_89e8df7b6c15); } #[repr(C)] #[doc(hidden)] pub struct IFabricReplicaHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ReplicaHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_REPLICA_HEALTH, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricResolvedServicePartitionResult(::windows::core::IUnknown); +pub struct IFabricResolvedServicePartitionResult(::windows_core::IUnknown); impl IFabricResolvedServicePartitionResult { pub unsafe fn get_Partition(&self) -> *mut super::super::FABRIC_RESOLVED_SERVICE_PARTITION { - (::windows::core::Vtable::vtable(self).get_Partition)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Partition)(::windows_core::Interface::as_raw( + self, + )) } pub unsafe fn GetEndpoint( &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetEndpoint)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result<*mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetEndpoint)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::<*mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT>(result__) + .from_abi(result__) } - pub unsafe fn CompareVersion<'a, P0>(&self, other: P0) -> ::windows::core::Result + pub unsafe fn CompareVersion(&self, other: P0) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CompareVersion)( - ::windows::core::Vtable::as_raw(self), - other.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CompareVersion)( + ::windows_core::Interface::as_raw(self), + other.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricResolvedServicePartitionResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricResolvedServicePartitionResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricResolvedServicePartitionResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -36804,17 +36058,22 @@ impl ::core::fmt::Debug for IFabricResolvedServicePartitionResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricResolvedServicePartitionResult { +unsafe impl ::windows_core::Interface for IFabricResolvedServicePartitionResult { type Vtable = IFabricResolvedServicePartitionResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricResolvedServicePartitionResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfd0fe113_cdf8_4803_b4a0_32b1b3ef3716); +impl ::core::clone::Clone for IFabricResolvedServicePartitionResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricResolvedServicePartitionResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfd0fe113_cdf8_4803_b4a0_32b1b3ef3716); } #[repr(C)] #[doc(hidden)] pub struct IFabricResolvedServicePartitionResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Partition: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, @@ -36822,29 +36081,27 @@ pub struct IFabricResolvedServicePartitionResult_Vtbl { pub GetEndpoint: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, endpoint: *mut *mut super::super::FABRIC_RESOLVED_SERVICE_ENDPOINT, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub CompareVersion: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, other: *mut ::core::ffi::c_void, compareresult: *mut i32, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricRestartDeployedCodePackageResult(::windows::core::IUnknown); +pub struct IFabricRestartDeployedCodePackageResult(::windows_core::IUnknown); impl IFabricRestartDeployedCodePackageResult { pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Result)(::windows_core::Interface::as_raw( + self, + )) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricRestartDeployedCodePackageResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricRestartDeployedCodePackageResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricRestartDeployedCodePackageResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -36858,36 +36115,39 @@ impl ::core::fmt::Debug for IFabricRestartDeployedCodePackageResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricRestartDeployedCodePackageResult { +unsafe impl ::windows_core::Interface for IFabricRestartDeployedCodePackageResult { type Vtable = IFabricRestartDeployedCodePackageResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricRestartDeployedCodePackageResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfe087dc4_7a6a_41e3_90e9_b734a4cef41f); +impl ::core::clone::Clone for IFabricRestartDeployedCodePackageResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricRestartDeployedCodePackageResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfe087dc4_7a6a_41e3_90e9_b734a4cef41f); } #[repr(C)] #[doc(hidden)] pub struct IFabricRestartDeployedCodePackageResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Result: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricRestartNodeResult(::windows::core::IUnknown); +pub struct IFabricRestartNodeResult(::windows_core::IUnknown); impl IFabricRestartNodeResult { pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricRestartNodeResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricRestartNodeResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_Result)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!(IFabricRestartNodeResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricRestartNodeResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -36901,36 +36161,37 @@ impl ::core::fmt::Debug for IFabricRestartNodeResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricRestartNodeResult { +unsafe impl ::windows_core::Interface for IFabricRestartNodeResult { type Vtable = IFabricRestartNodeResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricRestartNodeResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2f7e9d57_fe07_4e34_93e1_01d5a6298ca9); +impl ::core::clone::Clone for IFabricRestartNodeResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricRestartNodeResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2f7e9d57_fe07_4e34_93e1_01d5a6298ca9); } #[repr(C)] #[doc(hidden)] pub struct IFabricRestartNodeResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Result: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_NODE_RESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricSecretReferencesResult(::windows::core::IUnknown); +pub struct IFabricSecretReferencesResult(::windows_core::IUnknown); impl IFabricSecretReferencesResult { pub unsafe fn get_SecretReferences(&self) -> *mut super::super::FABRIC_SECRET_REFERENCE_LIST { - (::windows::core::Vtable::vtable(self).get_SecretReferences)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_SecretReferences)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricSecretReferencesResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricSecretReferencesResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricSecretReferencesResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricSecretReferencesResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -36944,179 +36205,174 @@ impl ::core::fmt::Debug for IFabricSecretReferencesResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricSecretReferencesResult { +unsafe impl ::windows_core::Interface for IFabricSecretReferencesResult { type Vtable = IFabricSecretReferencesResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricSecretReferencesResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xbb8f69de_f667_4fab_820d_274cf4303ab4); +impl ::core::clone::Clone for IFabricSecretReferencesResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricSecretReferencesResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xbb8f69de_f667_4fab_820d_274cf4303ab4); } #[repr(C)] #[doc(hidden)] pub struct IFabricSecretReferencesResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_SecretReferences: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SECRET_REFERENCE_LIST, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricSecretStoreClient(::windows::core::IUnknown); +pub struct IFabricSecretStoreClient(::windows_core::IUnknown); impl IFabricSecretStoreClient { - pub unsafe fn BeginGetSecrets<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetSecrets( &self, secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, includevalue: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetSecrets)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(secretreferences), - includevalue.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetSecrets)( + ::windows_core::Interface::as_raw(self), + secretreferences, + includevalue.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetSecrets<'a, P0>( + pub unsafe fn EndGetSecrets( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetSecrets)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetSecrets)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginSetSecrets<'a, P0>( + pub unsafe fn BeginSetSecrets( &self, secrets: *const super::super::FABRIC_SECRET_LIST, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginSetSecrets)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(secrets), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginSetSecrets)( + ::windows_core::Interface::as_raw(self), + secrets, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndSetSecrets<'a, P0>( + pub unsafe fn EndSetSecrets( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndSetSecrets)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndSetSecrets)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRemoveSecrets<'a, P0>( + pub unsafe fn BeginRemoveSecrets( &self, secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRemoveSecrets)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(secretreferences), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRemoveSecrets)( + ::windows_core::Interface::as_raw(self), + secretreferences, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRemoveSecrets<'a, P0>( + pub unsafe fn EndRemoveSecrets( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndRemoveSecrets)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndRemoveSecrets)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetSecretVersions<'a, P0>( + pub unsafe fn BeginGetSecretVersions( &self, secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetSecretVersions)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(secretreferences), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetSecretVersions)( + ::windows_core::Interface::as_raw(self), + secretreferences, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetSecretVersions<'a, P0>( + pub unsafe fn EndGetSecretVersions( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetSecretVersions)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetSecretVersions)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricSecretStoreClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricSecretStoreClient { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricSecretStoreClient, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricSecretStoreClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -37130,17 +36386,23 @@ impl ::core::fmt::Debug for IFabricSecretStoreClient { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricSecretStoreClient { +unsafe impl ::windows_core::Interface for IFabricSecretStoreClient { type Vtable = IFabricSecretStoreClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricSecretStoreClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x38c4c723_3815_49d8_bdf2_68bfb536b8c9); +impl ::core::clone::Clone for IFabricSecretStoreClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricSecretStoreClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x38c4c723_3815_49d8_bdf2_68bfb536b8c9); } #[repr(C)] #[doc(hidden)] pub struct IFabricSecretStoreClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginGetSecrets: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, @@ -37148,62 +36410,62 @@ pub struct IFabricSecretStoreClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetSecrets: usize, pub EndGetSecrets: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginSetSecrets: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, secrets: *const super::super::FABRIC_SECRET_LIST, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndSetSecrets: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginRemoveSecrets: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRemoveSecrets: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetSecretVersions: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, secretreferences: *const super::super::FABRIC_SECRET_REFERENCE_LIST, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetSecretVersions: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricSecretsResult(::windows::core::IUnknown); +pub struct IFabricSecretsResult(::windows_core::IUnknown); impl IFabricSecretsResult { pub unsafe fn get_Secrets(&self) -> *mut super::super::FABRIC_SECRET_LIST { - (::windows::core::Vtable::vtable(self).get_Secrets)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricSecretsResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricSecretsResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_Secrets)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!(IFabricSecretsResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricSecretsResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -37217,36 +36479,40 @@ impl ::core::fmt::Debug for IFabricSecretsResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricSecretsResult { +unsafe impl ::windows_core::Interface for IFabricSecretsResult { type Vtable = IFabricSecretsResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricSecretsResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfe15a879_0dbe_4841_9cc6_6e92077cd669); +impl ::core::clone::Clone for IFabricSecretsResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricSecretsResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfe15a879_0dbe_4841_9cc6_6e92077cd669); } #[repr(C)] #[doc(hidden)] pub struct IFabricSecretsResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Secrets: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SECRET_LIST, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceDescriptionResult(::windows::core::IUnknown); +pub struct IFabricServiceDescriptionResult(::windows_core::IUnknown); impl IFabricServiceDescriptionResult { pub unsafe fn get_Description(&self) -> *mut super::super::FABRIC_SERVICE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_Description)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricServiceDescriptionResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceDescriptionResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_Description)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!( + IFabricServiceDescriptionResult, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricServiceDescriptionResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -37260,44 +36526,45 @@ impl ::core::fmt::Debug for IFabricServiceDescriptionResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceDescriptionResult { +unsafe impl ::windows_core::Interface for IFabricServiceDescriptionResult { type Vtable = IFabricServiceDescriptionResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceDescriptionResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x86b4f744_38c7_4dab_b6b4_11c23734c269); +impl ::core::clone::Clone for IFabricServiceDescriptionResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceDescriptionResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x86b4f744_38c7_4dab_b6b4_11c23734c269); } #[repr(C)] #[doc(hidden)] pub struct IFabricServiceDescriptionResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Description: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SERVICE_DESCRIPTION, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceEndpointsVersion(::windows::core::IUnknown); +pub struct IFabricServiceEndpointsVersion(::windows_core::IUnknown); impl IFabricServiceEndpointsVersion { - pub unsafe fn Compare<'a, P0>(&self, other: P0) -> ::windows::core::Result + pub unsafe fn Compare(&self, other: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceEndpointsVersion>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).Compare)( - ::windows::core::Vtable::as_raw(self), - other.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).Compare)( + ::windows_core::Interface::as_raw(self), + other.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricServiceEndpointsVersion, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceEndpointsVersion { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricServiceEndpointsVersion, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricServiceEndpointsVersion { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -37311,41 +36578,42 @@ impl ::core::fmt::Debug for IFabricServiceEndpointsVersion { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceEndpointsVersion { +unsafe impl ::windows_core::Interface for IFabricServiceEndpointsVersion { type Vtable = IFabricServiceEndpointsVersion_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceEndpointsVersion { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0a673dc5_2297_4fc5_a38f_482d29144fa5); +impl ::core::clone::Clone for IFabricServiceEndpointsVersion { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceEndpointsVersion { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0a673dc5_2297_4fc5_a38f_482d29144fa5); } #[repr(C)] #[doc(hidden)] pub struct IFabricServiceEndpointsVersion_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub Compare: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, other: *mut ::core::ffi::c_void, compareresult: *mut i32, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceGroupDescriptionResult(::windows::core::IUnknown); +pub struct IFabricServiceGroupDescriptionResult(::windows_core::IUnknown); impl IFabricServiceGroupDescriptionResult { pub unsafe fn get_Description(&self) -> *mut super::super::FABRIC_SERVICE_GROUP_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_Description)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_Description)( + ::windows_core::Interface::as_raw(self), + ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricServiceGroupDescriptionResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricServiceGroupDescriptionResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricServiceGroupDescriptionResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -37359,133 +36627,128 @@ impl ::core::fmt::Debug for IFabricServiceGroupDescriptionResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceGroupDescriptionResult { +unsafe impl ::windows_core::Interface for IFabricServiceGroupDescriptionResult { type Vtable = IFabricServiceGroupDescriptionResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceGroupDescriptionResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3ca814d4_e067_48b7_9bdc_9be33810416d); +impl ::core::clone::Clone for IFabricServiceGroupDescriptionResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceGroupDescriptionResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3ca814d4_e067_48b7_9bdc_9be33810416d); } #[repr(C)] #[doc(hidden)] pub struct IFabricServiceGroupDescriptionResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Description: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceGroupManagementClient(::windows::core::IUnknown); +pub struct IFabricServiceGroupManagementClient(::windows_core::IUnknown); impl IFabricServiceGroupManagementClient { - pub unsafe fn BeginCreateServiceGroup<'a, P0>( + pub unsafe fn BeginCreateServiceGroup( &self, description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateServiceGroup)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateServiceGroup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndCreateServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteServiceGroup<'a, P0>( + pub unsafe fn BeginDeleteServiceGroup( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteServiceGroup)( + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteServiceGroup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndDeleteServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetServiceGroupDescription<'a, P0>( + pub unsafe fn BeginGetServiceGroupDescription( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceGroupDescription)( + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupDescription<'a, P0>( + pub unsafe fn EndGetServiceGroupDescription( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceGroupDescription)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricServiceGroupManagementClient, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricServiceGroupManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricServiceGroupManagementClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -37499,207 +36762,202 @@ impl ::core::fmt::Debug for IFabricServiceGroupManagementClient { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceGroupManagementClient { +unsafe impl ::windows_core::Interface for IFabricServiceGroupManagementClient { type Vtable = IFabricServiceGroupManagementClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceGroupManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2061227e_0281_4baf_9b19_b2dfb2e63bbe); +impl ::core::clone::Clone for IFabricServiceGroupManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceGroupManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2061227e_0281_4baf_9b19_b2dfb2e63bbe); } #[repr(C)] #[doc(hidden)] pub struct IFabricServiceGroupManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginCreateServiceGroup: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndCreateServiceGroup: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginDeleteServiceGroup: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndDeleteServiceGroup: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetServiceGroupDescription: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetServiceGroupDescription: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceGroupManagementClient2(::windows::core::IUnknown); +pub struct IFabricServiceGroupManagementClient2(::windows_core::IUnknown); impl IFabricServiceGroupManagementClient2 { - pub unsafe fn BeginCreateServiceGroup<'a, P0>( + pub unsafe fn BeginCreateServiceGroup( &self, description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateServiceGroup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteServiceGroup<'a, P0>( + pub unsafe fn BeginDeleteServiceGroup( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteServiceGroup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetServiceGroupDescription<'a, P0>( + pub unsafe fn BeginGetServiceGroupDescription( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupDescription<'a, P0>( + pub unsafe fn EndGetServiceGroupDescription( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginUpdateServiceGroup<'a, P0>( + pub unsafe fn BeginUpdateServiceGroup( &self, name: *const u16, servicegroupupdatedescription: *const super::super::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(servicegroupupdatedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateServiceGroup)( + ::windows_core::Interface::as_raw(self), + name, + servicegroupupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateServiceGroup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUpdateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUpdateServiceGroup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricServiceGroupManagementClient2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricServiceGroupManagementClient ); -impl ::core::clone::Clone for IFabricServiceGroupManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricServiceGroupManagementClient2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -37713,12 +36971,17 @@ impl ::core::fmt::Debug for IFabricServiceGroupManagementClient2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceGroupManagementClient2 { +unsafe impl ::windows_core::Interface for IFabricServiceGroupManagementClient2 { type Vtable = IFabricServiceGroupManagementClient2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceGroupManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4f0dc42d_8fec_4ea9_a96b_5be1fa1e1d64); +impl ::core::clone::Clone for IFabricServiceGroupManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceGroupManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4f0dc42d_8fec_4ea9_a96b_5be1fa1e1d64); } #[repr(C)] #[doc(hidden)] @@ -37731,166 +36994,162 @@ pub struct IFabricServiceGroupManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndUpdateServiceGroup: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceGroupManagementClient3(::windows::core::IUnknown); +pub struct IFabricServiceGroupManagementClient3(::windows_core::IUnknown); impl IFabricServiceGroupManagementClient3 { - pub unsafe fn BeginCreateServiceGroup<'a, P0>( + pub unsafe fn BeginCreateServiceGroup( &self, description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateServiceGroup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteServiceGroup<'a, P0>( + pub unsafe fn BeginDeleteServiceGroup( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteServiceGroup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetServiceGroupDescription<'a, P0>( + pub unsafe fn BeginGetServiceGroupDescription( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupDescription<'a, P0>( + pub unsafe fn EndGetServiceGroupDescription( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginUpdateServiceGroup<'a, P0>( + pub unsafe fn BeginUpdateServiceGroup( &self, name: *const u16, servicegroupupdatedescription: *const super::super::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUpdateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(servicegroupupdatedescription), + ::windows_core::Interface::as_raw(self), + name, + servicegroupupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateServiceGroup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndUpdateServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateServiceGroupFromTemplate<'a, P0, P1>( + pub unsafe fn BeginCreateServiceGroupFromTemplate( &self, applicationname: *const u16, servicename: *const u16, @@ -37898,52 +37157,45 @@ impl IFabricServiceGroupManagementClient3 { initializationdata: &[u8], timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateServiceGroupFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateServiceGroupFromTemplate)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), initializationdata.len() as _, ::core::mem::transmute(initializationdata.as_ptr()), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceGroupFromTemplate<'a, P0>( + pub unsafe fn EndCreateServiceGroupFromTemplate( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndCreateServiceGroupFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndCreateServiceGroupFromTemplate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricServiceGroupManagementClient3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricServiceGroupManagementClient, IFabricServiceGroupManagementClient2 ); -impl ::core::clone::Clone for IFabricServiceGroupManagementClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricServiceGroupManagementClient3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -37957,12 +37209,17 @@ impl ::core::fmt::Debug for IFabricServiceGroupManagementClient3 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceGroupManagementClient3 { +unsafe impl ::windows_core::Interface for IFabricServiceGroupManagementClient3 { type Vtable = IFabricServiceGroupManagementClient3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceGroupManagementClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcbee0e12_b5a0_44dc_8c3c_c067958f82f6); +impl ::core::clone::Clone for IFabricServiceGroupManagementClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceGroupManagementClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcbee0e12_b5a0_44dc_8c3c_c067958f82f6); } #[repr(C)] #[doc(hidden)] @@ -37972,182 +37229,178 @@ pub struct IFabricServiceGroupManagementClient3_Vtbl { this: *mut ::core::ffi::c_void, applicationname: *const u16, servicename: *const u16, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, initializationdatasize: u32, initializationdata: *const u8, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub EndCreateServiceGroupFromTemplate: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceGroupManagementClient4(::windows::core::IUnknown); +pub struct IFabricServiceGroupManagementClient4(::windows_core::IUnknown); impl IFabricServiceGroupManagementClient4 { - pub unsafe fn BeginCreateServiceGroup<'a, P0>( + pub unsafe fn BeginCreateServiceGroup( &self, description: *const super::super::FABRIC_SERVICE_GROUP_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateServiceGroup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndCreateServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteServiceGroup<'a, P0>( + pub unsafe fn BeginDeleteServiceGroup( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteServiceGroup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndDeleteServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetServiceGroupDescription<'a, P0>( + pub unsafe fn BeginGetServiceGroupDescription( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceGroupDescription<'a, P0>( + pub unsafe fn EndGetServiceGroupDescription( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetServiceGroupDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginUpdateServiceGroup<'a, P0>( + pub unsafe fn BeginUpdateServiceGroup( &self, name: *const u16, servicegroupupdatedescription: *const super::super::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginUpdateServiceGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(servicegroupupdatedescription), + ::windows_core::Interface::as_raw(self), + name, + servicegroupupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateServiceGroup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateServiceGroup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndUpdateServiceGroup)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateServiceGroupFromTemplate<'a, P0, P1>( + pub unsafe fn BeginCreateServiceGroupFromTemplate( &self, applicationname: *const u16, servicename: *const u16, @@ -38155,91 +37408,82 @@ impl IFabricServiceGroupManagementClient4 { initializationdata: &[u8], timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginCreateServiceGroupFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), initializationdata.len() as _, ::core::mem::transmute(initializationdata.as_ptr()), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceGroupFromTemplate<'a, P0>( + pub unsafe fn EndCreateServiceGroupFromTemplate( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndCreateServiceGroupFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateServiceGroupFromTemplate2<'a, P0>( + pub unsafe fn BeginCreateServiceGroupFromTemplate2( &self, servicegroupfromtemplatedescription : *const super::super:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateServiceGroupFromTemplate2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicegroupfromtemplatedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateServiceGroupFromTemplate2)( + ::windows_core::Interface::as_raw(self), + servicegroupfromtemplatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceGroupFromTemplate2<'a, P0>( + pub unsafe fn EndCreateServiceGroupFromTemplate2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndCreateServiceGroupFromTemplate2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndCreateServiceGroupFromTemplate2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricServiceGroupManagementClient4, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricServiceGroupManagementClient, IFabricServiceGroupManagementClient2, IFabricServiceGroupManagementClient3 ); -impl ::core::clone::Clone for IFabricServiceGroupManagementClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricServiceGroupManagementClient4 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -38253,31 +37497,34 @@ impl ::core::fmt::Debug for IFabricServiceGroupManagementClient4 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceGroupManagementClient4 { +unsafe impl ::windows_core::Interface for IFabricServiceGroupManagementClient4 { type Vtable = IFabricServiceGroupManagementClient4_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceGroupManagementClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3c73b32e_9a08_48ca_b3a3_993a2029e37a); +impl ::core::clone::Clone for IFabricServiceGroupManagementClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceGroupManagementClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3c73b32e_9a08_48ca_b3a3_993a2029e37a); } #[repr(C)] #[doc(hidden)] -pub struct IFabricServiceGroupManagementClient4_Vtbl where { pub base__ : IFabricServiceGroupManagementClient3_Vtbl , pub BeginCreateServiceGroupFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , servicegroupfromtemplatedescription : *const super::super:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndCreateServiceGroupFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , } +pub struct IFabricServiceGroupManagementClient4_Vtbl where { pub base__ : IFabricServiceGroupManagementClient3_Vtbl , pub BeginCreateServiceGroupFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , servicegroupfromtemplatedescription : *const super::super:: FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndCreateServiceGroupFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceHealthResult(::windows::core::IUnknown); +pub struct IFabricServiceHealthResult(::windows_core::IUnknown); impl IFabricServiceHealthResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ServiceHealth(&self) -> *mut super::super::FABRIC_SERVICE_HEALTH { - (::windows::core::Vtable::vtable(self).get_ServiceHealth)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricServiceHealthResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceHealthResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_ServiceHealth)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!(IFabricServiceHealthResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricServiceHealthResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -38291,57 +37538,64 @@ impl ::core::fmt::Debug for IFabricServiceHealthResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceHealthResult { +unsafe impl ::windows_core::Interface for IFabricServiceHealthResult { type Vtable = IFabricServiceHealthResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceHealthResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x52040bd9_a78e_4308_a30e_7114e3684e76); +impl ::core::clone::Clone for IFabricServiceHealthResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceHealthResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x52040bd9_a78e_4308_a30e_7114e3684e76); } #[repr(C)] #[doc(hidden)] pub struct IFabricServiceHealthResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_ServiceHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SERVICE_HEALTH, + #[cfg(not(feature = "Win32_Foundation"))] + get_ServiceHealth: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceManagementClient(::windows::core::IUnknown); +pub struct IFabricServiceManagementClient(::windows_core::IUnknown); impl IFabricServiceManagementClient { - pub unsafe fn BeginCreateService<'a, P0>( + pub unsafe fn BeginCreateService( &self, description: *const super::super::FABRIC_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateService)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndCreateService)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndCreateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginCreateServiceFromTemplate<'a, P0, P1>( + pub unsafe fn BeginCreateServiceFromTemplate( &self, applicationname: *const u16, servicename: *const u16, @@ -38349,141 +37603,130 @@ impl IFabricServiceManagementClient { initializationdata: &[u8], timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), initializationdata.len() as _, ::core::mem::transmute(initializationdata.as_ptr()), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndCreateServiceFromTemplate(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndCreateServiceFromTemplate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteService<'a, P0>( + pub unsafe fn BeginDeleteService( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteService)( + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndDeleteService)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndDeleteService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetServiceDescription<'a, P0>( + pub unsafe fn BeginGetServiceDescription( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceDescription<'a, P0>( + pub unsafe fn EndGetServiceDescription( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceDescription)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler<'a, P0>( + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( &self, name: *const u16, keytype: super::super::FABRIC_PARTITION_KEY_TYPE, partitionkey: *const ::core::ffi::c_void, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricServicePartitionResolutionChangeHandler>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).RegisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).RegisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), + name, keytype, - ::core::mem::transmute(partitionkey), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partitionkey, + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UnregisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UnregisterServicePartitionResolutionChangeHandler)( + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn BeginResolveServicePartition<'a, P0, P1>( + pub unsafe fn BeginResolveServicePartition( &self, name: *const u16, partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, @@ -38491,50 +37734,41 @@ impl IFabricServiceManagementClient { previousresult: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + name, partitionkeytype, - ::core::mem::transmute(partitionkey), - previousresult.into().abi(), + partitionkey, + previousresult.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndResolveServicePartition<'a, P0>( + pub unsafe fn EndResolveServicePartition( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndResolveServicePartition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricServiceManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricServiceManagementClient, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricServiceManagementClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -38548,66 +37782,71 @@ impl ::core::fmt::Debug for IFabricServiceManagementClient { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceManagementClient { +unsafe impl ::windows_core::Interface for IFabricServiceManagementClient { type Vtable = IFabricServiceManagementClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf7368189_fd1f_437c_888d_8c89cecc57a0); +impl ::core::clone::Clone for IFabricServiceManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf7368189_fd1f_437c_888d_8c89cecc57a0); } #[repr(C)] #[doc(hidden)] pub struct IFabricServiceManagementClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginCreateService: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, description: *const super::super::FABRIC_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndCreateService: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginCreateServiceFromTemplate: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, applicationname: *const u16, servicename: *const u16, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, initializationdatasize: u32, initializationdata: *const u8, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndCreateServiceFromTemplate: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginDeleteService: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndDeleteService: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetServiceDescription: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetServiceDescription: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub RegisterServicePartitionResolutionChangeHandler: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, @@ -38616,12 +37855,12 @@ pub struct IFabricServiceManagementClient_Vtbl { partitionkey: *const ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, callbackhandle: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub UnregisterServicePartitionResolutionChangeHandler: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callbackhandle: i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginResolveServicePartition: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, @@ -38631,49 +37870,51 @@ pub struct IFabricServiceManagementClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndResolveServicePartition: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceManagementClient2(::windows::core::IUnknown); +pub struct IFabricServiceManagementClient2(::windows_core::IUnknown); impl IFabricServiceManagementClient2 { - pub unsafe fn BeginCreateService<'a, P0>( + pub unsafe fn BeginCreateService( &self, description: *const super::super::FABRIC_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginCreateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .EndCreateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndCreateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginCreateServiceFromTemplate<'a, P0, P1>( + pub unsafe fn BeginCreateServiceFromTemplate( &self, applicationname: *const u16, servicename: *const u16, @@ -38681,154 +37922,146 @@ impl IFabricServiceManagementClient2 { initializationdata: &[u8], timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), initializationdata.len() as _, ::core::mem::transmute(initializationdata.as_ptr()), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndCreateServiceFromTemplate(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteService<'a, P0>( + pub unsafe fn BeginDeleteService( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginDeleteService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .EndDeleteService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeleteService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetServiceDescription<'a, P0>( + pub unsafe fn BeginGetServiceDescription( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceDescription<'a, P0>( + pub unsafe fn EndGetServiceDescription( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler<'a, P0>( + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( &self, name: *const u16, keytype: super::super::FABRIC_PARTITION_KEY_TYPE, partitionkey: *const ::core::ffi::c_void, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricServicePartitionResolutionChangeHandler>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .RegisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, keytype, - ::core::mem::transmute(partitionkey), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partitionkey, + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .UnregisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn BeginResolveServicePartition<'a, P0, P1>( + pub unsafe fn BeginResolveServicePartition( &self, name: *const u16, partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, @@ -38836,134 +38069,121 @@ impl IFabricServiceManagementClient2 { previousresult: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, partitionkeytype, - ::core::mem::transmute(partitionkey), - previousresult.into().abi(), + partitionkey, + previousresult.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndResolveServicePartition<'a, P0>( + pub unsafe fn EndResolveServicePartition( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceManifest<'a, P0, P1, P2, P3>( + pub unsafe fn BeginGetServiceManifest( &self, applicationtypename: P0, applicationtypeversion: P1, servicemanifestname: P2, timeoutmilliseconds: u32, callback: P3, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetServiceManifest)( + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceManifest<'a, P0>( + pub unsafe fn EndGetServiceManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetServiceManifest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginUpdateService<'a, P0>( + pub unsafe fn BeginUpdateService( &self, name: *const u16, serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(serviceupdatedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateService)( + ::windows_core::Interface::as_raw(self), + name, + serviceupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUpdateService)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUpdateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricServiceManagementClient2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricServiceManagementClient ); -impl ::core::clone::Clone for IFabricServiceManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricServiceManagementClient2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -38977,12 +38197,17 @@ impl ::core::fmt::Debug for IFabricServiceManagementClient2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceManagementClient2 { - type Vtable = IFabricServiceManagementClient2_Vtbl; -} -unsafe impl ::windows::core::Interface for IFabricServiceManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9933ed08_5d0c_4aed_bab6_f676bf5be8aa); +unsafe impl ::windows_core::Interface for IFabricServiceManagementClient2 { + type Vtable = IFabricServiceManagementClient2_Vtbl; +} +impl ::core::clone::Clone for IFabricServiceManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9933ed08_5d0c_4aed_bab6_f676bf5be8aa); } #[repr(C)] #[doc(hidden)] @@ -38990,18 +38215,18 @@ pub struct IFabricServiceManagementClient2_Vtbl { pub base__: IFabricServiceManagementClient_Vtbl, pub BeginGetServiceManifest: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - applicationtypename: ::windows::core::PCWSTR, - applicationtypeversion: ::windows::core::PCWSTR, - servicemanifestname: ::windows::core::PCWSTR, + applicationtypename: ::windows_core::PCWSTR, + applicationtypeversion: ::windows_core::PCWSTR, + servicemanifestname: ::windows_core::PCWSTR, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetServiceManifest: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginUpdateService: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, @@ -39009,50 +38234,52 @@ pub struct IFabricServiceManagementClient2_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndUpdateService: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceManagementClient3(::windows::core::IUnknown); +pub struct IFabricServiceManagementClient3(::windows_core::IUnknown); impl IFabricServiceManagementClient3 { - pub unsafe fn BeginCreateService<'a, P0>( + pub unsafe fn BeginCreateService( &self, description: *const super::super::FABRIC_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginCreateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndCreateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndCreateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginCreateServiceFromTemplate<'a, P0, P1>( + pub unsafe fn BeginCreateServiceFromTemplate( &self, applicationname: *const u16, servicename: *const u16, @@ -39060,162 +38287,154 @@ impl IFabricServiceManagementClient3 { initializationdata: &[u8], timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), initializationdata.len() as _, ::core::mem::transmute(initializationdata.as_ptr()), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndCreateServiceFromTemplate(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteService<'a, P0>( + pub unsafe fn BeginDeleteService( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginDeleteService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndDeleteService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeleteService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetServiceDescription<'a, P0>( + pub unsafe fn BeginGetServiceDescription( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceDescription<'a, P0>( + pub unsafe fn EndGetServiceDescription( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler<'a, P0>( + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( &self, name: *const u16, keytype: super::super::FABRIC_PARTITION_KEY_TYPE, partitionkey: *const ::core::ffi::c_void, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricServicePartitionResolutionChangeHandler>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .RegisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, keytype, - ::core::mem::transmute(partitionkey), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partitionkey, + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .UnregisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn BeginResolveServicePartition<'a, P0, P1>( + pub unsafe fn BeginResolveServicePartition( &self, name: *const u16, partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, @@ -39223,204 +38442,190 @@ impl IFabricServiceManagementClient3 { previousresult: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, partitionkeytype, - ::core::mem::transmute(partitionkey), - previousresult.into().abi(), + partitionkey, + previousresult.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndResolveServicePartition<'a, P0>( + pub unsafe fn EndResolveServicePartition( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceManifest<'a, P0, P1, P2, P3>( + pub unsafe fn BeginGetServiceManifest( &self, applicationtypename: P0, applicationtypeversion: P1, servicemanifestname: P2, timeoutmilliseconds: u32, callback: P3, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceManifest<'a, P0>( + pub unsafe fn EndGetServiceManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginUpdateService<'a, P0>( + pub unsafe fn BeginUpdateService( &self, name: *const u16, serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUpdateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(serviceupdatedescription), + ::windows_core::Interface::as_raw(self), + name, + serviceupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .EndUpdateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndUpdateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRemoveReplica<'a, P0>( + pub unsafe fn BeginRemoveReplica( &self, description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRemoveReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRemoveReplica)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRemoveReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRemoveReplica(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRemoveReplica)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRemoveReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRestartReplica<'a, P0>( + pub unsafe fn BeginRestartReplica( &self, description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestartReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestartReplica)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestartReplica(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRestartReplica)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRestartReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricServiceManagementClient3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricServiceManagementClient, IFabricServiceManagementClient2 ); -impl ::core::clone::Clone for IFabricServiceManagementClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricServiceManagementClient3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -39434,12 +38639,17 @@ impl ::core::fmt::Debug for IFabricServiceManagementClient3 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceManagementClient3 { +unsafe impl ::windows_core::Interface for IFabricServiceManagementClient3 { type Vtable = IFabricServiceManagementClient3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceManagementClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x98ec1156_c249_4f66_8d7c_9a5fa88e8e6d); +impl ::core::clone::Clone for IFabricServiceManagementClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceManagementClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x98ec1156_c249_4f66_8d7c_9a5fa88e8e6d); } #[repr(C)] #[doc(hidden)] @@ -39451,63 +38661,65 @@ pub struct IFabricServiceManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRemoveReplica: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginRestartReplica: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRestartReplica: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceManagementClient4(::windows::core::IUnknown); +pub struct IFabricServiceManagementClient4(::windows_core::IUnknown); impl IFabricServiceManagementClient4 { - pub unsafe fn BeginCreateService<'a, P0>( + pub unsafe fn BeginCreateService( &self, description: *const super::super::FABRIC_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginCreateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndCreateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndCreateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginCreateServiceFromTemplate<'a, P0, P1>( + pub unsafe fn BeginCreateServiceFromTemplate( &self, applicationname: *const u16, servicename: *const u16, @@ -39515,170 +38727,162 @@ impl IFabricServiceManagementClient4 { initializationdata: &[u8], timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), initializationdata.len() as _, ::core::mem::transmute(initializationdata.as_ptr()), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndCreateServiceFromTemplate(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteService<'a, P0>( + pub unsafe fn BeginDeleteService( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginDeleteService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndDeleteService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeleteService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetServiceDescription<'a, P0>( + pub unsafe fn BeginGetServiceDescription( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceDescription<'a, P0>( + pub unsafe fn EndGetServiceDescription( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler<'a, P0>( + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( &self, name: *const u16, keytype: super::super::FABRIC_PARTITION_KEY_TYPE, partitionkey: *const ::core::ffi::c_void, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricServicePartitionResolutionChangeHandler>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .RegisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, keytype, - ::core::mem::transmute(partitionkey), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partitionkey, + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .UnregisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn BeginResolveServicePartition<'a, P0, P1>( + pub unsafe fn BeginResolveServicePartition( &self, name: *const u16, partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, @@ -39686,283 +38890,271 @@ impl IFabricServiceManagementClient4 { previousresult: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, partitionkeytype, - ::core::mem::transmute(partitionkey), - previousresult.into().abi(), + partitionkey, + previousresult.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndResolveServicePartition<'a, P0>( + pub unsafe fn EndResolveServicePartition( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceManifest<'a, P0, P1, P2, P3>( + pub unsafe fn BeginGetServiceManifest( &self, applicationtypename: P0, applicationtypeversion: P1, servicemanifestname: P2, timeoutmilliseconds: u32, callback: P3, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceManifest<'a, P0>( + pub unsafe fn EndGetServiceManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginUpdateService<'a, P0>( + pub unsafe fn BeginUpdateService( &self, name: *const u16, serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginUpdateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(serviceupdatedescription), + ::windows_core::Interface::as_raw(self), + name, + serviceupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndUpdateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndUpdateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRemoveReplica<'a, P0>( + pub unsafe fn BeginRemoveReplica( &self, description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginRemoveReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRemoveReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRemoveReplica(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .EndRemoveReplica)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRemoveReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRestartReplica<'a, P0>( + pub unsafe fn BeginRestartReplica( &self, description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginRestartReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestartReplica(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .EndRestartReplica)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRestartReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRegisterServiceNotificationFilter<'a, P0>( + pub unsafe fn BeginRegisterServiceNotificationFilter( &self, description: *const super::super::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRegisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRegisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRegisterServiceNotificationFilter<'a, P0>( + pub unsafe fn EndRegisterServiceNotificationFilter( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndRegisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndRegisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginUnregisterServiceNotificationFilter<'a, P0>( + pub unsafe fn BeginUnregisterServiceNotificationFilter( &self, filterid: i64, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUnregisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUnregisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), filterid, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnregisterServiceNotificationFilter<'a, P0>( + pub unsafe fn EndUnregisterServiceNotificationFilter( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUnregisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUnregisterServiceNotificationFilter)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricServiceManagementClient4, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricServiceManagementClient, IFabricServiceManagementClient2, IFabricServiceManagementClient3 ); -impl ::core::clone::Clone for IFabricServiceManagementClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricServiceManagementClient4 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -39976,12 +39168,17 @@ impl ::core::fmt::Debug for IFabricServiceManagementClient4 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceManagementClient4 { +unsafe impl ::windows_core::Interface for IFabricServiceManagementClient4 { type Vtable = IFabricServiceManagementClient4_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceManagementClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x8180db27_7d0b_43b0_82e0_4a8e022fc238); +impl ::core::clone::Clone for IFabricServiceManagementClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceManagementClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x8180db27_7d0b_43b0_82e0_4a8e022fc238); } #[repr(C)] #[doc(hidden)] @@ -39994,13 +39191,13 @@ pub struct IFabricServiceManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRegisterServiceNotificationFilter: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, filterid: *mut i64, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub BeginUnregisterServiceNotificationFilter: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, @@ -40008,55 +39205,57 @@ pub struct IFabricServiceManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndUnregisterServiceNotificationFilter: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceManagementClient5(::windows::core::IUnknown); +pub struct IFabricServiceManagementClient5(::windows_core::IUnknown); impl IFabricServiceManagementClient5 { - pub unsafe fn BeginCreateService<'a, P0>( + pub unsafe fn BeginCreateService( &self, description: *const super::super::FABRIC_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginCreateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .EndCreateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndCreateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginCreateServiceFromTemplate<'a, P0, P1>( + pub unsafe fn BeginCreateServiceFromTemplate( &self, applicationname: *const u16, servicename: *const u16, @@ -40064,178 +39263,170 @@ impl IFabricServiceManagementClient5 { initializationdata: &[u8], timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), initializationdata.len() as _, ::core::mem::transmute(initializationdata.as_ptr()), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndCreateServiceFromTemplate(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteService<'a, P0>( + pub unsafe fn BeginDeleteService( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginDeleteService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .EndDeleteService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeleteService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetServiceDescription<'a, P0>( + pub unsafe fn BeginGetServiceDescription( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceDescription<'a, P0>( + pub unsafe fn EndGetServiceDescription( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler<'a, P0>( + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( &self, name: *const u16, keytype: super::super::FABRIC_PARTITION_KEY_TYPE, partitionkey: *const ::core::ffi::c_void, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricServicePartitionResolutionChangeHandler>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .RegisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, keytype, - ::core::mem::transmute(partitionkey), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partitionkey, + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .UnregisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn BeginResolveServicePartition<'a, P0, P1>( + pub unsafe fn BeginResolveServicePartition( &self, name: *const u16, partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, @@ -40243,333 +39434,321 @@ impl IFabricServiceManagementClient5 { previousresult: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, partitionkeytype, - ::core::mem::transmute(partitionkey), - previousresult.into().abi(), + partitionkey, + previousresult.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndResolveServicePartition<'a, P0>( + pub unsafe fn EndResolveServicePartition( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceManifest<'a, P0, P1, P2, P3>( + pub unsafe fn BeginGetServiceManifest( &self, applicationtypename: P0, applicationtypeversion: P1, servicemanifestname: P2, timeoutmilliseconds: u32, callback: P3, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceManifest<'a, P0>( + pub unsafe fn EndGetServiceManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginUpdateService<'a, P0>( + pub unsafe fn BeginUpdateService( &self, name: *const u16, serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginUpdateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(serviceupdatedescription), + ::windows_core::Interface::as_raw(self), + name, + serviceupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndUpdateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndUpdateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRemoveReplica<'a, P0>( + pub unsafe fn BeginRemoveReplica( &self, description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginRemoveReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRemoveReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRemoveReplica(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndRemoveReplica)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRemoveReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRestartReplica<'a, P0>( + pub unsafe fn BeginRestartReplica( &self, description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginRestartReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestartReplica(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndRestartReplica)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRestartReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRegisterServiceNotificationFilter<'a, P0>( + pub unsafe fn BeginRegisterServiceNotificationFilter( &self, description: *const super::super::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginRegisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRegisterServiceNotificationFilter<'a, P0>( + pub unsafe fn EndRegisterServiceNotificationFilter( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndRegisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginUnregisterServiceNotificationFilter<'a, P0>( + pub unsafe fn BeginUnregisterServiceNotificationFilter( &self, filterid: i64, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUnregisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), filterid, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnregisterServiceNotificationFilter<'a, P0>( + pub unsafe fn EndUnregisterServiceNotificationFilter( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndUnregisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteService2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginDeleteService2( &self, deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeleteService2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeleteService2)( + ::windows_core::Interface::as_raw(self), + deletedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteService2<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteService2(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndDeleteService2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndDeleteService2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricServiceManagementClient5, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricServiceManagementClient, IFabricServiceManagementClient2, IFabricServiceManagementClient3, IFabricServiceManagementClient4 ); -impl ::core::clone::Clone for IFabricServiceManagementClient5 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricServiceManagementClient5 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -40583,73 +39762,83 @@ impl ::core::fmt::Debug for IFabricServiceManagementClient5 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceManagementClient5 { +unsafe impl ::windows_core::Interface for IFabricServiceManagementClient5 { type Vtable = IFabricServiceManagementClient5_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceManagementClient5 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf9a70679_8ca3_4e27_9411_483e0c89b1fa); +impl ::core::clone::Clone for IFabricServiceManagementClient5 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceManagementClient5 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf9a70679_8ca3_4e27_9411_483e0c89b1fa); } #[repr(C)] #[doc(hidden)] pub struct IFabricServiceManagementClient5_Vtbl { pub base__: IFabricServiceManagementClient4_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginDeleteService2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginDeleteService2: usize, pub EndDeleteService2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceManagementClient6(::windows::core::IUnknown); +pub struct IFabricServiceManagementClient6(::windows_core::IUnknown); impl IFabricServiceManagementClient6 { - pub unsafe fn BeginCreateService<'a, P0>( + pub unsafe fn BeginCreateService( &self, description: *const super::super::FABRIC_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginCreateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCreateService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .EndCreateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndCreateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginCreateServiceFromTemplate<'a, P0, P1>( + pub unsafe fn BeginCreateServiceFromTemplate( &self, applicationname: *const u16, servicename: *const u16, @@ -40657,186 +39846,178 @@ impl IFabricServiceManagementClient6 { initializationdata: &[u8], timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(applicationname), - ::core::mem::transmute(servicename), - servicetypename.into(), + ::windows_core::Interface::as_raw(self), + applicationname, + servicename, + servicetypename.into_param().abi(), initializationdata.len() as _, ::core::mem::transmute(initializationdata.as_ptr()), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceFromTemplate<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndCreateServiceFromTemplate(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndCreateServiceFromTemplate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteService<'a, P0>( + pub unsafe fn BeginDeleteService( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginDeleteService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .EndDeleteService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeleteService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetServiceDescription<'a, P0>( + pub unsafe fn BeginGetServiceDescription( &self, name: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceDescription<'a, P0>( + pub unsafe fn EndGetServiceDescription( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndGetServiceDescription)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn RegisterServicePartitionResolutionChangeHandler<'a, P0>( + pub unsafe fn RegisterServicePartitionResolutionChangeHandler( &self, name: *const u16, keytype: super::super::FABRIC_PARTITION_KEY_TYPE, partitionkey: *const ::core::ffi::c_void, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricServicePartitionResolutionChangeHandler>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .RegisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, keytype, - ::core::mem::transmute(partitionkey), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partitionkey, + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterServicePartitionResolutionChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .UnregisterServicePartitionResolutionChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn BeginResolveServicePartition<'a, P0, P1>( + pub unsafe fn BeginResolveServicePartition( &self, name: *const u16, partitionkeytype: super::super::FABRIC_PARTITION_KEY_TYPE, @@ -40844,383 +40025,372 @@ impl IFabricServiceManagementClient6 { previousresult: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), + ::windows_core::Interface::as_raw(self), + name, partitionkeytype, - ::core::mem::transmute(partitionkey), - previousresult.into().abi(), + partitionkey, + previousresult.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndResolveServicePartition<'a, P0>( + pub unsafe fn EndResolveServicePartition( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndResolveServicePartition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetServiceManifest<'a, P0, P1, P2, P3>( + pub unsafe fn BeginGetServiceManifest( &self, applicationtypename: P0, applicationtypeversion: P1, servicemanifestname: P2, timeoutmilliseconds: u32, callback: P3, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, - P3: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P3: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - applicationtypename.into(), - applicationtypeversion.into(), - servicemanifestname.into(), + ::windows_core::Interface::as_raw(self), + applicationtypename.into_param().abi(), + applicationtypeversion.into_param().abi(), + servicemanifestname.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetServiceManifest<'a, P0>( + pub unsafe fn EndGetServiceManifest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndGetServiceManifest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginUpdateService<'a, P0>( + pub unsafe fn BeginUpdateService( &self, name: *const u16, serviceupdatedescription: *const super::super::FABRIC_SERVICE_UPDATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginUpdateService)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(serviceupdatedescription), + ::windows_core::Interface::as_raw(self), + name, + serviceupdatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateService<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateService(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .EndUpdateService)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndUpdateService)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRemoveReplica<'a, P0>( + pub unsafe fn BeginRemoveReplica( &self, description: *const super::super::FABRIC_REMOVE_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginRemoveReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRemoveReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRemoveReplica(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndRemoveReplica)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRemoveReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRestartReplica<'a, P0>( + pub unsafe fn BeginRestartReplica( &self, description: *const super::super::FABRIC_RESTART_REPLICA_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginRestartReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestartReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestartReplica(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndRestartReplica)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRestartReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRegisterServiceNotificationFilter<'a, P0>( + pub unsafe fn BeginRegisterServiceNotificationFilter( &self, description: *const super::super::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginRegisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRegisterServiceNotificationFilter<'a, P0>( + pub unsafe fn EndRegisterServiceNotificationFilter( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndRegisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginUnregisterServiceNotificationFilter<'a, P0>( + pub unsafe fn BeginUnregisterServiceNotificationFilter( &self, filterid: i64, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginUnregisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), filterid, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUnregisterServiceNotificationFilter<'a, P0>( + pub unsafe fn EndUnregisterServiceNotificationFilter( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndUnregisterServiceNotificationFilter)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeleteService2<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginDeleteService2( &self, deletedescription: *const super::super::FABRIC_DELETE_SERVICE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginDeleteService2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(deletedescription), + ::windows_core::Interface::as_raw(self), + deletedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeleteService2<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndDeleteService2(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .EndDeleteService2)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndDeleteService2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginCreateServiceFromTemplate2<'a, P0>( + pub unsafe fn BeginCreateServiceFromTemplate2( &self, servicefromtemplatedescription : *const super::super:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCreateServiceFromTemplate2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(servicefromtemplatedescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCreateServiceFromTemplate2)( + ::windows_core::Interface::as_raw(self), + servicefromtemplatedescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCreateServiceFromTemplate2<'a, P0>( + pub unsafe fn EndCreateServiceFromTemplate2( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndCreateServiceFromTemplate2)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndCreateServiceFromTemplate2)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricServiceManagementClient6, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricServiceManagementClient, IFabricServiceManagementClient2, IFabricServiceManagementClient3, IFabricServiceManagementClient4, IFabricServiceManagementClient5 ); -impl ::core::clone::Clone for IFabricServiceManagementClient6 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricServiceManagementClient6 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -41234,39 +40404,40 @@ impl ::core::fmt::Debug for IFabricServiceManagementClient6 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceManagementClient6 { +unsafe impl ::windows_core::Interface for IFabricServiceManagementClient6 { type Vtable = IFabricServiceManagementClient6_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceManagementClient6 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x23e4ee1b_049a_48f5_8dd7_b601eace47de); +impl ::core::clone::Clone for IFabricServiceManagementClient6 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceManagementClient6 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x23e4ee1b_049a_48f5_8dd7_b601eace47de); } #[repr(C)] #[doc(hidden)] -pub struct IFabricServiceManagementClient6_Vtbl where { pub base__ : IFabricServiceManagementClient5_Vtbl , pub BeginCreateServiceFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , servicefromtemplatedescription : *const super::super:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndCreateServiceFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , } +pub struct IFabricServiceManagementClient6_Vtbl where { pub base__ : IFabricServiceManagementClient5_Vtbl , pub BeginCreateServiceFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , servicefromtemplatedescription : *const super::super:: FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndCreateServiceFromTemplate2 :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceNotification(::windows::core::IUnknown); +pub struct IFabricServiceNotification(::windows_core::IUnknown); impl IFabricServiceNotification { pub unsafe fn get_Notification(&self) -> *mut super::super::FABRIC_SERVICE_NOTIFICATION { - (::windows::core::Vtable::vtable(self).get_Notification)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn GetVersion(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetVersion)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + (::windows_core::Interface::vtable(self).get_Notification)( + ::windows_core::Interface::as_raw(self), ) - .from_abi::(result__) } -} -::windows::core::interface_hierarchy!(IFabricServiceNotification, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceNotification { - fn clone(&self) -> Self { - Self(self.0.clone()) + pub unsafe fn GetVersion(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetVersion)( + ::windows_core::Interface::as_raw(self), + &mut result__, + ) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricServiceNotification, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricServiceNotification { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -41280,17 +40451,22 @@ impl ::core::fmt::Debug for IFabricServiceNotification { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceNotification { +unsafe impl ::windows_core::Interface for IFabricServiceNotification { type Vtable = IFabricServiceNotification_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceNotification { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x8222c825_08ad_4639_afce_a8988cbd6db3); +impl ::core::clone::Clone for IFabricServiceNotification { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceNotification { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x8222c825_08ad_4639_afce_a8988cbd6db3); } #[repr(C)] #[doc(hidden)] pub struct IFabricServiceNotification_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Notification: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, @@ -41298,36 +40474,32 @@ pub struct IFabricServiceNotification_Vtbl { pub GetVersion: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServiceNotificationEventHandler(::windows::core::IUnknown); +pub struct IFabricServiceNotificationEventHandler(::windows_core::IUnknown); impl IFabricServiceNotificationEventHandler { - pub unsafe fn OnNotification<'a, P0>( + pub unsafe fn OnNotification( &self, __midl__ifabricservicenotificationeventhandler0000: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceNotification>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnNotification)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).OnNotification)( + ::windows_core::Interface::as_raw(self), __midl__ifabricservicenotificationeventhandler0000 - .into() + .into_param() .abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricServiceNotificationEventHandler, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricServiceNotificationEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricServiceNotificationEventHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -41341,55 +40513,54 @@ impl ::core::fmt::Debug for IFabricServiceNotificationEventHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceNotificationEventHandler { +unsafe impl ::windows_core::Interface for IFabricServiceNotificationEventHandler { type Vtable = IFabricServiceNotificationEventHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceNotificationEventHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa04b7e9a_daab_45d4_8da3_95ef3ab5dbac); +impl ::core::clone::Clone for IFabricServiceNotificationEventHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceNotificationEventHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa04b7e9a_daab_45d4_8da3_95ef3ab5dbac); } #[repr(C)] #[doc(hidden)] pub struct IFabricServiceNotificationEventHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub OnNotification: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, __midl__ifabricservicenotificationeventhandler0000: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricServicePartitionResolutionChangeHandler(::windows::core::IUnknown); +pub struct IFabricServicePartitionResolutionChangeHandler(::windows_core::IUnknown); impl IFabricServicePartitionResolutionChangeHandler { - pub unsafe fn OnChange<'a, P0, P1>( + pub unsafe fn OnChange( &self, source: P0, handlerid: i64, partition: P1, - error: ::windows::core::HRESULT, + error: ::windows_core::HRESULT, ) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceManagementClient>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricResolvedServicePartitionResult>, - >, - { - (::windows::core::Vtable::vtable(self).OnChange)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).OnChange)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), handlerid, - partition.into().abi(), + partition.into_param().abi(), error, ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricServicePartitionResolutionChangeHandler, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricServicePartitionResolutionChangeHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricServicePartitionResolutionChangeHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -41403,38 +40574,41 @@ impl ::core::fmt::Debug for IFabricServicePartitionResolutionChangeHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServicePartitionResolutionChangeHandler { +unsafe impl ::windows_core::Interface for IFabricServicePartitionResolutionChangeHandler { type Vtable = IFabricServicePartitionResolutionChangeHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServicePartitionResolutionChangeHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf495715d_8e03_4232_b8d6_1227b39984fc); +impl ::core::clone::Clone for IFabricServicePartitionResolutionChangeHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServicePartitionResolutionChangeHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf495715d_8e03_4232_b8d6_1227b39984fc); } #[repr(C)] #[doc(hidden)] pub struct IFabricServicePartitionResolutionChangeHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub OnChange: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, handlerid: i64, partition: *mut ::core::ffi::c_void, - error: ::windows::core::HRESULT, + error: ::windows_core::HRESULT, ), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricStartNodeResult(::windows::core::IUnknown); +pub struct IFabricStartNodeResult(::windows_core::IUnknown); impl IFabricStartNodeResult { pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricStartNodeResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStartNodeResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_Result)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!(IFabricStartNodeResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricStartNodeResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -41448,34 +40622,37 @@ impl ::core::fmt::Debug for IFabricStartNodeResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStartNodeResult { +unsafe impl ::windows_core::Interface for IFabricStartNodeResult { type Vtable = IFabricStartNodeResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStartNodeResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x7e9f51a5_88ac_49b8_958d_329e3334802e); +impl ::core::clone::Clone for IFabricStartNodeResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStartNodeResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x7e9f51a5_88ac_49b8_958d_329e3334802e); } #[repr(C)] #[doc(hidden)] pub struct IFabricStartNodeResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Result: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_NODE_RESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricStopNodeResult(::windows::core::IUnknown); +pub struct IFabricStopNodeResult(::windows_core::IUnknown); impl IFabricStopNodeResult { pub unsafe fn get_Result(&self) -> *mut super::super::FABRIC_NODE_RESULT { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricStopNodeResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStopNodeResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_Result)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!(IFabricStopNodeResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricStopNodeResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -41489,34 +40666,37 @@ impl ::core::fmt::Debug for IFabricStopNodeResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStopNodeResult { +unsafe impl ::windows_core::Interface for IFabricStopNodeResult { type Vtable = IFabricStopNodeResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStopNodeResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x711d60a6_9623_476c_970c_83059a0b4d55); +impl ::core::clone::Clone for IFabricStopNodeResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStopNodeResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x711d60a6_9623_476c_970c_83059a0b4d55); } #[repr(C)] #[doc(hidden)] pub struct IFabricStopNodeResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Result: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_NODE_RESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricTestCommandStatusResult(::windows::core::IUnknown); +pub struct IFabricTestCommandStatusResult(::windows_core::IUnknown); impl IFabricTestCommandStatusResult { pub unsafe fn get_Result(&self) -> *mut super::super::TEST_COMMAND_QUERY_RESULT_LIST { - (::windows::core::Vtable::vtable(self).get_Result)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricTestCommandStatusResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTestCommandStatusResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_Result)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!(IFabricTestCommandStatusResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricTestCommandStatusResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -41530,309 +40710,287 @@ impl ::core::fmt::Debug for IFabricTestCommandStatusResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTestCommandStatusResult { +unsafe impl ::windows_core::Interface for IFabricTestCommandStatusResult { type Vtable = IFabricTestCommandStatusResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTestCommandStatusResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x87798f5c_e600_493a_a926_16b6807378e6); +impl ::core::clone::Clone for IFabricTestCommandStatusResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTestCommandStatusResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x87798f5c_e600_493a_a926_16b6807378e6); } #[repr(C)] #[doc(hidden)] pub struct IFabricTestCommandStatusResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Result: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::TEST_COMMAND_QUERY_RESULT_LIST, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricTestManagementClient(::windows::core::IUnknown); +pub struct IFabricTestManagementClient(::windows_core::IUnknown); impl IFabricTestManagementClient { - pub unsafe fn BeginStartPartitionDataLoss<'a, P0>( + pub unsafe fn BeginStartPartitionDataLoss( &self, invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartPartitionDataLoss)( + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartPartitionDataLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartPartitionDataLoss(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndStartPartitionDataLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPartitionDataLossProgress<'a, P0>( + pub unsafe fn BeginGetPartitionDataLossProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionDataLossProgress)( + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionDataLossProgress<'a, P0>( + pub unsafe fn EndGetPartitionDataLossProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionDataLossProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginStartPartitionQuorumLoss<'a, P0>( + pub unsafe fn BeginStartPartitionQuorumLoss( &self, invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokequorumlossdescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartPartitionQuorumLoss)( + ::windows_core::Interface::as_raw(self), + invokequorumlossdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartPartitionQuorumLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartPartitionQuorumLoss(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndStartPartitionQuorumLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPartitionQuorumLossProgress<'a, P0>( + pub unsafe fn BeginGetPartitionQuorumLossProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionQuorumLossProgress)( + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionQuorumLossProgress<'a, P0>( + pub unsafe fn EndGetPartitionQuorumLossProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionQuorumLossProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginStartPartitionRestart<'a, P0>( + pub unsafe fn BeginStartPartitionRestart( &self, restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartPartitionRestart)( + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartPartitionRestart<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartPartitionRestart(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndStartPartitionRestart)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPartitionRestartProgress<'a, P0>( + pub unsafe fn BeginGetPartitionRestartProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetPartitionRestartProgress)( + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionRestartProgress<'a, P0>( + pub unsafe fn EndGetPartitionRestartProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetPartitionRestartProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetTestCommandStatusList<'a, P0>( + pub unsafe fn BeginGetTestCommandStatusList( &self, operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetTestCommandStatusList)( + ::windows_core::Interface::as_raw(self), + operationid, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetTestCommandStatusList<'a, P0>( + pub unsafe fn EndGetTestCommandStatusList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetTestCommandStatusList)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginCancelTestCommand<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginCancelTestCommand( &self, invokedatalossdescription: *const super::super::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCancelTestCommand)( + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCancelTestCommand<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCancelTestCommand(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndCancelTestCommand)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!(IFabricTestManagementClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTestManagementClient { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricTestManagementClient, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricTestManagementClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -41846,432 +41004,411 @@ impl ::core::fmt::Debug for IFabricTestManagementClient { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTestManagementClient { +unsafe impl ::windows_core::Interface for IFabricTestManagementClient { type Vtable = IFabricTestManagementClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTestManagementClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0df0f63a_4da0_44fe_81e8_f80cd28e9b28); +impl ::core::clone::Clone for IFabricTestManagementClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTestManagementClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0df0f63a_4da0_44fe_81e8_f80cd28e9b28); } #[repr(C)] #[doc(hidden)] -pub struct IFabricTestManagementClient_Vtbl where { pub base__ : ::windows::core::IUnknown_Vtbl , pub BeginStartPartitionDataLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndStartPartitionDataLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetPartitionDataLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : :: windows::core::GUID , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetPartitionDataLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginStartPartitionQuorumLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndStartPartitionQuorumLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetPartitionQuorumLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : :: windows::core::GUID , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetPartitionQuorumLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginStartPartitionRestart :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndStartPartitionRestart :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetPartitionRestartProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : :: windows::core::GUID , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetPartitionRestartProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginGetTestCommandStatusList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : *const super::super:: FABRIC_TEST_COMMAND_LIST_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndGetTestCommandStatusList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub BeginCancelTestCommand :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , invokedatalossdescription : *const super::super:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , pub EndCancelTestCommand :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> :: windows::core::HRESULT , } +pub struct IFabricTestManagementClient_Vtbl where { pub base__ : ::windows_core::IUnknown_Vtbl , pub BeginStartPartitionDataLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndStartPartitionDataLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetPartitionDataLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : ::windows_core::GUID , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetPartitionDataLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginStartPartitionQuorumLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndStartPartitionQuorumLoss :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetPartitionQuorumLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : ::windows_core::GUID , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetPartitionQuorumLossProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginStartPartitionRestart :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndStartPartitionRestart :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetPartitionRestartProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : ::windows_core::GUID , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetPartitionRestartProgress :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub BeginGetTestCommandStatusList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , operationid : *const super::super:: FABRIC_TEST_COMMAND_LIST_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , pub EndGetTestCommandStatusList :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , result : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( feature = "Win32_Foundation" ) ] pub BeginCancelTestCommand :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , invokedatalossdescription : *const super::super:: FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION , timeoutmilliseconds : u32 , callback : * mut::core::ffi::c_void , context : *mut * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , # [ cfg ( not ( feature = "Win32_Foundation" ) ) ] BeginCancelTestCommand :usize , pub EndCancelTestCommand :unsafe extern "system" fn ( this : * mut::core::ffi::c_void , context : * mut::core::ffi::c_void , ) -> ::windows_core::HRESULT , } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricTestManagementClient2(::windows::core::IUnknown); +pub struct IFabricTestManagementClient2(::windows_core::IUnknown); impl IFabricTestManagementClient2 { - pub unsafe fn BeginStartPartitionDataLoss<'a, P0>( + pub unsafe fn BeginStartPartitionDataLoss( &self, invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartPartitionDataLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartPartitionDataLoss(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPartitionDataLossProgress<'a, P0>( + pub unsafe fn BeginGetPartitionDataLossProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionDataLossProgress<'a, P0>( + pub unsafe fn EndGetPartitionDataLossProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginStartPartitionQuorumLoss<'a, P0>( + pub unsafe fn BeginStartPartitionQuorumLoss( &self, invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokequorumlossdescription), + ::windows_core::Interface::as_raw(self), + invokequorumlossdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartPartitionQuorumLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartPartitionQuorumLoss(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPartitionQuorumLossProgress<'a, P0>( + pub unsafe fn BeginGetPartitionQuorumLossProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionQuorumLossProgress<'a, P0>( + pub unsafe fn EndGetPartitionQuorumLossProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginStartPartitionRestart<'a, P0>( + pub unsafe fn BeginStartPartitionRestart( &self, restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartPartitionRestart<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartPartitionRestart(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPartitionRestartProgress<'a, P0>( + pub unsafe fn BeginGetPartitionRestartProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionRestartProgress<'a, P0>( + pub unsafe fn EndGetPartitionRestartProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetTestCommandStatusList<'a, P0>( + pub unsafe fn BeginGetTestCommandStatusList( &self, operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), + ::windows_core::Interface::as_raw(self), + operationid, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetTestCommandStatusList<'a, P0>( + pub unsafe fn EndGetTestCommandStatusList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginCancelTestCommand<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginCancelTestCommand( &self, invokedatalossdescription: *const super::super::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCancelTestCommand<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCancelTestCommand(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStartChaos<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginStartChaos( &self, restartpartitiondescription: *const super::super::FABRIC_START_CHAOS_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartChaos)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartChaos)( + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartChaos<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartChaos(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndStartChaos)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndStartChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStopChaos<'a, P0>( + pub unsafe fn BeginStopChaos( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStopChaos)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStopChaos)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStopChaos<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStopChaos(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndStopChaos)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndStopChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetChaosReport<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetChaosReport( &self, getchaosreportdescription: *const super::super::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetChaosReport)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(getchaosreportdescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetChaosReport)( + ::windows_core::Interface::as_raw(self), + getchaosreportdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetChaosReport<'a, P0>( + pub unsafe fn EndGetChaosReport( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetChaosReport)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetChaosReport)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricTestManagementClient2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricTestManagementClient ); -impl ::core::clone::Clone for IFabricTestManagementClient2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricTestManagementClient2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -42285,555 +41422,540 @@ impl ::core::fmt::Debug for IFabricTestManagementClient2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTestManagementClient2 { +unsafe impl ::windows_core::Interface for IFabricTestManagementClient2 { type Vtable = IFabricTestManagementClient2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTestManagementClient2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x1222b1ff_ae51_43b3_bbdf_439e7f61ca1a); +impl ::core::clone::Clone for IFabricTestManagementClient2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTestManagementClient2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x1222b1ff_ae51_43b3_bbdf_439e7f61ca1a); } #[repr(C)] #[doc(hidden)] pub struct IFabricTestManagementClient2_Vtbl { pub base__: IFabricTestManagementClient_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginStartChaos: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, restartpartitiondescription: *const super::super::FABRIC_START_CHAOS_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginStartChaos: usize, pub EndStartChaos: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginStopChaos: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndStopChaos: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginGetChaosReport: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, getchaosreportdescription: *const super::super::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetChaosReport: usize, pub EndGetChaosReport: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricTestManagementClient3(::windows::core::IUnknown); +pub struct IFabricTestManagementClient3(::windows_core::IUnknown); impl IFabricTestManagementClient3 { - pub unsafe fn BeginStartPartitionDataLoss<'a, P0>( + pub unsafe fn BeginStartPartitionDataLoss( &self, invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartPartitionDataLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartPartitionDataLoss(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPartitionDataLossProgress<'a, P0>( + pub unsafe fn BeginGetPartitionDataLossProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionDataLossProgress<'a, P0>( + pub unsafe fn EndGetPartitionDataLossProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginStartPartitionQuorumLoss<'a, P0>( + pub unsafe fn BeginStartPartitionQuorumLoss( &self, invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokequorumlossdescription), + ::windows_core::Interface::as_raw(self), + invokequorumlossdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartPartitionQuorumLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartPartitionQuorumLoss(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPartitionQuorumLossProgress<'a, P0>( + pub unsafe fn BeginGetPartitionQuorumLossProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionQuorumLossProgress<'a, P0>( + pub unsafe fn EndGetPartitionQuorumLossProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginStartPartitionRestart<'a, P0>( + pub unsafe fn BeginStartPartitionRestart( &self, restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartPartitionRestart<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartPartitionRestart(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPartitionRestartProgress<'a, P0>( + pub unsafe fn BeginGetPartitionRestartProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionRestartProgress<'a, P0>( + pub unsafe fn EndGetPartitionRestartProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetTestCommandStatusList<'a, P0>( + pub unsafe fn BeginGetTestCommandStatusList( &self, operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), + ::windows_core::Interface::as_raw(self), + operationid, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetTestCommandStatusList<'a, P0>( + pub unsafe fn EndGetTestCommandStatusList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginCancelTestCommand<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginCancelTestCommand( &self, invokedatalossdescription: *const super::super::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCancelTestCommand<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCancelTestCommand(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .EndCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStartChaos<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginStartChaos( &self, restartpartitiondescription: *const super::super::FABRIC_START_CHAOS_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginStartChaos)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginStartChaos)( + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartChaos<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartChaos(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndStartChaos)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).base__.EndStartChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStopChaos<'a, P0>( + pub unsafe fn BeginStopChaos( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginStopChaos)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginStopChaos)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStopChaos<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStopChaos(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndStopChaos)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).base__.EndStopChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetChaosReport<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetChaosReport( &self, getchaosreportdescription: *const super::super::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetChaosReport)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(getchaosreportdescription), + ::windows_core::Interface::as_raw(self), + getchaosreportdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetChaosReport<'a, P0>( + pub unsafe fn EndGetChaosReport( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetChaosReport)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginStartNodeTransition<'a, P0>( + pub unsafe fn BeginStartNodeTransition( &self, description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginStartNodeTransition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginStartNodeTransition)( + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartNodeTransition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartNodeTransition(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndStartNodeTransition)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndStartNodeTransition)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetNodeTransitionProgress<'a, P0>( + pub unsafe fn BeginGetNodeTransitionProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNodeTransitionProgress)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNodeTransitionProgress)( + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeTransitionProgress<'a, P0>( + pub unsafe fn EndGetNodeTransitionProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNodeTransitionProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNodeTransitionProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricTestManagementClient3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricTestManagementClient, IFabricTestManagementClient2 ); -impl ::core::clone::Clone for IFabricTestManagementClient3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricTestManagementClient3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -42847,12 +41969,17 @@ impl ::core::fmt::Debug for IFabricTestManagementClient3 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTestManagementClient3 { +unsafe impl ::windows_core::Interface for IFabricTestManagementClient3 { type Vtable = IFabricTestManagementClient3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTestManagementClient3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa4b94afd_0cb5_4010_8995_e58e9b6ca373); +impl ::core::clone::Clone for IFabricTestManagementClient3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTestManagementClient3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa4b94afd_0cb5_4010_8995_e58e9b6ca373); } #[repr(C)] #[doc(hidden)] @@ -42864,695 +41991,668 @@ pub struct IFabricTestManagementClient3_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndStartNodeTransition: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetNodeTransitionProgress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetNodeTransitionProgress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricTestManagementClient4(::windows::core::IUnknown); +pub struct IFabricTestManagementClient4(::windows_core::IUnknown); impl IFabricTestManagementClient4 { - pub unsafe fn BeginStartPartitionDataLoss<'a, P0>( + pub unsafe fn BeginStartPartitionDataLoss( &self, invokedatalossdescription : *const super::super:: FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartPartitionDataLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartPartitionDataLoss(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndStartPartitionDataLoss)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPartitionDataLossProgress<'a, P0>( + pub unsafe fn BeginGetPartitionDataLossProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionDataLossProgress<'a, P0>( + pub unsafe fn EndGetPartitionDataLossProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetPartitionDataLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginStartPartitionQuorumLoss<'a, P0>( + pub unsafe fn BeginStartPartitionQuorumLoss( &self, invokequorumlossdescription : *const super::super:: FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokequorumlossdescription), + ::windows_core::Interface::as_raw(self), + invokequorumlossdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartPartitionQuorumLoss<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartPartitionQuorumLoss(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndStartPartitionQuorumLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPartitionQuorumLossProgress<'a, P0>( + pub unsafe fn BeginGetPartitionQuorumLossProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionQuorumLossProgress<'a, P0>( + pub unsafe fn EndGetPartitionQuorumLossProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetPartitionQuorumLossProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginStartPartitionRestart<'a, P0>( + pub unsafe fn BeginStartPartitionRestart( &self, restartpartitiondescription : *const super::super:: FABRIC_START_PARTITION_RESTART_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartPartitionRestart<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndStartPartitionRestart(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndStartPartitionRestart)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetPartitionRestartProgress<'a, P0>( + pub unsafe fn BeginGetPartitionRestartProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetPartitionRestartProgress<'a, P0>( + pub unsafe fn EndGetPartitionRestartProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetPartitionRestartProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetTestCommandStatusList<'a, P0>( + pub unsafe fn BeginGetTestCommandStatusList( &self, operationid: *const super::super::FABRIC_TEST_COMMAND_LIST_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(operationid), + ::windows_core::Interface::as_raw(self), + operationid, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetTestCommandStatusList<'a, P0>( + pub unsafe fn EndGetTestCommandStatusList( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndGetTestCommandStatusList)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginCancelTestCommand<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginCancelTestCommand( &self, invokedatalossdescription: *const super::super::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(invokedatalossdescription), + ::windows_core::Interface::as_raw(self), + invokedatalossdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCancelTestCommand<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndCancelTestCommand(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndCancelTestCommand)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginStartChaos<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginStartChaos( &self, restartpartitiondescription: *const super::super::FABRIC_START_CHAOS_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginStartChaos)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(restartpartitiondescription), + ::windows_core::Interface::as_raw(self), + restartpartitiondescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartChaos<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartChaos(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndStartChaos)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStartChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginStopChaos<'a, P0>( + pub unsafe fn BeginStopChaos( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginStopChaos)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStopChaos<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStopChaos(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndStopChaos)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndStopChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginGetChaosReport<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetChaosReport( &self, getchaosreportdescription: *const super::super::FABRIC_GET_CHAOS_REPORT_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginGetChaosReport)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(getchaosreportdescription), + ::windows_core::Interface::as_raw(self), + getchaosreportdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetChaosReport<'a, P0>( + pub unsafe fn EndGetChaosReport( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndGetChaosReport)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginStartNodeTransition<'a, P0>( + pub unsafe fn BeginStartNodeTransition( &self, description: *const super::super::FABRIC_NODE_TRANSITION_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginStartNodeTransition)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(description), + ::windows_core::Interface::as_raw(self), + description, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndStartNodeTransition<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndStartNodeTransition(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .EndStartNodeTransition)( - ::windows::core::Vtable::as_raw(self), context.into().abi() + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetNodeTransitionProgress<'a, P0>( + pub unsafe fn BeginGetNodeTransitionProgress( &self, - operationid: ::windows::core::GUID, + operationid: ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetNodeTransitionProgress)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), ::core::mem::transmute(operationid), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNodeTransitionProgress<'a, P0>( + pub unsafe fn EndGetNodeTransitionProgress( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EndGetNodeTransitionProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetChaos<'a, P0>( + pub unsafe fn BeginGetChaos( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetChaos)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetChaos)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetChaos<'a, P0>( + pub unsafe fn EndGetChaos( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetChaos)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetChaos)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginGetChaosSchedule<'a, P0>( + pub unsafe fn BeginGetChaosSchedule( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetChaosSchedule)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetChaosSchedule)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetChaosSchedule<'a, P0>( + pub unsafe fn EndGetChaosSchedule( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetChaosSchedule)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetChaosSchedule)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginSetChaosSchedule<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginSetChaosSchedule( &self, setchaosscheduledescription: *const super::super::FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginSetChaosSchedule)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(setchaosscheduledescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginSetChaosSchedule)( + ::windows_core::Interface::as_raw(self), + setchaosscheduledescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndSetChaosSchedule<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndSetChaosSchedule(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndSetChaosSchedule)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndSetChaosSchedule)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginGetChaosEvents<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginGetChaosEvents( &self, chaoseventsdescription: *const super::super::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetChaosEvents)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(chaoseventsdescription), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetChaosEvents)( + ::windows_core::Interface::as_raw(self), + chaoseventsdescription, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetChaosEvents<'a, P0>( + pub unsafe fn EndGetChaosEvents( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetChaosEvents)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetChaosEvents)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricTestManagementClient4, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricTestManagementClient, IFabricTestManagementClient2, IFabricTestManagementClient3 ); -impl ::core::clone::Clone for IFabricTestManagementClient4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricTestManagementClient4 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -43566,12 +42666,17 @@ impl ::core::fmt::Debug for IFabricTestManagementClient4 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTestManagementClient4 { +unsafe impl ::windows_core::Interface for IFabricTestManagementClient4 { type Vtable = IFabricTestManagementClient4_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTestManagementClient4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb96aa7d4_acc0_4814_89dc_561b0cbb6028); +impl ::core::clone::Clone for IFabricTestManagementClient4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTestManagementClient4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb96aa7d4_acc0_4814_89dc_561b0cbb6028); } #[repr(C)] #[doc(hidden)] @@ -43582,65 +42687,67 @@ pub struct IFabricTestManagementClient4_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetChaos: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginGetChaosSchedule: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetChaosSchedule: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginSetChaosSchedule: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, setchaosscheduledescription: *const super::super::FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginSetChaosSchedule: usize, pub EndSetChaosSchedule: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub BeginGetChaosEvents: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, chaoseventsdescription: *const super::super::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginGetChaosEvents: usize, pub EndGetChaosEvents: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricUpgradeOrchestrationServiceStateResult(::windows::core::IUnknown); +pub struct IFabricUpgradeOrchestrationServiceStateResult(::windows_core::IUnknown); impl IFabricUpgradeOrchestrationServiceStateResult { pub unsafe fn get_State( &self, ) -> *mut super::super::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - (::windows::core::Vtable::vtable(self).get_State)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_State)(::windows_core::Interface::as_raw(self)) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricUpgradeOrchestrationServiceStateResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricUpgradeOrchestrationServiceStateResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricUpgradeOrchestrationServiceStateResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -43654,77 +42761,78 @@ impl ::core::fmt::Debug for IFabricUpgradeOrchestrationServiceStateResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricUpgradeOrchestrationServiceStateResult { +unsafe impl ::windows_core::Interface for IFabricUpgradeOrchestrationServiceStateResult { type Vtable = IFabricUpgradeOrchestrationServiceStateResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricUpgradeOrchestrationServiceStateResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x413968aa_2eb7_4023_b9dc_0f2160b76a6d); +impl ::core::clone::Clone for IFabricUpgradeOrchestrationServiceStateResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricUpgradeOrchestrationServiceStateResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x413968aa_2eb7_4023_b9dc_0f2160b76a6d); } #[repr(C)] #[doc(hidden)] pub struct IFabricUpgradeOrchestrationServiceStateResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_State: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricUpgradeProgressResult(::windows::core::IUnknown); +pub struct IFabricUpgradeProgressResult(::windows_core::IUnknown); impl IFabricUpgradeProgressResult { - pub unsafe fn get_TargetCodeVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_TargetCodeVersion)( - ::windows::core::Vtable::as_raw(self), + 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::PWSTR { - (::windows::core::Vtable::vtable(self).get_TargetConfigVersion)( - ::windows::core::Vtable::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::super::FABRIC_UPGRADE_STATE { - (::windows::core::Vtable::vtable(self).get_UpgradeState)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_UpgradeState)( + ::windows_core::Interface::as_raw(self), + ) } pub unsafe fn GetUpgradeDomains( &self, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, ) .ok() } - pub unsafe fn GetChangedUpgradeDomains<'a, P0>( + pub unsafe fn GetChangedUpgradeDomains( &self, previousprogress: P0, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).GetChangedUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - previousprogress.into().abi(), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + (::windows_core::Interface::vtable(self).GetChangedUpgradeDomains)( + ::windows_core::Interface::as_raw(self), + previousprogress.into_param().abi(), + itemcount, + buffereditems, ) .ok() } } -::windows::core::interface_hierarchy!(IFabricUpgradeProgressResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricUpgradeProgressResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricUpgradeProgressResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricUpgradeProgressResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -43738,21 +42846,26 @@ impl ::core::fmt::Debug for IFabricUpgradeProgressResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricUpgradeProgressResult { +unsafe impl ::windows_core::Interface for IFabricUpgradeProgressResult { type Vtable = IFabricUpgradeProgressResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricUpgradeProgressResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2adb07db_f7db_4621_9afc_daabe1e53bf8); +impl ::core::clone::Clone for IFabricUpgradeProgressResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricUpgradeProgressResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2adb07db_f7db_4621_9afc_daabe1e53bf8); } #[repr(C)] #[doc(hidden)] pub struct IFabricUpgradeProgressResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_TargetCodeVersion: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub get_TargetConfigVersion: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub get_UpgradeState: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> super::super::FABRIC_UPGRADE_STATE, @@ -43760,86 +42873,82 @@ pub struct IFabricUpgradeProgressResult_Vtbl { this: *mut ::core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetChangedUpgradeDomains: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, previousprogress: *mut ::core::ffi::c_void, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricUpgradeProgressResult2(::windows::core::IUnknown); +pub struct IFabricUpgradeProgressResult2(::windows_core::IUnknown); impl IFabricUpgradeProgressResult2 { - pub unsafe fn get_TargetCodeVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_TargetCodeVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_TargetCodeVersion)(::windows::core::Vtable::as_raw(self)) + .get_TargetCodeVersion)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_TargetConfigVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_TargetConfigVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_TargetConfigVersion)(::windows::core::Vtable::as_raw(self)) + .get_TargetConfigVersion)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_UPGRADE_STATE { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_UpgradeState)(::windows::core::Vtable::as_raw(self)) + .get_UpgradeState)(::windows_core::Interface::as_raw(self)) } pub unsafe fn GetUpgradeDomains( &self, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .GetUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, ) .ok() } - pub unsafe fn GetChangedUpgradeDomains<'a, P0>( + pub unsafe fn GetChangedUpgradeDomains( &self, previousprogress: P0, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .GetChangedUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - previousprogress.into().abi(), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + ::windows_core::Interface::as_raw(self), + previousprogress.into_param().abi(), + itemcount, + buffereditems, ) .ok() } pub unsafe fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { - (::windows::core::Vtable::vtable(self).get_RollingUpgradeMode)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_RollingUpgradeMode)( + ::windows_core::Interface::as_raw(self), ) } - pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_NextUpgradeDomain)( - ::windows::core::Vtable::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), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricUpgradeProgressResult2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricUpgradeProgressResult ); -impl ::core::clone::Clone for IFabricUpgradeProgressResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricUpgradeProgressResult2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -43853,12 +42962,17 @@ impl ::core::fmt::Debug for IFabricUpgradeProgressResult2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricUpgradeProgressResult2 { +unsafe impl ::windows_core::Interface for IFabricUpgradeProgressResult2 { type Vtable = IFabricUpgradeProgressResult2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricUpgradeProgressResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9cc0aaf3_0f6c_40a3_85ac_38338dd36d75); +impl ::core::clone::Clone for IFabricUpgradeProgressResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricUpgradeProgressResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9cc0aaf3_0f6c_40a3_85ac_38338dd36d75); } #[repr(C)] #[doc(hidden)] @@ -43869,91 +42983,87 @@ pub struct IFabricUpgradeProgressResult2_Vtbl { this: *mut ::core::ffi::c_void, ) -> super::super::FABRIC_ROLLING_UPGRADE_MODE, pub get_NextUpgradeDomain: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] #[repr(transparent)] -pub struct IFabricUpgradeProgressResult3(::windows::core::IUnknown); +pub struct IFabricUpgradeProgressResult3(::windows_core::IUnknown); impl IFabricUpgradeProgressResult3 { - pub unsafe fn get_TargetCodeVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_TargetCodeVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_TargetCodeVersion)(::windows::core::Vtable::as_raw(self)) + .get_TargetCodeVersion)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_TargetConfigVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_TargetConfigVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_TargetConfigVersion)(::windows::core::Vtable::as_raw(self)) + .get_TargetConfigVersion)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_UpgradeState(&self) -> super::super::FABRIC_UPGRADE_STATE { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_UpgradeState)(::windows::core::Vtable::as_raw(self)) + .get_UpgradeState)(::windows_core::Interface::as_raw(self)) } pub unsafe fn GetUpgradeDomains( &self, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .GetUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, ) .ok() } - pub unsafe fn GetChangedUpgradeDomains<'a, P0>( + pub unsafe fn GetChangedUpgradeDomains( &self, previousprogress: P0, itemcount: *mut u32, buffereditems: *mut *mut super::super::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricUpgradeProgressResult>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .GetChangedUpgradeDomains)( - ::windows::core::Vtable::as_raw(self), - previousprogress.into().abi(), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + ::windows_core::Interface::as_raw(self), + previousprogress.into_param().abi(), + itemcount, + buffereditems, ) .ok() } pub unsafe fn get_RollingUpgradeMode(&self) -> super::super::FABRIC_ROLLING_UPGRADE_MODE { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_RollingUpgradeMode)(::windows::core::Vtable::as_raw(self)) + .get_RollingUpgradeMode)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_NextUpgradeDomain(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_NextUpgradeDomain)(::windows::core::Vtable::as_raw(self)) + .get_NextUpgradeDomain)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_UpgradeProgress(&self) -> *mut super::super::FABRIC_UPGRADE_PROGRESS { - (::windows::core::Vtable::vtable(self).get_UpgradeProgress)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_UpgradeProgress)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricUpgradeProgressResult3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricUpgradeProgressResult, IFabricUpgradeProgressResult2 ); -impl ::core::clone::Clone for IFabricUpgradeProgressResult3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricUpgradeProgressResult3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -43967,12 +43077,17 @@ impl ::core::fmt::Debug for IFabricUpgradeProgressResult3 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricUpgradeProgressResult3 { +unsafe impl ::windows_core::Interface for IFabricUpgradeProgressResult3 { type Vtable = IFabricUpgradeProgressResult3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricUpgradeProgressResult3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xdc3346ef_d2ef_40c1_807b_1ca8d2388b47); +impl ::core::clone::Clone for IFabricUpgradeProgressResult3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricUpgradeProgressResult3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xdc3346ef_d2ef_40c1_807b_1ca8d2388b47); } #[repr(C)] #[doc(hidden)] @@ -43983,7 +43098,8 @@ pub struct IFabricUpgradeProgressResult3_Vtbl { this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_UPGRADE_PROGRESS, } -pub const FabricClient: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x75f087fa_37f1_4984_b513_724da5b02197); +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricClient\"`*"] +pub const FabricClient: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x75f087fa_37f1_4984_b513_724da5b02197); #[cfg(feature = "implement")] ::core::include!("impl.rs"); diff --git a/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/impl.rs b/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/impl.rs index 8a51902d..0e71a073 100644 --- a/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/impl.rs +++ b/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/impl.rs @@ -1,43 +1,44 @@ +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricAtomicGroupStateProvider_Impl: Sized { fn BeginAtomicGroupCommit( &self, atomicgroupid: i64, commitsequencenumber: i64, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndAtomicGroupCommit( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginAtomicGroupRollback( &self, atomicgroupid: i64, rollbackequencenumber: i64, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndAtomicGroupRollback( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginUndoProgress( &self, fromcommitsequencenumber: i64, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUndoProgress( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricAtomicGroupStateProvider {} +impl ::windows_core::RuntimeName for IFabricAtomicGroupStateProvider {} impl IFabricAtomicGroupStateProvider_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateProvider_Impl, const OFFSET: isize, >() -> IFabricAtomicGroupStateProvider_Vtbl { unsafe extern "system" fn BeginAtomicGroupCommit< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateProvider_Impl, const OFFSET: isize, >( @@ -46,36 +47,36 @@ impl IFabricAtomicGroupStateProvider_Vtbl { commitsequencenumber: i64, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginAtomicGroupCommit( ::core::mem::transmute_copy(&atomicgroupid), ::core::mem::transmute_copy(&commitsequencenumber), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndAtomicGroupCommit< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateProvider_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndAtomicGroupCommit(::core::mem::transmute(&context)) + this.EndAtomicGroupCommit(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginAtomicGroupRollback< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateProvider_Impl, const OFFSET: isize, >( @@ -84,36 +85,36 @@ impl IFabricAtomicGroupStateProvider_Vtbl { rollbackequencenumber: i64, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginAtomicGroupRollback( ::core::mem::transmute_copy(&atomicgroupid), ::core::mem::transmute_copy(&rollbackequencenumber), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndAtomicGroupRollback< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateProvider_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndAtomicGroupRollback(::core::mem::transmute(&context)) + this.EndAtomicGroupRollback(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginUndoProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateProvider_Impl, const OFFSET: isize, >( @@ -121,35 +122,35 @@ impl IFabricAtomicGroupStateProvider_Vtbl { fromcommitsequencenumber: i64, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUndoProgress( ::core::mem::transmute_copy(&fromcommitsequencenumber), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUndoProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateProvider_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUndoProgress(::core::mem::transmute(&context)) + this.EndUndoProgress(::windows_core::from_raw_borrowed(&context)) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginAtomicGroupCommit: BeginAtomicGroupCommit::, EndAtomicGroupCommit: EndAtomicGroupCommit::, BeginAtomicGroupRollback: BeginAtomicGroupRollback::, @@ -158,74 +159,75 @@ impl IFabricAtomicGroupStateProvider_Vtbl { EndUndoProgress: EndUndoProgress::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricAtomicGroupStateReplicator_Impl: Sized { - fn CreateAtomicGroup(&self) -> ::windows::core::Result; + fn CreateAtomicGroup(&self) -> ::windows_core::Result; fn BeginReplicateAtomicGroupOperation( &self, atomicgroupid: i64, - operationdata: &::core::option::Option, - callback: &::core::option::Option, + operationdata: ::core::option::Option<&IFabricOperationData>, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, operationsequencenumber: *mut i64, context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn EndReplicateAtomicGroupOperation( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginReplicateAtomicGroupCommit( &self, atomicgroupid: i64, - callback: &::core::option::Option, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, commitsequencenumber: *mut i64, context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn EndReplicateAtomicGroupCommit( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginReplicateAtomicGroupRollback( &self, atomicgroupid: i64, - callback: &::core::option::Option, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, rollbacksequencenumber: *mut i64, context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn EndReplicateAtomicGroupRollback( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricAtomicGroupStateReplicator {} +impl ::windows_core::RuntimeName for IFabricAtomicGroupStateReplicator {} impl IFabricAtomicGroupStateReplicator_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateReplicator_Impl, const OFFSET: isize, >() -> IFabricAtomicGroupStateReplicator_Vtbl { unsafe extern "system" fn CreateAtomicGroup< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, atomicgroupid: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateAtomicGroup() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(atomicgroupid, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginReplicateAtomicGroupOperation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateReplicator_Impl, const OFFSET: isize, >( @@ -235,39 +237,40 @@ impl IFabricAtomicGroupStateReplicator_Vtbl { callback: *mut ::core::ffi::c_void, operationsequencenumber: *mut i64, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BeginReplicateAtomicGroupOperation( ::core::mem::transmute_copy(&atomicgroupid), - ::core::mem::transmute(&operationdata), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&operationdata), + ::windows_core::from_raw_borrowed(&callback), ::core::mem::transmute_copy(&operationsequencenumber), ::core::mem::transmute_copy(&context), ) .into() } unsafe extern "system" fn EndReplicateAtomicGroupOperation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, operationsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndReplicateAtomicGroupOperation(::core::mem::transmute(&context)) { + match this.EndReplicateAtomicGroupOperation(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(operationsequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginReplicateAtomicGroupCommit< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateReplicator_Impl, const OFFSET: isize, >( @@ -276,38 +279,38 @@ impl IFabricAtomicGroupStateReplicator_Vtbl { callback: *mut ::core::ffi::c_void, commitsequencenumber: *mut i64, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BeginReplicateAtomicGroupCommit( ::core::mem::transmute_copy(&atomicgroupid), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ::core::mem::transmute_copy(&commitsequencenumber), ::core::mem::transmute_copy(&context), ) .into() } unsafe extern "system" fn EndReplicateAtomicGroupCommit< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndReplicateAtomicGroupCommit(::core::mem::transmute(&context)) { + match this.EndReplicateAtomicGroupCommit(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(commitsequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginReplicateAtomicGroupRollback< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateReplicator_Impl, const OFFSET: isize, >( @@ -316,38 +319,39 @@ impl IFabricAtomicGroupStateReplicator_Vtbl { callback: *mut ::core::ffi::c_void, rollbacksequencenumber: *mut i64, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BeginReplicateAtomicGroupRollback( ::core::mem::transmute_copy(&atomicgroupid), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ::core::mem::transmute_copy(&rollbacksequencenumber), ::core::mem::transmute_copy(&context), ) .into() } unsafe extern "system" fn EndReplicateAtomicGroupRollback< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAtomicGroupStateReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, rollbacksequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndReplicateAtomicGroupRollback(::core::mem::transmute(&context)) { + match this.EndReplicateAtomicGroupRollback(::windows_core::from_raw_borrowed(&context)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(rollbacksequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), CreateAtomicGroup: CreateAtomicGroup::, BeginReplicateAtomicGroupOperation: BeginReplicateAtomicGroupOperation::< Identity, @@ -377,23 +381,27 @@ impl IFabricAtomicGroupStateReplicator_Vtbl { >, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricCodePackage_Impl: Sized { fn get_Description(&self) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION; - fn get_Path(&self) -> ::windows::core::PWSTR; + fn get_Path(&self) -> ::windows_core::PCWSTR; } -impl ::windows::core::RuntimeName for IFabricCodePackage {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricCodePackage {} +#[cfg(feature = "Win32_Foundation")] impl IFabricCodePackage_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackage_Impl, const OFFSET: isize, >() -> IFabricCodePackage_Vtbl { unsafe extern "system" fn get_Description< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackage_Impl, const OFFSET: isize, >( @@ -404,39 +412,43 @@ impl IFabricCodePackage_Vtbl { this.get_Description() } unsafe extern "system" fn get_Path< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackage_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_Path() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Description: get_Description::, get_Path: get_Path::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricCodePackage2_Impl: Sized + IFabricCodePackage_Impl { fn get_SetupEntryPointRunAsPolicy(&self) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION; fn get_EntryPointRunAsPolicy(&self) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION; } -impl ::windows::core::RuntimeName for IFabricCodePackage2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricCodePackage2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricCodePackage2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackage2_Impl, const OFFSET: isize, >() -> IFabricCodePackage2_Vtbl { unsafe extern "system" fn get_SetupEntryPointRunAsPolicy< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackage2_Impl, const OFFSET: isize, >( @@ -447,7 +459,7 @@ impl IFabricCodePackage2_Vtbl { this.get_SetupEntryPointRunAsPolicy() } unsafe extern "system" fn get_EntryPointRunAsPolicy< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackage2_Impl, const OFFSET: isize, >( @@ -463,18 +475,20 @@ impl IFabricCodePackage2_Vtbl { get_EntryPointRunAsPolicy: get_EntryPointRunAsPolicy::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricCodePackageActivationContext_Impl: Sized { - fn get_ContextId(&self) -> ::windows::core::PWSTR; - fn get_CodePackageName(&self) -> ::windows::core::PWSTR; - fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR; - fn get_WorkDirectory(&self) -> ::windows::core::PWSTR; - fn get_LogDirectory(&self) -> ::windows::core::PWSTR; - fn get_TempDirectory(&self) -> ::windows::core::PWSTR; + 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::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST; fn get_ServiceGroupTypes( &self, @@ -487,125 +501,123 @@ pub trait IFabricCodePackageActivationContext_Impl: Sized { ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST; fn GetServiceEndpointResource( &self, - serviceendpointresourcename: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>; - fn GetCodePackageNames(&self) -> ::windows::core::Result; + serviceendpointresourcename: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>; + fn GetCodePackageNames(&self) -> ::windows_core::Result; fn GetConfigurationPackageNames( &self, - ) -> ::windows::core::Result; - fn GetDataPackageNames(&self) -> ::windows::core::Result; + ) -> ::windows_core::Result; + fn GetDataPackageNames(&self) -> ::windows_core::Result; fn GetCodePackage( &self, - codepackagename: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + codepackagename: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; fn GetConfigurationPackage( &self, - configpackagename: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + configpackagename: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; fn GetDataPackage( &self, - datapackagename: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + datapackagename: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; fn RegisterCodePackageChangeHandler( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn UnregisterCodePackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()>; + callback: ::core::option::Option<&IFabricCodePackageChangeHandler>, + ) -> ::windows_core::Result; + fn UnregisterCodePackageChangeHandler(&self, callbackhandle: i64) + -> ::windows_core::Result<()>; fn RegisterConfigurationPackageChangeHandler( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&IFabricConfigurationPackageChangeHandler>, + ) -> ::windows_core::Result; fn UnregisterConfigurationPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn RegisterDataPackageChangeHandler( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; - fn UnregisterDataPackageChangeHandler( - &self, - callbackhandle: i64, - ) -> ::windows::core::Result<()>; + callback: ::core::option::Option<&IFabricDataPackageChangeHandler>, + ) -> ::windows_core::Result; + fn UnregisterDataPackageChangeHandler(&self, callbackhandle: i64) + -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricCodePackageActivationContext {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricCodePackageActivationContext {} +#[cfg(feature = "Win32_Foundation")] impl IFabricCodePackageActivationContext_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >() -> IFabricCodePackageActivationContext_Vtbl { unsafe extern "system" fn get_ContextId< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_ContextId() } unsafe extern "system" fn get_CodePackageName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_CodePackageName() } unsafe extern "system" fn get_CodePackageVersion< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_CodePackageVersion() } unsafe extern "system" fn get_WorkDirectory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_WorkDirectory() } unsafe extern "system" fn get_LogDirectory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_LogDirectory() } unsafe extern "system" fn get_TempDirectory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_TempDirectory() } unsafe extern "system" fn get_ServiceTypes< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( @@ -616,7 +628,7 @@ impl IFabricCodePackageActivationContext_Vtbl { this.get_ServiceTypes() } unsafe extern "system" fn get_ServiceGroupTypes< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( @@ -627,7 +639,7 @@ impl IFabricCodePackageActivationContext_Vtbl { this.get_ServiceGroupTypes() } unsafe extern "system" fn get_ApplicationPrincipals< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( @@ -638,7 +650,7 @@ impl IFabricCodePackageActivationContext_Vtbl { this.get_ApplicationPrincipals() } unsafe extern "system" fn get_ServiceEndpointResources< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( @@ -649,14 +661,14 @@ impl IFabricCodePackageActivationContext_Vtbl { this.get_ServiceEndpointResources() } unsafe extern "system" fn GetServiceEndpointResource< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - serviceendpointresourcename: ::windows::core::PCWSTR, + serviceendpointresourcename: ::windows_core::PCWSTR, bufferedvalue: *mut *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this @@ -664,182 +676,185 @@ impl IFabricCodePackageActivationContext_Vtbl { { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetCodePackageNames< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, names: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCodePackageNames() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(names, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetConfigurationPackageNames< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, names: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetConfigurationPackageNames() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(names, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetDataPackageNames< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, names: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDataPackageNames() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(names, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetCodePackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - codepackagename: ::windows::core::PCWSTR, + codepackagename: ::windows_core::PCWSTR, codepackage: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCodePackage(::core::mem::transmute(&codepackagename)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(codepackage, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetConfigurationPackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - configpackagename: ::windows::core::PCWSTR, + configpackagename: ::windows_core::PCWSTR, configpackage: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetConfigurationPackage(::core::mem::transmute(&configpackagename)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(configpackage, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetDataPackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - datapackagename: ::windows::core::PCWSTR, + datapackagename: ::windows_core::PCWSTR, datapackage: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDataPackage(::core::mem::transmute(&datapackagename)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(datapackage, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn RegisterCodePackageChangeHandler< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, callbackhandle: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.RegisterCodePackageChangeHandler(::core::mem::transmute(&callback)) { + match this + .RegisterCodePackageChangeHandler(::windows_core::from_raw_borrowed(&callback)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn UnregisterCodePackageChangeHandler< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, callbackhandle: i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UnregisterCodePackageChangeHandler(::core::mem::transmute_copy(&callbackhandle)) .into() } unsafe extern "system" fn RegisterConfigurationPackageChangeHandler< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, callbackhandle: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.RegisterConfigurationPackageChangeHandler(::core::mem::transmute(&callback)) - { + match this.RegisterConfigurationPackageChangeHandler(::windows_core::from_raw_borrowed( + &callback, + )) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn UnregisterConfigurationPackageChangeHandler< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, callbackhandle: i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UnregisterConfigurationPackageChangeHandler(::core::mem::transmute_copy( @@ -848,39 +863,41 @@ impl IFabricCodePackageActivationContext_Vtbl { .into() } unsafe extern "system" fn RegisterDataPackageChangeHandler< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, callbackhandle: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.RegisterDataPackageChangeHandler(::core::mem::transmute(&callback)) { + match this + .RegisterDataPackageChangeHandler(::windows_core::from_raw_borrowed(&callback)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn UnregisterDataPackageChangeHandler< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, callbackhandle: i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UnregisterDataPackageChangeHandler(::core::mem::transmute_copy(&callbackhandle)) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ContextId: get_ContextId::, get_CodePackageName: get_CodePackageName::, get_CodePackageVersion: get_CodePackageVersion::, @@ -927,27 +944,31 @@ impl IFabricCodePackageActivationContext_Vtbl { >, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricCodePackageActivationContext2_Impl: Sized + IFabricCodePackageActivationContext_Impl { fn get_ApplicationName(&self) -> *mut u16; - fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR; - fn GetServiceManifestName(&self) -> ::windows::core::Result; - fn GetServiceManifestVersion(&self) -> ::windows::core::Result; + fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR; + fn GetServiceManifestName(&self) -> ::windows_core::Result; + fn GetServiceManifestVersion(&self) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricCodePackageActivationContext2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricCodePackageActivationContext2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricCodePackageActivationContext2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext2_Impl, const OFFSET: isize, >() -> IFabricCodePackageActivationContext2_Vtbl { unsafe extern "system" fn get_ApplicationName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext2_Impl, const OFFSET: isize, >( @@ -958,48 +979,48 @@ impl IFabricCodePackageActivationContext2_Vtbl { this.get_ApplicationName() } unsafe extern "system" fn get_ApplicationTypeName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_ApplicationTypeName() } unsafe extern "system" fn GetServiceManifestName< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, servicemanifestname: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetServiceManifestName() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(servicemanifestname, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetServiceManifestVersion< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, servicemanifestversion: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetServiceManifestVersion() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(servicemanifestversion, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -1012,68 +1033,72 @@ impl IFabricCodePackageActivationContext2_Vtbl { GetServiceManifestVersion: GetServiceManifestVersion::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricCodePackageActivationContext3_Impl: Sized + IFabricCodePackageActivationContext2_Impl { fn ReportApplicationHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn ReportDeployedApplicationHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn ReportDeployedServicePackageHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricCodePackageActivationContext3 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricCodePackageActivationContext3 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricCodePackageActivationContext3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext3_Impl, const OFFSET: isize, >() -> IFabricCodePackageActivationContext3_Vtbl { unsafe extern "system" fn ReportApplicationHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportApplicationHealth(::core::mem::transmute_copy(&healthinfo)) .into() } unsafe extern "system" fn ReportDeployedApplicationHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportDeployedApplicationHealth(::core::mem::transmute_copy(&healthinfo)) .into() } unsafe extern "system" fn ReportDeployedServicePackageHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportDeployedServicePackageHealth(::core::mem::transmute_copy(&healthinfo)) @@ -1094,12 +1119,14 @@ impl IFabricCodePackageActivationContext3_Vtbl { >, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricCodePackageActivationContext4_Impl: Sized + IFabricCodePackageActivationContext3_Impl { @@ -1107,34 +1134,36 @@ pub trait IFabricCodePackageActivationContext4_Impl: &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn ReportDeployedApplicationHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn ReportDeployedServicePackageHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricCodePackageActivationContext4 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricCodePackageActivationContext4 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricCodePackageActivationContext4_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext4_Impl, const OFFSET: isize, >() -> IFabricCodePackageActivationContext4_Vtbl { unsafe extern "system" fn ReportApplicationHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportApplicationHealth2( @@ -1144,14 +1173,14 @@ impl IFabricCodePackageActivationContext4_Vtbl { .into() } unsafe extern "system" fn ReportDeployedApplicationHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportDeployedApplicationHealth2( @@ -1161,14 +1190,14 @@ impl IFabricCodePackageActivationContext4_Vtbl { .into() } unsafe extern "system" fn ReportDeployedServicePackageHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportDeployedServicePackageHealth2( @@ -1192,44 +1221,48 @@ impl IFabricCodePackageActivationContext4_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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricCodePackageActivationContext5_Impl: Sized + IFabricCodePackageActivationContext4_Impl { - fn get_ServiceListenAddress(&self) -> ::windows::core::PWSTR; - fn get_ServicePublishAddress(&self) -> ::windows::core::PWSTR; + fn get_ServiceListenAddress(&self) -> ::windows_core::PCWSTR; + fn get_ServicePublishAddress(&self) -> ::windows_core::PCWSTR; } -impl ::windows::core::RuntimeName for IFabricCodePackageActivationContext5 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricCodePackageActivationContext5 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricCodePackageActivationContext5_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext5_Impl, const OFFSET: isize, >() -> IFabricCodePackageActivationContext5_Vtbl { unsafe extern "system" fn get_ServiceListenAddress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_ServiceListenAddress() } unsafe extern "system" fn get_ServicePublishAddress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_ServicePublishAddress() @@ -1240,44 +1273,48 @@ impl IFabricCodePackageActivationContext5_Vtbl { get_ServicePublishAddress: get_ServicePublishAddress::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricCodePackageActivationContext6_Impl: Sized + IFabricCodePackageActivationContext5_Impl { fn GetDirectory( &self, - logicaldirectoryname: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + logicaldirectoryname: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricCodePackageActivationContext6 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricCodePackageActivationContext6 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricCodePackageActivationContext6_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext6_Impl, const OFFSET: isize, >() -> IFabricCodePackageActivationContext6_Vtbl { unsafe extern "system" fn GetDirectory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivationContext6_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - logicaldirectoryname: ::windows::core::PCWSTR, + logicaldirectoryname: ::windows_core::PCWSTR, directorypath: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDirectory(::core::mem::transmute(&logicaldirectoryname)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(directorypath, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -1287,57 +1324,57 @@ impl IFabricCodePackageActivationContext6_Vtbl { GetDirectory: GetDirectory::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricCodePackageActivator_Impl: Sized { fn BeginActivateCodePackage( &self, codepackagenames: *const super::super::FABRIC_STRING_LIST, environment: *const super::super::FABRIC_STRING_MAP, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndActivateCodePackage( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginDeactivateCodePackage( &self, codepackagenames: *const super::super::FABRIC_STRING_LIST, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndDeactivateCodePackage( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn AbortCodePackage( &self, codepackagenames: *const super::super::FABRIC_STRING_LIST, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn RegisterCodePackageEventHandler( &self, - eventhandler: &::core::option::Option, - ) -> ::windows::core::Result; - fn UnregisterCodePackageEventHandler(&self, callbackhandle: u64) - -> ::windows::core::Result<()>; + eventhandler: ::core::option::Option<&IFabricCodePackageEventHandler>, + ) -> ::windows_core::Result; + fn UnregisterCodePackageEventHandler(&self, callbackhandle: u64) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricCodePackageActivator {} +impl ::windows_core::RuntimeName for IFabricCodePackageActivator {} impl IFabricCodePackageActivator_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivator_Impl, const OFFSET: isize, >() -> IFabricCodePackageActivator_Vtbl { unsafe extern "system" fn BeginActivateCodePackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( @@ -1347,37 +1384,37 @@ impl IFabricCodePackageActivator_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginActivateCodePackage( ::core::mem::transmute_copy(&codepackagenames), ::core::mem::transmute_copy(&environment), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndActivateCodePackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndActivateCodePackage(::core::mem::transmute(&context)) + this.EndActivateCodePackage(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginDeactivateCodePackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( @@ -1386,81 +1423,83 @@ impl IFabricCodePackageActivator_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginDeactivateCodePackage( ::core::mem::transmute_copy(&codepackagenames), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndDeactivateCodePackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndDeactivateCodePackage(::core::mem::transmute(&context)) + this.EndDeactivateCodePackage(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn AbortCodePackage< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, codepackagenames: *const super::super::FABRIC_STRING_LIST, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AbortCodePackage(::core::mem::transmute_copy(&codepackagenames)) .into() } unsafe extern "system" fn RegisterCodePackageEventHandler< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, callbackhandle: *mut u64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.RegisterCodePackageEventHandler(::core::mem::transmute(&eventhandler)) { + match this + .RegisterCodePackageEventHandler(::windows_core::from_raw_borrowed(&eventhandler)) + { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(callbackhandle, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn UnregisterCodePackageEventHandler< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageActivator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, callbackhandle: u64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UnregisterCodePackageEventHandler(::core::mem::transmute_copy(&callbackhandle)) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginActivateCodePackage: BeginActivateCodePackage::, EndActivateCodePackage: EndActivateCodePackage::, BeginDeactivateCodePackage: BeginDeactivateCodePackage::, @@ -1478,37 +1517,38 @@ impl IFabricCodePackageActivator_Vtbl { >, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricCodePackageChangeHandler_Impl: Sized { fn OnPackageAdded( &self, - source: &::core::option::Option, - codepackage: &::core::option::Option, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + codepackage: ::core::option::Option<&IFabricCodePackage>, ); fn OnPackageRemoved( &self, - source: &::core::option::Option, - codepackage: &::core::option::Option, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + codepackage: ::core::option::Option<&IFabricCodePackage>, ); fn OnPackageModified( &self, - source: &::core::option::Option, - previouscodepackage: &::core::option::Option, - codepackage: &::core::option::Option, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + previouscodepackage: ::core::option::Option<&IFabricCodePackage>, + codepackage: ::core::option::Option<&IFabricCodePackage>, ); } -impl ::windows::core::RuntimeName for IFabricCodePackageChangeHandler {} +impl ::windows_core::RuntimeName for IFabricCodePackageChangeHandler {} impl IFabricCodePackageChangeHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageChangeHandler_Impl, const OFFSET: isize, >() -> IFabricCodePackageChangeHandler_Vtbl { unsafe extern "system" fn OnPackageAdded< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageChangeHandler_Impl, const OFFSET: isize, >( @@ -1519,12 +1559,12 @@ impl IFabricCodePackageChangeHandler_Vtbl { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnPackageAdded( - ::core::mem::transmute(&source), - ::core::mem::transmute(&codepackage), + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&codepackage), ) } unsafe extern "system" fn OnPackageRemoved< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageChangeHandler_Impl, const OFFSET: isize, >( @@ -1535,12 +1575,12 @@ impl IFabricCodePackageChangeHandler_Vtbl { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnPackageRemoved( - ::core::mem::transmute(&source), - ::core::mem::transmute(&codepackage), + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&codepackage), ) } unsafe extern "system" fn OnPackageModified< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageChangeHandler_Impl, const OFFSET: isize, >( @@ -1552,38 +1592,42 @@ impl IFabricCodePackageChangeHandler_Vtbl { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnPackageModified( - ::core::mem::transmute(&source), - ::core::mem::transmute(&previouscodepackage), - ::core::mem::transmute(&codepackage), + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&previouscodepackage), + ::windows_core::from_raw_borrowed(&codepackage), ) } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), OnPackageAdded: OnPackageAdded::, OnPackageRemoved: OnPackageRemoved::, OnPackageModified: OnPackageModified::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricCodePackageEventHandler_Impl: Sized { fn OnCodePackageEvent( &self, - source: &::core::option::Option, + source: ::core::option::Option<&IFabricCodePackageActivator>, eventdesc: *const super::super::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, ); } -impl ::windows::core::RuntimeName for IFabricCodePackageEventHandler {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricCodePackageEventHandler {} +#[cfg(feature = "Win32_Foundation")] impl IFabricCodePackageEventHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageEventHandler_Impl, const OFFSET: isize, >() -> IFabricCodePackageEventHandler_Vtbl { unsafe extern "system" fn OnCodePackageEvent< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricCodePackageEventHandler_Impl, const OFFSET: isize, >( @@ -1594,48 +1638,52 @@ impl IFabricCodePackageEventHandler_Vtbl { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnCodePackageEvent( - ::core::mem::transmute(&source), + ::windows_core::from_raw_borrowed(&source), ::core::mem::transmute_copy(&eventdesc), ) } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), OnCodePackageEvent: OnCodePackageEvent::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricConfigurationPackage_Impl: Sized { fn get_Description(&self) -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION; - fn get_Path(&self) -> ::windows::core::PWSTR; + fn get_Path(&self) -> ::windows_core::PCWSTR; fn get_Settings(&self) -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS; fn GetSection( &self, - sectionname: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<*mut super::super::FABRIC_CONFIGURATION_SECTION>; + sectionname: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<*mut super::super::FABRIC_CONFIGURATION_SECTION>; fn GetValue( &self, - sectionname: &::windows::core::PCWSTR, - parametername: &::windows::core::PCWSTR, + sectionname: &::windows_core::PCWSTR, + parametername: &::windows_core::PCWSTR, isencrypted: *mut u8, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::Result<()>; + bufferedvalue: *mut ::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; fn DecryptValue( &self, - encryptedvalue: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + encryptedvalue: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricConfigurationPackage {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricConfigurationPackage {} +#[cfg(feature = "Win32_Foundation")] impl IFabricConfigurationPackage_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackage_Impl, const OFFSET: isize, >() -> IFabricConfigurationPackage_Vtbl { unsafe extern "system" fn get_Description< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackage_Impl, const OFFSET: isize, >( @@ -1646,18 +1694,18 @@ impl IFabricConfigurationPackage_Vtbl { this.get_Description() } unsafe extern "system" fn get_Path< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackage_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_Path() } unsafe extern "system" fn get_Settings< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackage_Impl, const OFFSET: isize, >( @@ -1668,35 +1716,35 @@ impl IFabricConfigurationPackage_Vtbl { this.get_Settings() } unsafe extern "system" fn GetSection< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackage_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - sectionname: ::windows::core::PCWSTR, + sectionname: ::windows_core::PCWSTR, bufferedvalue: *mut *mut super::super::FABRIC_CONFIGURATION_SECTION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetSection(::core::mem::transmute(§ionname)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetValue< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackage_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - sectionname: ::windows::core::PCWSTR, - parametername: ::windows::core::PCWSTR, + sectionname: ::windows_core::PCWSTR, + parametername: ::windows_core::PCWSTR, isencrypted: *mut u8, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::HRESULT { + bufferedvalue: *mut ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetValue( @@ -1708,26 +1756,26 @@ impl IFabricConfigurationPackage_Vtbl { .into() } unsafe extern "system" fn DecryptValue< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackage_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - encryptedvalue: ::windows::core::PCWSTR, + encryptedvalue: ::windows_core::PCWSTR, decryptedvalue: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.DecryptValue(::core::mem::transmute(&encryptedvalue)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(decryptedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Description: get_Description::, get_Path: get_Path::, get_Settings: get_Settings::, @@ -1736,34 +1784,38 @@ impl IFabricConfigurationPackage_Vtbl { DecryptValue: DecryptValue::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricConfigurationPackage2_Impl: Sized + IFabricConfigurationPackage_Impl { fn GetValues( &self, - sectionname: &::windows::core::PCWSTR, - parameterprefix: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<*mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST>; + sectionname: &::windows_core::PCWSTR, + parameterprefix: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<*mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST>; } -impl ::windows::core::RuntimeName for IFabricConfigurationPackage2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricConfigurationPackage2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricConfigurationPackage2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackage2_Impl, const OFFSET: isize, >() -> IFabricConfigurationPackage2_Vtbl { unsafe extern "system" fn GetValues< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackage2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - sectionname: ::windows::core::PCWSTR, - parameterprefix: ::windows::core::PCWSTR, + sectionname: ::windows_core::PCWSTR, + parameterprefix: ::windows_core::PCWSTR, bufferedvalue: *mut *mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetValues( @@ -1772,7 +1824,7 @@ impl IFabricConfigurationPackage2_Vtbl { ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -1782,38 +1834,39 @@ impl IFabricConfigurationPackage2_Vtbl { GetValues: GetValues::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricConfigurationPackageChangeHandler_Impl: Sized { fn OnPackageAdded( &self, - source: &::core::option::Option, - configpackage: &::core::option::Option, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + configpackage: ::core::option::Option<&IFabricConfigurationPackage>, ); fn OnPackageRemoved( &self, - source: &::core::option::Option, - configpackage: &::core::option::Option, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + configpackage: ::core::option::Option<&IFabricConfigurationPackage>, ); fn OnPackageModified( &self, - source: &::core::option::Option, - previousconfigpackage: &::core::option::Option, - configpackage: &::core::option::Option, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + previousconfigpackage: ::core::option::Option<&IFabricConfigurationPackage>, + configpackage: ::core::option::Option<&IFabricConfigurationPackage>, ); } -impl ::windows::core::RuntimeName for IFabricConfigurationPackageChangeHandler {} +impl ::windows_core::RuntimeName for IFabricConfigurationPackageChangeHandler {} impl IFabricConfigurationPackageChangeHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackageChangeHandler_Impl, const OFFSET: isize, >() -> IFabricConfigurationPackageChangeHandler_Vtbl { unsafe extern "system" fn OnPackageAdded< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackageChangeHandler_Impl, const OFFSET: isize, >( @@ -1824,12 +1877,12 @@ impl IFabricConfigurationPackageChangeHandler_Vtbl { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnPackageAdded( - ::core::mem::transmute(&source), - ::core::mem::transmute(&configpackage), + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&configpackage), ) } unsafe extern "system" fn OnPackageRemoved< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackageChangeHandler_Impl, const OFFSET: isize, >( @@ -1840,12 +1893,12 @@ impl IFabricConfigurationPackageChangeHandler_Vtbl { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnPackageRemoved( - ::core::mem::transmute(&source), - ::core::mem::transmute(&configpackage), + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&configpackage), ) } unsafe extern "system" fn OnPackageModified< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricConfigurationPackageChangeHandler_Impl, const OFFSET: isize, >( @@ -1857,35 +1910,36 @@ impl IFabricConfigurationPackageChangeHandler_Vtbl { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnPackageModified( - ::core::mem::transmute(&source), - ::core::mem::transmute(&previousconfigpackage), - ::core::mem::transmute(&configpackage), + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&previousconfigpackage), + ::windows_core::from_raw_borrowed(&configpackage), ) } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), OnPackageAdded: OnPackageAdded::, OnPackageRemoved: OnPackageRemoved::, OnPackageModified: OnPackageModified::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricDataPackage_Impl: Sized { fn get_Description(&self) -> *mut super::super::FABRIC_DATA_PACKAGE_DESCRIPTION; - fn get_Path(&self) -> ::windows::core::PWSTR; + fn get_Path(&self) -> ::windows_core::PCWSTR; } -impl ::windows::core::RuntimeName for IFabricDataPackage {} +impl ::windows_core::RuntimeName for IFabricDataPackage {} impl IFabricDataPackage_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricDataPackage_Impl, const OFFSET: isize, >() -> IFabricDataPackage_Vtbl { unsafe extern "system" fn get_Description< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricDataPackage_Impl, const OFFSET: isize, >( @@ -1896,53 +1950,54 @@ impl IFabricDataPackage_Vtbl { this.get_Description() } unsafe extern "system" fn get_Path< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricDataPackage_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_Path() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Description: get_Description::, get_Path: get_Path::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricDataPackageChangeHandler_Impl: Sized { fn OnPackageAdded( &self, - source: &::core::option::Option, - datapackage: &::core::option::Option, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + datapackage: ::core::option::Option<&IFabricDataPackage>, ); fn OnPackageRemoved( &self, - source: &::core::option::Option, - datapackage: &::core::option::Option, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + datapackage: ::core::option::Option<&IFabricDataPackage>, ); fn OnPackageModified( &self, - source: &::core::option::Option, - previousdatapackage: &::core::option::Option, - datapackage: &::core::option::Option, + source: ::core::option::Option<&IFabricCodePackageActivationContext>, + previousdatapackage: ::core::option::Option<&IFabricDataPackage>, + datapackage: ::core::option::Option<&IFabricDataPackage>, ); } -impl ::windows::core::RuntimeName for IFabricDataPackageChangeHandler {} +impl ::windows_core::RuntimeName for IFabricDataPackageChangeHandler {} impl IFabricDataPackageChangeHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricDataPackageChangeHandler_Impl, const OFFSET: isize, >() -> IFabricDataPackageChangeHandler_Vtbl { unsafe extern "system" fn OnPackageAdded< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricDataPackageChangeHandler_Impl, const OFFSET: isize, >( @@ -1953,12 +2008,12 @@ impl IFabricDataPackageChangeHandler_Vtbl { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnPackageAdded( - ::core::mem::transmute(&source), - ::core::mem::transmute(&datapackage), + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&datapackage), ) } unsafe extern "system" fn OnPackageRemoved< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricDataPackageChangeHandler_Impl, const OFFSET: isize, >( @@ -1969,12 +2024,12 @@ impl IFabricDataPackageChangeHandler_Vtbl { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnPackageRemoved( - ::core::mem::transmute(&source), - ::core::mem::transmute(&datapackage), + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&datapackage), ) } unsafe extern "system" fn OnPackageModified< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricDataPackageChangeHandler_Impl, const OFFSET: isize, >( @@ -1986,34 +2041,35 @@ impl IFabricDataPackageChangeHandler_Vtbl { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnPackageModified( - ::core::mem::transmute(&source), - ::core::mem::transmute(&previousdatapackage), - ::core::mem::transmute(&datapackage), + ::windows_core::from_raw_borrowed(&source), + ::windows_core::from_raw_borrowed(&previousdatapackage), + ::windows_core::from_raw_borrowed(&datapackage), ) } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), OnPackageAdded: OnPackageAdded::, OnPackageRemoved: OnPackageRemoved::, OnPackageModified: OnPackageModified::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricEseLocalStoreSettingsResult_Impl: Sized { fn get_Settings(&self) -> *mut super::super::FABRIC_ESE_LOCAL_STORE_SETTINGS; } -impl ::windows::core::RuntimeName for IFabricEseLocalStoreSettingsResult {} +impl ::windows_core::RuntimeName for IFabricEseLocalStoreSettingsResult {} impl IFabricEseLocalStoreSettingsResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricEseLocalStoreSettingsResult_Impl, const OFFSET: isize, >() -> IFabricEseLocalStoreSettingsResult_Vtbl { unsafe extern "system" fn get_Settings< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricEseLocalStoreSettingsResult_Impl, const OFFSET: isize, >( @@ -2024,110 +2080,115 @@ impl IFabricEseLocalStoreSettingsResult_Vtbl { this.get_Settings() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Settings: get_Settings::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricKeyValueStoreEnumerator_Impl: Sized { fn EnumerateByKey( &self, - keyprefix: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + keyprefix: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; fn EnumerateMetadataByKey( &self, - keyprefix: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + keyprefix: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreEnumerator {} +impl ::windows_core::RuntimeName for IFabricKeyValueStoreEnumerator {} impl IFabricKeyValueStoreEnumerator_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreEnumerator_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreEnumerator_Vtbl { unsafe extern "system" fn EnumerateByKey< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreEnumerator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateByKey(::core::mem::transmute(&keyprefix)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EnumerateMetadataByKey< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreEnumerator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateMetadataByKey(::core::mem::transmute(&keyprefix)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), EnumerateByKey: EnumerateByKey::, EnumerateMetadataByKey: EnumerateMetadataByKey::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricKeyValueStoreEnumerator2_Impl: Sized + IFabricKeyValueStoreEnumerator_Impl { fn EnumerateByKey2( &self, - keyprefix: &::windows::core::PCWSTR, + keyprefix: &::windows_core::PCWSTR, strictprefix: ::windows::Win32::Foundation::BOOLEAN, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; fn EnumerateMetadataByKey2( &self, - keyprefix: &::windows::core::PCWSTR, + keyprefix: &::windows_core::PCWSTR, strictprefix: ::windows::Win32::Foundation::BOOLEAN, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreEnumerator2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricKeyValueStoreEnumerator2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricKeyValueStoreEnumerator2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreEnumerator2_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreEnumerator2_Vtbl { unsafe extern "system" fn EnumerateByKey2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreEnumerator2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, strictprefix: ::windows::Win32::Foundation::BOOLEAN, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateByKey2( @@ -2136,21 +2197,21 @@ impl IFabricKeyValueStoreEnumerator2_Vtbl { ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EnumerateMetadataByKey2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreEnumerator2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, strictprefix: ::windows::Win32::Foundation::BOOLEAN, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateMetadataByKey2( @@ -2159,7 +2220,7 @@ impl IFabricKeyValueStoreEnumerator2_Vtbl { ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -2170,35 +2231,36 @@ impl IFabricKeyValueStoreEnumerator2_Vtbl { EnumerateMetadataByKey2: EnumerateMetadataByKey2::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricKeyValueStoreItemEnumerator_Impl: Sized { - fn MoveNext(&self) -> ::windows::core::Result<()>; + fn MoveNext(&self) -> ::windows_core::Result<()>; fn get_Current(&self) -> ::core::option::Option; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreItemEnumerator {} +impl ::windows_core::RuntimeName for IFabricKeyValueStoreItemEnumerator {} impl IFabricKeyValueStoreItemEnumerator_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemEnumerator_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreItemEnumerator_Vtbl { unsafe extern "system" fn MoveNext< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemEnumerator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MoveNext().into() } unsafe extern "system" fn get_Current< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemEnumerator_Impl, const OFFSET: isize, >( @@ -2209,41 +2271,42 @@ impl IFabricKeyValueStoreItemEnumerator_Vtbl { this.get_Current() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), MoveNext: MoveNext::, get_Current: get_Current::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricKeyValueStoreItemEnumerator2_Impl: Sized + IFabricKeyValueStoreItemEnumerator_Impl { - fn TryMoveNext(&self) -> ::windows::core::Result; + fn TryMoveNext(&self) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreItemEnumerator2 {} +impl ::windows_core::RuntimeName for IFabricKeyValueStoreItemEnumerator2 {} impl IFabricKeyValueStoreItemEnumerator2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemEnumerator2_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreItemEnumerator2_Vtbl { unsafe extern "system" fn TryMoveNext< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemEnumerator2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, success: *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TryMoveNext() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(success, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -2253,35 +2316,36 @@ impl IFabricKeyValueStoreItemEnumerator2_Vtbl { TryMoveNext: TryMoveNext::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricKeyValueStoreItemMetadataEnumerator_Impl: Sized { - fn MoveNext(&self) -> ::windows::core::Result<()>; + fn MoveNext(&self) -> ::windows_core::Result<()>; fn get_Current(&self) -> ::core::option::Option; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreItemMetadataEnumerator {} +impl ::windows_core::RuntimeName for IFabricKeyValueStoreItemMetadataEnumerator {} impl IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemMetadataEnumerator_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { unsafe extern "system" fn MoveNext< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemMetadataEnumerator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MoveNext().into() } unsafe extern "system" fn get_Current< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemMetadataEnumerator_Impl, const OFFSET: isize, >( @@ -2292,41 +2356,42 @@ impl IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { this.get_Current() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), MoveNext: MoveNext::, get_Current: get_Current::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricKeyValueStoreItemMetadataEnumerator2_Impl: Sized + IFabricKeyValueStoreItemMetadataEnumerator_Impl { - fn TryMoveNext(&self) -> ::windows::core::Result; + fn TryMoveNext(&self) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreItemMetadataEnumerator2 {} +impl ::windows_core::RuntimeName for IFabricKeyValueStoreItemMetadataEnumerator2 {} impl IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemMetadataEnumerator2_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { unsafe extern "system" fn TryMoveNext< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemMetadataEnumerator2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, success: *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TryMoveNext() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(success, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -2337,24 +2402,26 @@ impl IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { TryMoveNext: TryMoveNext::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid - == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricKeyValueStoreItemMetadataEnumerator2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricKeyValueStoreItemMetadataEnumerator as::windows_core::ComInterface >::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricKeyValueStoreItemMetadataResult_Impl: Sized { fn get_Metadata(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM_METADATA; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreItemMetadataResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricKeyValueStoreItemMetadataResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricKeyValueStoreItemMetadataResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemMetadataResult_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreItemMetadataResult_Vtbl { unsafe extern "system" fn get_Metadata< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemMetadataResult_Impl, const OFFSET: isize, >( @@ -2365,26 +2432,30 @@ impl IFabricKeyValueStoreItemMetadataResult_Vtbl { this.get_Metadata() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Metadata: get_Metadata::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricKeyValueStoreItemResult_Impl: Sized { fn get_Item(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreItemResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricKeyValueStoreItemResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricKeyValueStoreItemResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemResult_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreItemResult_Vtbl { unsafe extern "system" fn get_Item< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreItemResult_Impl, const OFFSET: isize, >( @@ -2395,28 +2466,32 @@ impl IFabricKeyValueStoreItemResult_Vtbl { this.get_Item() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Item: get_Item::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricKeyValueStoreNotification_Impl: Sized + IFabricKeyValueStoreItemResult_Impl { fn IsDelete(&self) -> ::windows::Win32::Foundation::BOOLEAN; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreNotification {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricKeyValueStoreNotification {} +#[cfg(feature = "Win32_Foundation")] impl IFabricKeyValueStoreNotification_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreNotification_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreNotification_Vtbl { unsafe extern "system" fn IsDelete< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreNotification_Impl, const OFFSET: isize, >( @@ -2431,36 +2506,37 @@ impl IFabricKeyValueStoreNotification_Vtbl { IsDelete: IsDelete::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricKeyValueStoreNotificationEnumerator_Impl: Sized { - fn MoveNext(&self) -> ::windows::core::Result<()>; + fn MoveNext(&self) -> ::windows_core::Result<()>; fn get_Current(&self) -> ::core::option::Option; fn Reset(&self); } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreNotificationEnumerator {} +impl ::windows_core::RuntimeName for IFabricKeyValueStoreNotificationEnumerator {} impl IFabricKeyValueStoreNotificationEnumerator_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreNotificationEnumerator_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreNotificationEnumerator_Vtbl { unsafe extern "system" fn MoveNext< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreNotificationEnumerator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.MoveNext().into() } unsafe extern "system" fn get_Current< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreNotificationEnumerator_Impl, const OFFSET: isize, >( @@ -2471,7 +2547,7 @@ impl IFabricKeyValueStoreNotificationEnumerator_Vtbl { this.get_Current() } unsafe extern "system" fn Reset< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreNotificationEnumerator_Impl, const OFFSET: isize, >( @@ -2482,42 +2558,43 @@ impl IFabricKeyValueStoreNotificationEnumerator_Vtbl { this.Reset() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), MoveNext: MoveNext::, get_Current: get_Current::, Reset: Reset::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricKeyValueStoreNotificationEnumerator2_Impl: Sized + IFabricKeyValueStoreNotificationEnumerator_Impl { - fn TryMoveNext(&self) -> ::windows::core::Result; + fn TryMoveNext(&self) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreNotificationEnumerator2 {} +impl ::windows_core::RuntimeName for IFabricKeyValueStoreNotificationEnumerator2 {} impl IFabricKeyValueStoreNotificationEnumerator2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreNotificationEnumerator2_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreNotificationEnumerator2_Vtbl { unsafe extern "system" fn TryMoveNext< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreNotificationEnumerator2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, success: *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TryMoveNext() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(success, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -2528,145 +2605,145 @@ impl IFabricKeyValueStoreNotificationEnumerator2_Vtbl { TryMoveNext: TryMoveNext::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid - == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == & < IFabricKeyValueStoreNotificationEnumerator2 < > as::windows_core::ComInterface >::IID || iid == & < IFabricKeyValueStoreNotificationEnumerator as::windows_core::ComInterface >::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricKeyValueStoreReplica_Impl: Sized + IFabricStatefulServiceReplica_Impl { - fn GetCurrentEpoch(&self) -> ::windows::core::Result; + fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()>; fn UpdateReplicatorSettings( &self, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()>; - fn CreateTransaction(&self) -> ::windows::core::Result; + ) -> ::windows_core::Result<()>; + fn CreateTransaction(&self) -> ::windows_core::Result; fn Add( &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn Remove( &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, checksequencenumber: i64, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn Update( &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, checksequencenumber: i64, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn Get( &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; fn GetMetadata( &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; fn Contains( &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; fn Enumerate( &self, - transaction: &::core::option::Option, - ) -> ::windows::core::Result; + transaction: ::core::option::Option<&IFabricTransactionBase>, + ) -> ::windows_core::Result; fn EnumerateByKey( &self, - transaction: &::core::option::Option, - keyprefix: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + transaction: ::core::option::Option<&IFabricTransactionBase>, + keyprefix: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; fn EnumerateMetadata( &self, - transaction: &::core::option::Option, - ) -> ::windows::core::Result; + transaction: ::core::option::Option<&IFabricTransactionBase>, + ) -> ::windows_core::Result; fn EnumerateMetadataByKey( &self, - transaction: &::core::option::Option, - keyprefix: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + transaction: ::core::option::Option<&IFabricTransactionBase>, + keyprefix: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreReplica {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricKeyValueStoreReplica {} +#[cfg(feature = "Win32_Foundation")] impl IFabricKeyValueStoreReplica_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreReplica_Vtbl { unsafe extern "system" fn GetCurrentEpoch< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, currentepoch: *mut super::super::FABRIC_EPOCH, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.GetCurrentEpoch() { - ::core::result::Result::Ok(ok__) => { - ::core::ptr::write(currentepoch, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) - } - ::core::result::Result::Err(err) => err.into(), - } + this.GetCurrentEpoch(::core::mem::transmute_copy(¤tepoch)) + .into() } unsafe extern "system" fn UpdateReplicatorSettings< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UpdateReplicatorSettings(::core::mem::transmute_copy(&replicatorsettings)) .into() } unsafe extern "system" fn CreateTransaction< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateTransaction() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(transaction, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn Add< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Add( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&key), ::core::mem::transmute_copy(&valuesizeinbytes), ::core::mem::transmute_copy(&value), @@ -2674,40 +2751,40 @@ impl IFabricKeyValueStoreReplica_Vtbl { .into() } unsafe extern "system" fn Remove< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, checksequencenumber: i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Remove( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&key), ::core::mem::transmute_copy(&checksequencenumber), ) .into() } unsafe extern "system" fn Update< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, checksequencenumber: i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Update( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&key), ::core::mem::transmute_copy(&valuesizeinbytes), ::core::mem::transmute_copy(&value), @@ -2716,154 +2793,154 @@ impl IFabricKeyValueStoreReplica_Vtbl { .into() } unsafe extern "system" fn Get< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Get( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&key), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetMetadata< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetMetadata( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&key), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn Contains< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, result: *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Contains( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&key), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn Enumerate< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.Enumerate(::core::mem::transmute(&transaction)) { + match this.Enumerate(::windows_core::from_raw_borrowed(&transaction)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EnumerateByKey< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateByKey( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&keyprefix), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EnumerateMetadata< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EnumerateMetadata(::core::mem::transmute(&transaction)) { + match this.EnumerateMetadata(::windows_core::from_raw_borrowed(&transaction)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EnumerateMetadataByKey< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateMetadataByKey( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&keyprefix), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -2885,66 +2962,70 @@ impl IFabricKeyValueStoreReplica_Vtbl { EnumerateMetadataByKey: EnumerateMetadataByKey::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricKeyValueStoreReplica2_Impl: Sized + IFabricKeyValueStoreReplica_Impl { - fn Backup(&self, backupdirectory: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; - fn Restore(&self, backupdirectory: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; + fn Backup(&self, backupdirectory: &::windows_core::PCWSTR) -> ::windows_core::Result<()>; + fn Restore(&self, backupdirectory: &::windows_core::PCWSTR) -> ::windows_core::Result<()>; fn CreateTransaction2( &self, settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreReplica2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricKeyValueStoreReplica2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricKeyValueStoreReplica2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica2_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreReplica2_Vtbl { unsafe extern "system" fn Backup< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { + backupdirectory: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Backup(::core::mem::transmute(&backupdirectory)).into() } unsafe extern "system" fn Restore< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { + backupdirectory: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Restore(::core::mem::transmute(&backupdirectory)) .into() } unsafe extern "system" fn CreateTransaction2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, transaction: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateTransaction2(::core::mem::transmute_copy(&settings)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(transaction, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -2956,70 +3037,75 @@ impl IFabricKeyValueStoreReplica2_Vtbl { CreateTransaction2: CreateTransaction2::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricKeyValueStoreReplica3_Impl: Sized + IFabricKeyValueStoreReplica2_Impl { fn BeginBackup( &self, - backupdirectory: &::windows::core::PCWSTR, + backupdirectory: &::windows_core::PCWSTR, backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, - postbackuphandler: &::core::option::Option, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + postbackuphandler: ::core::option::Option<&IFabricStorePostBackupHandler>, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndBackup( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreReplica3 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricKeyValueStoreReplica3 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricKeyValueStoreReplica3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica3_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreReplica3_Vtbl { unsafe extern "system" fn BeginBackup< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, + backupdirectory: ::windows_core::PCWSTR, backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, postbackuphandler: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginBackup( ::core::mem::transmute(&backupdirectory), ::core::mem::transmute_copy(&backupoption), - ::core::mem::transmute(&postbackuphandler), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&postbackuphandler), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndBackup< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndBackup(::core::mem::transmute(&context)).into() + this.EndBackup(::windows_core::from_raw_borrowed(&context)) + .into() } Self { base__: IFabricKeyValueStoreReplica2_Vtbl::new::(), @@ -3027,65 +3113,70 @@ impl IFabricKeyValueStoreReplica3_Vtbl { EndBackup: EndBackup::, } } - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricKeyValueStoreReplica4_Impl: Sized + IFabricKeyValueStoreReplica3_Impl { fn BeginRestore( &self, - backupdirectory: &::windows::core::PCWSTR, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + backupdirectory: &::windows_core::PCWSTR, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRestore( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreReplica4 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricKeyValueStoreReplica4 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricKeyValueStoreReplica4_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica4_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreReplica4_Vtbl { unsafe extern "system" fn BeginRestore< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, + backupdirectory: ::windows_core::PCWSTR, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRestore( ::core::mem::transmute(&backupdirectory), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRestore< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica4_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRestore(::core::mem::transmute(&context)).into() + this.EndRestore(::windows_core::from_raw_borrowed(&context)) + .into() } Self { base__: IFabricKeyValueStoreReplica3_Vtbl::new::(), @@ -3093,135 +3184,139 @@ impl IFabricKeyValueStoreReplica4_Vtbl { EndRestore: EndRestore::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricKeyValueStoreReplica5_Impl: Sized + IFabricKeyValueStoreReplica4_Impl { fn TryAdd( &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; fn TryRemove( &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, checksequencenumber: i64, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; fn TryUpdate( &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, checksequencenumber: i64, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; fn TryGet( &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; fn TryGetMetadata( &self, - transaction: &::core::option::Option, - key: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + transaction: ::core::option::Option<&IFabricTransactionBase>, + key: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; fn EnumerateByKey2( &self, - transaction: &::core::option::Option, - keyprefix: &::windows::core::PCWSTR, + transaction: ::core::option::Option<&IFabricTransactionBase>, + keyprefix: &::windows_core::PCWSTR, strictprefix: ::windows::Win32::Foundation::BOOLEAN, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; fn EnumerateMetadataByKey2( &self, - transaction: &::core::option::Option, - keyprefix: &::windows::core::PCWSTR, + transaction: ::core::option::Option<&IFabricTransactionBase>, + keyprefix: &::windows_core::PCWSTR, strictprefix: ::windows::Win32::Foundation::BOOLEAN, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreReplica5 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricKeyValueStoreReplica5 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricKeyValueStoreReplica5_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreReplica5_Vtbl { unsafe extern "system" fn TryAdd< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, added: *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TryAdd( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&key), ::core::mem::transmute_copy(&valuesizeinbytes), ::core::mem::transmute_copy(&value), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(added, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn TryRemove< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, checksequencenumber: i64, exists: *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TryRemove( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&key), ::core::mem::transmute_copy(&checksequencenumber), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(exists, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn TryUpdate< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, checksequencenumber: i64, exists: *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TryUpdate( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&key), ::core::mem::transmute_copy(&valuesizeinbytes), ::core::mem::transmute_copy(&value), @@ -3229,103 +3324,103 @@ impl IFabricKeyValueStoreReplica5_Vtbl { ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(exists, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn TryGet< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TryGet( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&key), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn TryGetMetadata< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.TryGetMetadata( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&key), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EnumerateByKey2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, strictprefix: ::windows::Win32::Foundation::BOOLEAN, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateByKey2( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&keyprefix), ::core::mem::transmute_copy(&strictprefix), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EnumerateMetadataByKey2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica5_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, strictprefix: ::windows::Win32::Foundation::BOOLEAN, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.EnumerateMetadataByKey2( - ::core::mem::transmute(&transaction), + ::windows_core::from_raw_borrowed(&transaction), ::core::mem::transmute(&keyprefix), ::core::mem::transmute_copy(&strictprefix), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(result, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -3341,51 +3436,55 @@ impl IFabricKeyValueStoreReplica5_Vtbl { EnumerateMetadataByKey2: EnumerateMetadataByKey2::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricKeyValueStoreReplica6_Impl: Sized + IFabricKeyValueStoreReplica5_Impl { fn BeginRestore2( &self, - backupdirectory: &::windows::core::PCWSTR, + backupdirectory: &::windows_core::PCWSTR, settings: *const super::super::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricKeyValueStoreReplica6 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricKeyValueStoreReplica6 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricKeyValueStoreReplica6_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica6_Impl, const OFFSET: isize, >() -> IFabricKeyValueStoreReplica6_Vtbl { unsafe extern "system" fn BeginRestore2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricKeyValueStoreReplica6_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, + backupdirectory: ::windows_core::PCWSTR, settings: *const super::super::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRestore2( ::core::mem::transmute(&backupdirectory), ::core::mem::transmute_copy(&settings), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -3395,28 +3494,29 @@ impl IFabricKeyValueStoreReplica6_Vtbl { BeginRestore2: BeginRestore2::, } } - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricNodeContextResult_Impl: Sized { fn get_NodeContext(&self) -> *mut super::super::FABRIC_NODE_CONTEXT; } -impl ::windows::core::RuntimeName for IFabricNodeContextResult {} +impl ::windows_core::RuntimeName for IFabricNodeContextResult {} impl IFabricNodeContextResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNodeContextResult_Impl, const OFFSET: isize, >() -> IFabricNodeContextResult_Vtbl { unsafe extern "system" fn get_NodeContext< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNodeContextResult_Impl, const OFFSET: isize, >( @@ -3427,42 +3527,43 @@ impl IFabricNodeContextResult_Vtbl { this.get_NodeContext() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_NodeContext: get_NodeContext::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricNodeContextResult2_Impl: Sized + IFabricNodeContextResult_Impl { fn GetDirectory( &self, - logicaldirectoryname: &::windows::core::PCWSTR, - ) -> ::windows::core::Result; + logicaldirectoryname: &::windows_core::PCWSTR, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricNodeContextResult2 {} +impl ::windows_core::RuntimeName for IFabricNodeContextResult2 {} impl IFabricNodeContextResult2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNodeContextResult2_Impl, const OFFSET: isize, >() -> IFabricNodeContextResult2_Vtbl { unsafe extern "system" fn GetDirectory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricNodeContextResult2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - logicaldirectoryname: ::windows::core::PCWSTR, + logicaldirectoryname: ::windows_core::PCWSTR, directorypath: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetDirectory(::core::mem::transmute(&logicaldirectoryname)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(directorypath, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -3472,29 +3573,30 @@ impl IFabricNodeContextResult2_Vtbl { GetDirectory: GetDirectory::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricOperation_Impl: Sized { fn get_Metadata(&self) -> *mut super::super::FABRIC_OPERATION_METADATA; fn GetData( &self, count: *mut u32, buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::Result<()>; - fn Acknowledge(&self) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; + fn Acknowledge(&self) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricOperation {} +impl ::windows_core::RuntimeName for IFabricOperation {} impl IFabricOperation_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricOperation_Impl, const OFFSET: isize, >() -> IFabricOperation_Vtbl { unsafe extern "system" fn get_Metadata< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricOperation_Impl, const OFFSET: isize, >( @@ -3505,14 +3607,14 @@ impl IFabricOperation_Vtbl { this.get_Metadata() } unsafe extern "system" fn GetData< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricOperation_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, count: *mut u32, buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetData( @@ -3522,50 +3624,51 @@ impl IFabricOperation_Vtbl { .into() } unsafe extern "system" fn Acknowledge< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricOperation_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Acknowledge().into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Metadata: get_Metadata::, GetData: GetData::, Acknowledge: Acknowledge::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricOperationData_Impl: Sized { fn GetData( &self, count: *mut u32, buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricOperationData {} +impl ::windows_core::RuntimeName for IFabricOperationData {} impl IFabricOperationData_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricOperationData_Impl, const OFFSET: isize, >() -> IFabricOperationData_Vtbl { unsafe extern "system" fn GetData< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricOperationData_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, count: *mut u32, buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetData( @@ -3575,165 +3678,166 @@ impl IFabricOperationData_Vtbl { .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), GetData: GetData::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricOperationDataStream_Impl: Sized { fn BeginGetNext( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetNext( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricOperationDataStream {} +impl ::windows_core::RuntimeName for IFabricOperationDataStream {} impl IFabricOperationDataStream_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricOperationDataStream_Impl, const OFFSET: isize, >() -> IFabricOperationDataStream_Vtbl { unsafe extern "system" fn BeginGetNext< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.BeginGetNext(::core::mem::transmute(&callback)) { + match this.BeginGetNext(::windows_core::from_raw_borrowed(&callback)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetNext< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetNext(::core::mem::transmute(&context)) { + match this.EndGetNext(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(operationdata, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginGetNext: BeginGetNext::, EndGetNext: EndGetNext::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricOperationStream_Impl: Sized { fn BeginGetOperation( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndGetOperation( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricOperationStream {} +impl ::windows_core::RuntimeName for IFabricOperationStream {} impl IFabricOperationStream_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricOperationStream_Impl, const OFFSET: isize, >() -> IFabricOperationStream_Vtbl { unsafe extern "system" fn BeginGetOperation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.BeginGetOperation(::core::mem::transmute(&callback)) { + match this.BeginGetOperation(::windows_core::from_raw_borrowed(&callback)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndGetOperation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndGetOperation(::core::mem::transmute(&context)) { + match this.EndGetOperation(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(operation, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginGetOperation: BeginGetOperation::, EndGetOperation: EndGetOperation::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricOperationStream2_Impl: Sized + IFabricOperationStream_Impl { - fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()>; + fn ReportFault(&self, faulttype: super::super::FABRIC_FAULT_TYPE) + -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricOperationStream2 {} +impl ::windows_core::RuntimeName for IFabricOperationStream2 {} impl IFabricOperationStream2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricOperationStream2_Impl, const OFFSET: isize, >() -> IFabricOperationStream2_Vtbl { unsafe extern "system" fn ReportFault< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricOperationStream2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportFault(::core::mem::transmute_copy(&faulttype)) @@ -3744,103 +3848,104 @@ impl IFabricOperationStream2_Vtbl { ReportFault: ReportFault::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricPrimaryReplicator_Impl: Sized + IFabricReplicator_Impl { fn BeginOnDataLoss( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndOnDataLoss( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn UpdateCatchUpReplicaSetConfiguration( &self, currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, previousconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn BeginWaitForCatchUpQuorum( &self, catchupmode: super::super::FABRIC_REPLICA_SET_QUORUM_MODE, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndWaitForCatchUpQuorum( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn UpdateCurrentReplicaSetConfiguration( &self, currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn BeginBuildReplica( &self, replica: *const super::super::FABRIC_REPLICA_INFORMATION, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndBuildReplica( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn RemoveReplica(&self, replicaid: i64) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn RemoveReplica(&self, replicaid: i64) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricPrimaryReplicator {} +impl ::windows_core::RuntimeName for IFabricPrimaryReplicator {} impl IFabricPrimaryReplicator_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >() -> IFabricPrimaryReplicator_Vtbl { unsafe extern "system" fn BeginOnDataLoss< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.BeginOnDataLoss(::core::mem::transmute(&callback)) { + match this.BeginOnDataLoss(::windows_core::from_raw_borrowed(&callback)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndOnDataLoss< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, isstatechanged: *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndOnDataLoss(::core::mem::transmute(&context)) { + match this.EndOnDataLoss(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(isstatechanged, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn UpdateCatchUpReplicaSetConfiguration< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, previousconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UpdateCatchUpReplicaSetConfiguration( @@ -3850,7 +3955,7 @@ impl IFabricPrimaryReplicator_Vtbl { .into() } unsafe extern "system" fn BeginWaitForCatchUpQuorum< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( @@ -3858,41 +3963,41 @@ impl IFabricPrimaryReplicator_Vtbl { catchupmode: super::super::FABRIC_REPLICA_SET_QUORUM_MODE, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginWaitForCatchUpQuorum( ::core::mem::transmute_copy(&catchupmode), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndWaitForCatchUpQuorum< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndWaitForCatchUpQuorum(::core::mem::transmute(&context)) + this.EndWaitForCatchUpQuorum(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn UpdateCurrentReplicaSetConfiguration< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UpdateCurrentReplicaSetConfiguration(::core::mem::transmute_copy( @@ -3901,7 +4006,7 @@ impl IFabricPrimaryReplicator_Vtbl { .into() } unsafe extern "system" fn BeginBuildReplica< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( @@ -3909,41 +4014,41 @@ impl IFabricPrimaryReplicator_Vtbl { replica: *const super::super::FABRIC_REPLICA_INFORMATION, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginBuildReplica( ::core::mem::transmute_copy(&replica), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndBuildReplica< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndBuildReplica(::core::mem::transmute(&context)) + this.EndBuildReplica(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn RemoveReplica< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricPrimaryReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, replicaid: i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveReplica(::core::mem::transmute_copy(&replicaid)) @@ -3970,23 +4075,24 @@ 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricProcessExitHandler_Impl: Sized { fn FabricProcessExited(&self); } -impl ::windows::core::RuntimeName for IFabricProcessExitHandler {} +impl ::windows_core::RuntimeName for IFabricProcessExitHandler {} impl IFabricProcessExitHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricProcessExitHandler_Impl, const OFFSET: isize, >() -> IFabricProcessExitHandler_Vtbl { unsafe extern "system" fn FabricProcessExited< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricProcessExitHandler_Impl, const OFFSET: isize, >( @@ -3997,101 +4103,102 @@ impl IFabricProcessExitHandler_Vtbl { this.FabricProcessExited() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), FabricProcessExited: FabricProcessExited::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricReplicator_Impl: Sized { fn BeginOpen( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndOpen( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginChangeRole( &self, epoch: *const super::super::FABRIC_EPOCH, role: super::super::FABRIC_REPLICA_ROLE, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndChangeRole( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginUpdateEpoch( &self, epoch: *const super::super::FABRIC_EPOCH, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUpdateEpoch( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginClose( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndClose( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn Abort(&self); - fn GetCurrentProgress(&self) -> ::windows::core::Result; - fn GetCatchUpCapability(&self) -> ::windows::core::Result; + fn GetCurrentProgress(&self) -> ::windows_core::Result; + fn GetCatchUpCapability(&self) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricReplicator {} +impl ::windows_core::RuntimeName for IFabricReplicator {} impl IFabricReplicator_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicator_Impl, const OFFSET: isize, >() -> IFabricReplicator_Vtbl { unsafe extern "system" fn BeginOpen< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.BeginOpen(::core::mem::transmute(&callback)) { + match this.BeginOpen(::windows_core::from_raw_borrowed(&callback)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndOpen< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, replicationaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndOpen(::core::mem::transmute(&context)) { + match this.EndOpen(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(replicationaddress, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginChangeRole< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicator_Impl, const OFFSET: isize, >( @@ -4100,35 +4207,36 @@ impl IFabricReplicator_Vtbl { role: super::super::FABRIC_REPLICA_ROLE, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginChangeRole( ::core::mem::transmute_copy(&epoch), ::core::mem::transmute_copy(&role), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndChangeRole< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndChangeRole(::core::mem::transmute(&context)).into() + this.EndChangeRole(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn BeginUpdateEpoch< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicator_Impl, const OFFSET: isize, >( @@ -4136,65 +4244,67 @@ impl IFabricReplicator_Vtbl { epoch: *const super::super::FABRIC_EPOCH, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUpdateEpoch( ::core::mem::transmute_copy(&epoch), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateEpoch< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUpdateEpoch(::core::mem::transmute(&context)).into() + this.EndUpdateEpoch(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn BeginClose< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.BeginClose(::core::mem::transmute(&callback)) { + match this.BeginClose(::windows_core::from_raw_borrowed(&callback)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndClose< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndClose(::core::mem::transmute(&context)).into() + this.EndClose(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn Abort< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicator_Impl, const OFFSET: isize, >( @@ -4205,43 +4315,43 @@ impl IFabricReplicator_Vtbl { this.Abort() } unsafe extern "system" fn GetCurrentProgress< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, lastsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCurrentProgress() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(lastsequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetCatchUpCapability< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, fromsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCatchUpCapability() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(fromsequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginOpen: BeginOpen::, EndOpen: EndOpen::, BeginChangeRole: BeginChangeRole::, @@ -4255,38 +4365,43 @@ impl IFabricReplicator_Vtbl { GetCatchUpCapability: GetCatchUpCapability::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricReplicatorCatchupSpecificQuorum_Impl: Sized {} -impl ::windows::core::RuntimeName for IFabricReplicatorCatchupSpecificQuorum {} +impl ::windows_core::RuntimeName for IFabricReplicatorCatchupSpecificQuorum {} impl IFabricReplicatorCatchupSpecificQuorum_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicatorCatchupSpecificQuorum_Impl, const OFFSET: isize, >() -> IFabricReplicatorCatchupSpecificQuorum_Vtbl { Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricReplicatorSettingsResult_Impl: Sized { fn get_ReplicatorSettings(&self) -> *mut super::super::FABRIC_REPLICATOR_SETTINGS; } -impl ::windows::core::RuntimeName for IFabricReplicatorSettingsResult {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricReplicatorSettingsResult {} +#[cfg(feature = "Win32_Foundation")] impl IFabricReplicatorSettingsResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicatorSettingsResult_Impl, const OFFSET: isize, >() -> IFabricReplicatorSettingsResult_Vtbl { unsafe extern "system" fn get_ReplicatorSettings< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricReplicatorSettingsResult_Impl, const OFFSET: isize, >( @@ -4297,265 +4412,266 @@ impl IFabricReplicatorSettingsResult_Vtbl { this.get_ReplicatorSettings() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ReplicatorSettings: get_ReplicatorSettings::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricRuntime_Impl: Sized { fn BeginRegisterStatelessServiceFactory( &self, - servicetypename: &::windows::core::PCWSTR, - factory: &::core::option::Option, + servicetypename: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricStatelessServiceFactory>, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRegisterStatelessServiceFactory( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn RegisterStatelessServiceFactory( &self, - servicetypename: &::windows::core::PCWSTR, - factory: &::core::option::Option, - ) -> ::windows::core::Result<()>; + servicetypename: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricStatelessServiceFactory>, + ) -> ::windows_core::Result<()>; fn BeginRegisterStatefulServiceFactory( &self, - servicetypename: &::windows::core::PCWSTR, - factory: &::core::option::Option, + servicetypename: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricStatefulServiceFactory>, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRegisterStatefulServiceFactory( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn RegisterStatefulServiceFactory( &self, - servicetypename: &::windows::core::PCWSTR, - factory: &::core::option::Option, - ) -> ::windows::core::Result<()>; + servicetypename: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricStatefulServiceFactory>, + ) -> ::windows_core::Result<()>; fn CreateServiceGroupFactoryBuilder( &self, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; fn BeginRegisterServiceGroupFactory( &self, - groupservicetype: &::windows::core::PCWSTR, - factory: &::core::option::Option, + groupservicetype: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricServiceGroupFactory>, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRegisterServiceGroupFactory( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn RegisterServiceGroupFactory( &self, - groupservicetype: &::windows::core::PCWSTR, - factory: &::core::option::Option, - ) -> ::windows::core::Result<()>; + groupservicetype: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricServiceGroupFactory>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricRuntime {} +impl ::windows_core::RuntimeName for IFabricRuntime {} impl IFabricRuntime_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRuntime_Impl, const OFFSET: isize, >() -> IFabricRuntime_Vtbl { unsafe extern "system" fn BeginRegisterStatelessServiceFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRegisterStatelessServiceFactory( ::core::mem::transmute(&servicetypename), - ::core::mem::transmute(&factory), + ::windows_core::from_raw_borrowed(&factory), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRegisterStatelessServiceFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRegisterStatelessServiceFactory(::core::mem::transmute(&context)) + this.EndRegisterStatelessServiceFactory(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn RegisterStatelessServiceFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterStatelessServiceFactory( ::core::mem::transmute(&servicetypename), - ::core::mem::transmute(&factory), + ::windows_core::from_raw_borrowed(&factory), ) .into() } unsafe extern "system" fn BeginRegisterStatefulServiceFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRegisterStatefulServiceFactory( ::core::mem::transmute(&servicetypename), - ::core::mem::transmute(&factory), + ::windows_core::from_raw_borrowed(&factory), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRegisterStatefulServiceFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRegisterStatefulServiceFactory(::core::mem::transmute(&context)) + this.EndRegisterStatefulServiceFactory(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn RegisterStatefulServiceFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterStatefulServiceFactory( ::core::mem::transmute(&servicetypename), - ::core::mem::transmute(&factory), + ::windows_core::from_raw_borrowed(&factory), ) .into() } unsafe extern "system" fn CreateServiceGroupFactoryBuilder< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, builder: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateServiceGroupFactoryBuilder() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(builder, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginRegisterServiceGroupFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - groupservicetype: ::windows::core::PCWSTR, + groupservicetype: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRegisterServiceGroupFactory( ::core::mem::transmute(&groupservicetype), - ::core::mem::transmute(&factory), + ::windows_core::from_raw_borrowed(&factory), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRegisterServiceGroupFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndRegisterServiceGroupFactory(::core::mem::transmute(&context)) + this.EndRegisterServiceGroupFactory(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn RegisterServiceGroupFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricRuntime_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - groupservicetype: ::windows::core::PCWSTR, + groupservicetype: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RegisterServiceGroupFactory( ::core::mem::transmute(&groupservicetype), - ::core::mem::transmute(&factory), + ::windows_core::from_raw_borrowed(&factory), ) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginRegisterStatelessServiceFactory: BeginRegisterStatelessServiceFactory::< Identity, Impl, @@ -4596,75 +4712,77 @@ impl IFabricRuntime_Vtbl { RegisterServiceGroupFactory: RegisterServiceGroupFactory::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricSecondaryEventHandler_Impl: Sized { fn OnCopyComplete( &self, - enumerator: &::core::option::Option, - ) -> ::windows::core::Result<()>; + enumerator: ::core::option::Option<&IFabricKeyValueStoreEnumerator>, + ) -> ::windows_core::Result<()>; fn OnReplicationOperation( &self, - enumerator: &::core::option::Option, - ) -> ::windows::core::Result<()>; + enumerator: ::core::option::Option<&IFabricKeyValueStoreNotificationEnumerator>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricSecondaryEventHandler {} +impl ::windows_core::RuntimeName for IFabricSecondaryEventHandler {} impl IFabricSecondaryEventHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecondaryEventHandler_Impl, const OFFSET: isize, >() -> IFabricSecondaryEventHandler_Vtbl { unsafe extern "system" fn OnCopyComplete< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecondaryEventHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, enumerator: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.OnCopyComplete(::core::mem::transmute(&enumerator)) + this.OnCopyComplete(::windows_core::from_raw_borrowed(&enumerator)) .into() } unsafe extern "system" fn OnReplicationOperation< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecondaryEventHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, enumerator: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.OnReplicationOperation(::core::mem::transmute(&enumerator)) + this.OnReplicationOperation(::windows_core::from_raw_borrowed(&enumerator)) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), OnCopyComplete: OnCopyComplete::, OnReplicationOperation: OnReplicationOperation::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricSecurityCredentialsResult_Impl: Sized { fn get_SecurityCredentials(&self) -> *mut super::super::FABRIC_SECURITY_CREDENTIALS; } -impl ::windows::core::RuntimeName for IFabricSecurityCredentialsResult {} +impl ::windows_core::RuntimeName for IFabricSecurityCredentialsResult {} impl IFabricSecurityCredentialsResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecurityCredentialsResult_Impl, const OFFSET: isize, >() -> IFabricSecurityCredentialsResult_Vtbl { unsafe extern "system" fn get_SecurityCredentials< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricSecurityCredentialsResult_Impl, const OFFSET: isize, >( @@ -4675,155 +4793,158 @@ impl IFabricSecurityCredentialsResult_Vtbl { this.get_SecurityCredentials() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_SecurityCredentials: get_SecurityCredentials::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricServiceGroupFactory_Impl: Sized {} -impl ::windows::core::RuntimeName for IFabricServiceGroupFactory {} +impl ::windows_core::RuntimeName for IFabricServiceGroupFactory {} impl IFabricServiceGroupFactory_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupFactory_Impl, const OFFSET: isize, >() -> IFabricServiceGroupFactory_Vtbl { Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricServiceGroupFactoryBuilder_Impl: Sized { fn AddStatelessServiceFactory( &self, - memberservicetype: &::windows::core::PCWSTR, - factory: &::core::option::Option, - ) -> ::windows::core::Result<()>; + memberservicetype: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricStatelessServiceFactory>, + ) -> ::windows_core::Result<()>; fn AddStatefulServiceFactory( &self, - memberservicetype: &::windows::core::PCWSTR, - factory: &::core::option::Option, - ) -> ::windows::core::Result<()>; + memberservicetype: &::windows_core::PCWSTR, + factory: ::core::option::Option<&IFabricStatefulServiceFactory>, + ) -> ::windows_core::Result<()>; fn RemoveServiceFactory( &self, - memberservicetype: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<()>; - fn ToServiceGroupFactory(&self) -> ::windows::core::Result; + memberservicetype: &::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; + fn ToServiceGroupFactory(&self) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricServiceGroupFactoryBuilder {} +impl ::windows_core::RuntimeName for IFabricServiceGroupFactoryBuilder {} impl IFabricServiceGroupFactoryBuilder_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupFactoryBuilder_Impl, const OFFSET: isize, >() -> IFabricServiceGroupFactoryBuilder_Vtbl { unsafe extern "system" fn AddStatelessServiceFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupFactoryBuilder_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - memberservicetype: ::windows::core::PCWSTR, + memberservicetype: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddStatelessServiceFactory( ::core::mem::transmute(&memberservicetype), - ::core::mem::transmute(&factory), + ::windows_core::from_raw_borrowed(&factory), ) .into() } unsafe extern "system" fn AddStatefulServiceFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupFactoryBuilder_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - memberservicetype: ::windows::core::PCWSTR, + memberservicetype: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.AddStatefulServiceFactory( ::core::mem::transmute(&memberservicetype), - ::core::mem::transmute(&factory), + ::windows_core::from_raw_borrowed(&factory), ) .into() } unsafe extern "system" fn RemoveServiceFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupFactoryBuilder_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - memberservicetype: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { + memberservicetype: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.RemoveServiceFactory(::core::mem::transmute(&memberservicetype)) .into() } unsafe extern "system" fn ToServiceGroupFactory< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupFactoryBuilder_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, factory: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ToServiceGroupFactory() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(factory, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), AddStatelessServiceFactory: AddStatelessServiceFactory::, AddStatefulServiceFactory: AddStatefulServiceFactory::, RemoveServiceFactory: RemoveServiceFactory::, ToServiceGroupFactory: ToServiceGroupFactory::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricServiceGroupPartition_Impl: Sized { fn ResolveMember( &self, name: *const u16, - riid: *const ::windows::core::GUID, - ) -> ::windows::core::Result<*mut ::core::ffi::c_void>; + riid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void>; } -impl ::windows::core::RuntimeName for IFabricServiceGroupPartition {} +impl ::windows_core::RuntimeName for IFabricServiceGroupPartition {} impl IFabricServiceGroupPartition_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupPartition_Impl, const OFFSET: isize, >() -> IFabricServiceGroupPartition_Vtbl { unsafe extern "system" fn ResolveMember< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricServiceGroupPartition_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, name: *const u16, - riid: *const ::windows::core::GUID, + riid: *const ::windows_core::GUID, member: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.ResolveMember( @@ -4832,56 +4953,57 @@ impl IFabricServiceGroupPartition_Vtbl { ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(member, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), ResolveMember: ResolveMember::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricStateProvider_Impl: Sized { fn BeginUpdateEpoch( &self, epoch: *const super::super::FABRIC_EPOCH, previousepochlastsequencenumber: i64, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndUpdateEpoch( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; - fn GetLastCommittedSequenceNumber(&self) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; + fn GetLastCommittedSequenceNumber(&self) -> ::windows_core::Result; fn BeginOnDataLoss( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndOnDataLoss( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn GetCopyContext(&self) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn GetCopyContext(&self) -> ::windows_core::Result; fn GetCopyState( &self, uptosequencenumber: i64, - copycontextstream: &::core::option::Option, - ) -> ::windows::core::Result; + copycontextstream: ::core::option::Option<&IFabricOperationDataStream>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricStateProvider {} +impl ::windows_core::RuntimeName for IFabricStateProvider {} impl IFabricStateProvider_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateProvider_Impl, const OFFSET: isize, >() -> IFabricStateProvider_Vtbl { unsafe extern "system" fn BeginUpdateEpoch< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateProvider_Impl, const OFFSET: isize, >( @@ -4890,109 +5012,110 @@ impl IFabricStateProvider_Vtbl { previousepochlastsequencenumber: i64, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginUpdateEpoch( ::core::mem::transmute_copy(&epoch), ::core::mem::transmute_copy(&previousepochlastsequencenumber), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndUpdateEpoch< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateProvider_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndUpdateEpoch(::core::mem::transmute(&context)).into() + this.EndUpdateEpoch(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn GetLastCommittedSequenceNumber< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateProvider_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, sequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetLastCommittedSequenceNumber() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(sequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginOnDataLoss< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.BeginOnDataLoss(::core::mem::transmute(&callback)) { + match this.BeginOnDataLoss(::windows_core::from_raw_borrowed(&callback)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndOnDataLoss< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateProvider_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, isstatechanged: *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndOnDataLoss(::core::mem::transmute(&context)) { + match this.EndOnDataLoss(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(isstatechanged, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetCopyContext< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateProvider_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, copycontextstream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCopyContext() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(copycontextstream, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetCopyState< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateProvider_Impl, const OFFSET: isize, >( @@ -5000,22 +5123,22 @@ impl IFabricStateProvider_Vtbl { uptosequencenumber: i64, copycontextstream: *mut ::core::ffi::c_void, copystatestream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCopyState( ::core::mem::transmute_copy(&uptosequencenumber), - ::core::mem::transmute(©contextstream), + ::windows_core::from_raw_borrowed(©contextstream), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(copystatestream, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginUpdateEpoch: BeginUpdateEpoch::, EndUpdateEpoch: EndUpdateEpoch::, GetLastCommittedSequenceNumber: GetLastCommittedSequenceNumber::, @@ -5025,38 +5148,42 @@ impl IFabricStateProvider_Vtbl { GetCopyState: GetCopyState::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricStateReplicator_Impl: Sized { fn BeginReplicate( &self, - operationdata: &::core::option::Option, - callback: &::core::option::Option, + operationdata: ::core::option::Option<&IFabricOperationData>, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, sequencenumber: *mut i64, context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn EndReplicate( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; - fn GetReplicationStream(&self) -> ::windows::core::Result; - fn GetCopyStream(&self) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; + fn GetReplicationStream(&self) -> ::windows_core::Result; + fn GetCopyStream(&self) -> ::windows_core::Result; fn UpdateReplicatorSettings( &self, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricStateReplicator {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricStateReplicator {} +#[cfg(feature = "Win32_Foundation")] impl IFabricStateReplicator_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateReplicator_Impl, const OFFSET: isize, >() -> IFabricStateReplicator_Vtbl { unsafe extern "system" fn BeginReplicate< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateReplicator_Impl, const OFFSET: isize, >( @@ -5065,87 +5192,87 @@ impl IFabricStateReplicator_Vtbl { callback: *mut ::core::ffi::c_void, sequencenumber: *mut i64, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.BeginReplicate( - ::core::mem::transmute(&operationdata), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&operationdata), + ::windows_core::from_raw_borrowed(&callback), ::core::mem::transmute_copy(&sequencenumber), ::core::mem::transmute_copy(&context), ) .into() } unsafe extern "system" fn EndReplicate< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, sequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndReplicate(::core::mem::transmute(&context)) { + match this.EndReplicate(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(sequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetReplicationStream< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, stream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetReplicationStream() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(stream, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetCopyStream< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, stream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetCopyStream() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(stream, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn UpdateReplicatorSettings< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateReplicator_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.UpdateReplicatorSettings(::core::mem::transmute_copy(&replicatorsettings)) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginReplicate: BeginReplicate::, EndReplicate: EndReplicate::, GetReplicationStream: GetReplicationStream::, @@ -5153,34 +5280,38 @@ impl IFabricStateReplicator_Vtbl { UpdateReplicatorSettings: UpdateReplicatorSettings::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricStateReplicator2_Impl: Sized + IFabricStateReplicator_Impl { - fn GetReplicatorSettings(&self) -> ::windows::core::Result; + fn GetReplicatorSettings(&self) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricStateReplicator2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricStateReplicator2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricStateReplicator2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateReplicator2_Impl, const OFFSET: isize, >() -> IFabricStateReplicator2_Vtbl { unsafe extern "system" fn GetReplicatorSettings< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStateReplicator2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, replicatorsettings: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetReplicatorSettings() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(replicatorsettings, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -5190,43 +5321,44 @@ impl IFabricStateReplicator2_Vtbl { GetReplicatorSettings: GetReplicatorSettings::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricStatefulServiceFactory_Impl: Sized { fn CreateReplica( &self, - servicetypename: &::windows::core::PCWSTR, + servicetypename: &::windows_core::PCWSTR, servicename: *const u16, initializationdatalength: u32, initializationdata: *const u8, - partitionid: &::windows::core::GUID, + partitionid: &::windows_core::GUID, replicaid: i64, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricStatefulServiceFactory {} +impl ::windows_core::RuntimeName for IFabricStatefulServiceFactory {} impl IFabricStatefulServiceFactory_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServiceFactory_Impl, const OFFSET: isize, >() -> IFabricStatefulServiceFactory_Vtbl { unsafe extern "system" fn CreateReplica< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServiceFactory_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, servicename: *const u16, initializationdatalength: u32, initializationdata: *const u8, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, servicereplica: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateReplica( @@ -5239,110 +5371,112 @@ impl IFabricStatefulServiceFactory_Vtbl { ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(servicereplica, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), CreateReplica: CreateReplica::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricStatefulServicePartition_Impl: Sized { fn GetPartitionInfo( &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>; + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>; fn GetReadStatus( &self, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; fn GetWriteStatus( &self, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; fn CreateReplicator( &self, - stateprovider: &::core::option::Option, + stateprovider: ::core::option::Option<&IFabricStateProvider>, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, replicator: *mut ::core::option::Option, statereplicator: *mut ::core::option::Option, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn ReportLoad( &self, metriccount: u32, metrics: *const super::super::FABRIC_LOAD_METRIC, - ) -> ::windows::core::Result<()>; - fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; + fn ReportFault(&self, faulttype: super::super::FABRIC_FAULT_TYPE) + -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricStatefulServicePartition {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricStatefulServicePartition {} +#[cfg(feature = "Win32_Foundation")] impl IFabricStatefulServicePartition_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >() -> IFabricStatefulServicePartition_Vtbl { unsafe extern "system" fn GetPartitionInfo< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, bufferedvalue: *mut *mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPartitionInfo() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetReadStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, readstatus: *mut super::super::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetReadStatus() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(readstatus, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn GetWriteStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, writestatus: *mut super::super::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetWriteStatus() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(writestatus, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn CreateReplicator< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >( @@ -5351,11 +5485,11 @@ impl IFabricStatefulServicePartition_Vtbl { replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, replicator: *mut *mut ::core::ffi::c_void, statereplicator: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.CreateReplicator( - ::core::mem::transmute(&stateprovider), + ::windows_core::from_raw_borrowed(&stateprovider), ::core::mem::transmute_copy(&replicatorsettings), ::core::mem::transmute_copy(&replicator), ::core::mem::transmute_copy(&statereplicator), @@ -5363,14 +5497,14 @@ impl IFabricStatefulServicePartition_Vtbl { .into() } unsafe extern "system" fn ReportLoad< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, metriccount: u32, metrics: *const super::super::FABRIC_LOAD_METRIC, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportLoad( @@ -5380,20 +5514,20 @@ impl IFabricStatefulServicePartition_Vtbl { .into() } unsafe extern "system" fn ReportFault< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportFault(::core::mem::transmute_copy(&faulttype)) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), GetPartitionInfo: GetPartitionInfo::, GetReadStatus: GetReadStatus::, GetWriteStatus: GetWriteStatus::, @@ -5402,33 +5536,37 @@ impl IFabricStatefulServicePartition_Vtbl { ReportFault: ReportFault::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricStatefulServicePartition1_Impl: Sized + IFabricStatefulServicePartition_Impl { fn ReportMoveCost( &self, movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricStatefulServicePartition1 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricStatefulServicePartition1 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricStatefulServicePartition1_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition1_Impl, const OFFSET: isize, >() -> IFabricStatefulServicePartition1_Vtbl { unsafe extern "system" fn ReportMoveCost< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition1_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportMoveCost(::core::mem::transmute_copy(&movecost)) @@ -5439,51 +5577,55 @@ impl IFabricStatefulServicePartition1_Vtbl { ReportMoveCost: ReportMoveCost::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricStatefulServicePartition2_Impl: Sized + IFabricStatefulServicePartition1_Impl { fn ReportReplicaHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn ReportPartitionHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricStatefulServicePartition2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricStatefulServicePartition2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricStatefulServicePartition2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition2_Impl, const OFFSET: isize, >() -> IFabricStatefulServicePartition2_Vtbl { unsafe extern "system" fn ReportReplicaHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportReplicaHealth(::core::mem::transmute_copy(&healthinfo)) .into() } unsafe extern "system" fn ReportPartitionHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportPartitionHealth(::core::mem::transmute_copy(&healthinfo)) @@ -5495,12 +5637,14 @@ impl IFabricStatefulServicePartition2_Vtbl { ReportPartitionHealth: ReportPartitionHealth::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricStatefulServicePartition3_Impl: Sized + IFabricStatefulServicePartition2_Impl { @@ -5508,29 +5652,31 @@ pub trait IFabricStatefulServicePartition3_Impl: &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn ReportPartitionHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricStatefulServicePartition3 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricStatefulServicePartition3 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricStatefulServicePartition3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition3_Impl, const OFFSET: isize, >() -> IFabricStatefulServicePartition3_Vtbl { unsafe extern "system" fn ReportReplicaHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportReplicaHealth2( @@ -5540,14 +5686,14 @@ impl IFabricStatefulServicePartition3_Vtbl { .into() } unsafe extern "system" fn ReportPartitionHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServicePartition3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportPartitionHealth2( @@ -5562,52 +5708,53 @@ impl IFabricStatefulServicePartition3_Vtbl { ReportPartitionHealth2: ReportPartitionHealth2::, } } - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricStatefulServiceReplica_Impl: Sized { fn BeginOpen( &self, openmode: super::super::FABRIC_REPLICA_OPEN_MODE, - partition: &::core::option::Option, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + partition: ::core::option::Option<&IFabricStatefulServicePartition>, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndOpen( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginChangeRole( &self, newrole: super::super::FABRIC_REPLICA_ROLE, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndChangeRole( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginClose( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndClose( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn Abort(&self); } -impl ::windows::core::RuntimeName for IFabricStatefulServiceReplica {} +impl ::windows_core::RuntimeName for IFabricStatefulServiceReplica {} impl IFabricStatefulServiceReplica_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServiceReplica_Impl, const OFFSET: isize, >() -> IFabricStatefulServiceReplica_Vtbl { unsafe extern "system" fn BeginOpen< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServiceReplica_Impl, const OFFSET: isize, >( @@ -5616,42 +5763,42 @@ 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginOpen( ::core::mem::transmute_copy(&openmode), - ::core::mem::transmute(&partition), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&partition), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndOpen< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndOpen(::core::mem::transmute(&context)) { + match this.EndOpen(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(replicator, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginChangeRole< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServiceReplica_Impl, const OFFSET: isize, >( @@ -5659,72 +5806,73 @@ impl IFabricStatefulServiceReplica_Vtbl { newrole: super::super::FABRIC_REPLICA_ROLE, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginChangeRole( ::core::mem::transmute_copy(&newrole), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndChangeRole< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndChangeRole(::core::mem::transmute(&context)) { + match this.EndChangeRole(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(serviceaddress, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginClose< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.BeginClose(::core::mem::transmute(&callback)) { + match this.BeginClose(::windows_core::from_raw_borrowed(&callback)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndClose< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServiceReplica_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndClose(::core::mem::transmute(&context)).into() + this.EndClose(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn Abort< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatefulServiceReplica_Impl, const OFFSET: isize, >( @@ -5735,7 +5883,7 @@ impl IFabricStatefulServiceReplica_Vtbl { this.Abort() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginOpen: BeginOpen::, EndOpen: EndOpen::, BeginChangeRole: BeginChangeRole::, @@ -5745,42 +5893,43 @@ impl IFabricStatefulServiceReplica_Vtbl { Abort: Abort::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricStatelessServiceFactory_Impl: Sized { fn CreateInstance( &self, - servicetypename: &::windows::core::PCWSTR, + servicetypename: &::windows_core::PCWSTR, servicename: *const u16, initializationdatalength: u32, initializationdata: *const u8, - partitionid: &::windows::core::GUID, + partitionid: &::windows_core::GUID, instanceid: i64, - ) -> ::windows::core::Result; + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricStatelessServiceFactory {} +impl ::windows_core::RuntimeName for IFabricStatelessServiceFactory {} impl IFabricStatelessServiceFactory_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServiceFactory_Impl, const OFFSET: isize, >() -> IFabricStatelessServiceFactory_Vtbl { unsafe extern "system" fn CreateInstance< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServiceFactory_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, servicename: *const u16, initializationdatalength: u32, initializationdata: *const u8, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, instanceid: i64, serviceinstance: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.CreateInstance( @@ -5793,49 +5942,50 @@ impl IFabricStatelessServiceFactory_Vtbl { ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(serviceinstance, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), CreateInstance: CreateInstance::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricStatelessServiceInstance_Impl: Sized { fn BeginOpen( &self, - partition: &::core::option::Option, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + partition: ::core::option::Option<&IFabricStatelessServicePartition>, + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndOpen( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginClose( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndClose( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn Abort(&self); } -impl ::windows::core::RuntimeName for IFabricStatelessServiceInstance {} +impl ::windows_core::RuntimeName for IFabricStatelessServiceInstance {} impl IFabricStatelessServiceInstance_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServiceInstance_Impl, const OFFSET: isize, >() -> IFabricStatelessServiceInstance_Vtbl { unsafe extern "system" fn BeginOpen< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServiceInstance_Impl, const OFFSET: isize, >( @@ -5843,72 +5993,73 @@ impl IFabricStatelessServiceInstance_Vtbl { partition: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginOpen( - ::core::mem::transmute(&partition), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&partition), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndOpen< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndOpen(::core::mem::transmute(&context)) { + match this.EndOpen(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(serviceaddress, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginClose< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.BeginClose(::core::mem::transmute(&callback)) { + match this.BeginClose(::windows_core::from_raw_borrowed(&callback)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndClose< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServiceInstance_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndClose(::core::mem::transmute(&context)).into() + this.EndClose(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn Abort< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServiceInstance_Impl, const OFFSET: isize, >( @@ -5919,7 +6070,7 @@ impl IFabricStatelessServiceInstance_Vtbl { this.Abort() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginOpen: BeginOpen::, EndOpen: EndOpen::, BeginClose: BeginClose::, @@ -5927,58 +6078,57 @@ impl IFabricStatelessServiceInstance_Vtbl { Abort: Abort::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricStatelessServicePartition_Impl: Sized { fn GetPartitionInfo( &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>; + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>; fn ReportLoad( &self, metriccount: u32, metrics: *const super::super::FABRIC_LOAD_METRIC, - ) -> ::windows::core::Result<()>; - fn ReportFault( - &self, - faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; + fn ReportFault(&self, faulttype: super::super::FABRIC_FAULT_TYPE) + -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricStatelessServicePartition {} +impl ::windows_core::RuntimeName for IFabricStatelessServicePartition {} impl IFabricStatelessServicePartition_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServicePartition_Impl, const OFFSET: isize, >() -> IFabricStatelessServicePartition_Vtbl { unsafe extern "system" fn GetPartitionInfo< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServicePartition_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, bufferedvalue: *mut *mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.GetPartitionInfo() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(bufferedvalue, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn ReportLoad< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServicePartition_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, metriccount: u32, metrics: *const super::super::FABRIC_LOAD_METRIC, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportLoad( @@ -5988,52 +6138,53 @@ impl IFabricStatelessServicePartition_Vtbl { .into() } unsafe extern "system" fn ReportFault< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServicePartition_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportFault(::core::mem::transmute_copy(&faulttype)) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), GetPartitionInfo: GetPartitionInfo::, ReportLoad: ReportLoad::, ReportFault: ReportFault::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricStatelessServicePartition1_Impl: Sized + IFabricStatelessServicePartition_Impl { fn ReportMoveCost( &self, movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricStatelessServicePartition1 {} +impl ::windows_core::RuntimeName for IFabricStatelessServicePartition1 {} impl IFabricStatelessServicePartition1_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServicePartition1_Impl, const OFFSET: isize, >() -> IFabricStatelessServicePartition1_Vtbl { unsafe extern "system" fn ReportMoveCost< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServicePartition1_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportMoveCost(::core::mem::transmute_copy(&movecost)) @@ -6044,51 +6195,55 @@ impl IFabricStatelessServicePartition1_Vtbl { ReportMoveCost: ReportMoveCost::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricStatelessServicePartition2_Impl: Sized + IFabricStatelessServicePartition1_Impl { fn ReportInstanceHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn ReportPartitionHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricStatelessServicePartition2 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricStatelessServicePartition2 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricStatelessServicePartition2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServicePartition2_Impl, const OFFSET: isize, >() -> IFabricStatelessServicePartition2_Vtbl { unsafe extern "system" fn ReportInstanceHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServicePartition2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportInstanceHealth(::core::mem::transmute_copy(&healthinfo)) .into() } unsafe extern "system" fn ReportPartitionHealth< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServicePartition2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportPartitionHealth(::core::mem::transmute_copy(&healthinfo)) @@ -6100,12 +6255,14 @@ impl IFabricStatelessServicePartition2_Vtbl { ReportPartitionHealth: ReportPartitionHealth::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricStatelessServicePartition3_Impl: Sized + IFabricStatelessServicePartition2_Impl { @@ -6113,29 +6270,31 @@ pub trait IFabricStatelessServicePartition3_Impl: &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; fn ReportPartitionHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()>; + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricStatelessServicePartition3 {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricStatelessServicePartition3 {} +#[cfg(feature = "Win32_Foundation")] impl IFabricStatelessServicePartition3_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServicePartition3_Impl, const OFFSET: isize, >() -> IFabricStatelessServicePartition3_Vtbl { unsafe extern "system" fn ReportInstanceHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServicePartition3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportInstanceHealth2( @@ -6145,14 +6304,14 @@ impl IFabricStatelessServicePartition3_Vtbl { .into() } unsafe extern "system" fn ReportPartitionHealth2< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStatelessServicePartition3_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.ReportPartitionHealth2( @@ -6167,25 +6326,26 @@ impl IFabricStatelessServicePartition3_Vtbl { ReportPartitionHealth2: ReportPartitionHealth2::, } } - 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 } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricStoreEventHandler_Impl: Sized { fn OnDataLoss(&self); } -impl ::windows::core::RuntimeName for IFabricStoreEventHandler {} +impl ::windows_core::RuntimeName for IFabricStoreEventHandler {} impl IFabricStoreEventHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStoreEventHandler_Impl, const OFFSET: isize, >() -> IFabricStoreEventHandler_Vtbl { unsafe extern "system" fn OnDataLoss< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStoreEventHandler_Impl, const OFFSET: isize, >( @@ -6196,65 +6356,66 @@ impl IFabricStoreEventHandler_Vtbl { this.OnDataLoss() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), OnDataLoss: OnDataLoss::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricStoreEventHandler2_Impl: Sized + IFabricStoreEventHandler_Impl { fn BeginOnDataLoss( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndOnDataLoss( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricStoreEventHandler2 {} +impl ::windows_core::RuntimeName for IFabricStoreEventHandler2 {} impl IFabricStoreEventHandler2_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStoreEventHandler2_Impl, const OFFSET: isize, >() -> IFabricStoreEventHandler2_Vtbl { unsafe extern "system" fn BeginOnDataLoss< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: 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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.BeginOnDataLoss(::core::mem::transmute(&callback)) { + match this.BeginOnDataLoss(::windows_core::from_raw_borrowed(&callback)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndOnDataLoss< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStoreEventHandler2_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, isstatechanged: *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndOnDataLoss(::core::mem::transmute(&context)) { + match this.EndOnDataLoss(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(isstatechanged, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } @@ -6265,31 +6426,32 @@ impl IFabricStoreEventHandler2_Vtbl { EndOnDataLoss: EndOnDataLoss::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricStorePostBackupHandler_Impl: Sized { fn BeginPostBackup( &self, info: *const super::super::FABRIC_STORE_BACKUP_INFO, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndPostBackup( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; } -impl ::windows::core::RuntimeName for IFabricStorePostBackupHandler {} +impl ::windows_core::RuntimeName for IFabricStorePostBackupHandler {} impl IFabricStorePostBackupHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStorePostBackupHandler_Impl, const OFFSET: isize, >() -> IFabricStorePostBackupHandler_Vtbl { unsafe extern "system" fn BeginPostBackup< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStorePostBackupHandler_Impl, const OFFSET: isize, >( @@ -6297,70 +6459,71 @@ impl IFabricStorePostBackupHandler_Vtbl { info: *const super::super::FABRIC_STORE_BACKUP_INFO, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginPostBackup( ::core::mem::transmute_copy(&info), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndPostBackup< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStorePostBackupHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, status: *mut u8, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndPostBackup(::core::mem::transmute(&context)) { + match this.EndPostBackup(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(status, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginPostBackup: BeginPostBackup::, EndPostBackup: EndPostBackup::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricTransaction_Impl: Sized + IFabricTransactionBase_Impl { fn BeginCommit( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndCommit( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn Rollback(&self); } -impl ::windows::core::RuntimeName for IFabricTransaction {} +impl ::windows_core::RuntimeName for IFabricTransaction {} impl IFabricTransaction_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransaction_Impl, const OFFSET: isize, >() -> IFabricTransaction_Vtbl { unsafe extern "system" fn BeginCommit< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransaction_Impl, const OFFSET: isize, >( @@ -6368,41 +6531,41 @@ impl IFabricTransaction_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginCommit( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndCommit< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransaction_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndCommit(::core::mem::transmute(&context)) { + match this.EndCommit(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(commitsequencenumber, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn Rollback< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransaction_Impl, const OFFSET: isize, >( @@ -6419,35 +6582,36 @@ impl IFabricTransaction_Vtbl { Rollback: Rollback::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID - || iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID + || iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"implement\"`*"] pub trait IFabricTransactionBase_Impl: Sized { - fn get_Id(&self) -> *mut ::windows::core::GUID; + fn get_Id(&self) -> *mut ::windows_core::GUID; fn get_IsolationLevel(&self) -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL; } -impl ::windows::core::RuntimeName for IFabricTransactionBase {} +impl ::windows_core::RuntimeName for IFabricTransactionBase {} impl IFabricTransactionBase_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransactionBase_Impl, const OFFSET: isize, >() -> IFabricTransactionBase_Vtbl { unsafe extern "system" fn get_Id< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransactionBase_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> *mut ::windows::core::GUID { + ) -> *mut ::windows_core::GUID { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_Id() } unsafe extern "system" fn get_IsolationLevel< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransactionBase_Impl, const OFFSET: isize, >( @@ -6458,12 +6622,12 @@ impl IFabricTransactionBase_Vtbl { this.get_IsolationLevel() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_Id: get_Id::, get_IsolationLevel: get_IsolationLevel::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } diff --git a/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/mod.rs b/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/mod.rs index d6849190..0ef8f9b2 100644 --- a/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/mod.rs +++ b/src/Microsoft/ServiceFabric/FabricCommon/FabricRuntime/mod.rs @@ -1,160 +1,168 @@ +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] -pub unsafe fn FabricBeginCreateRuntime<'a, P0, P1>( - riid: *const ::windows::core::GUID, +pub unsafe fn FabricBeginCreateRuntime( + riid: *const ::windows_core::GUID, exithandler: P0, timeoutmilliseconds: u32, callback: P1, -) -> ::windows::core::Result +) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricProcessExitHandler>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricBeginCreateRuntime( - riid: *const ::windows::core::GUID, + pub fn FabricBeginCreateRuntime( + riid: *const ::windows_core::GUID, exithandler: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricBeginCreateRuntime( - ::core::mem::transmute(riid), - exithandler.into().abi(), + riid, + exithandler.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] -pub unsafe fn FabricBeginGetActivationContext<'a, P0>( - riid: *const ::windows::core::GUID, +pub unsafe fn FabricBeginGetActivationContext( + riid: *const ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, -) -> ::windows::core::Result +) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>>, + P0: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricBeginGetActivationContext( - riid: *const ::windows::core::GUID, + pub fn FabricBeginGetActivationContext( + riid: *const ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricBeginGetActivationContext( - ::core::mem::transmute(riid), + riid, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] -pub unsafe fn FabricBeginGetCodePackageActivator<'a, P0>( - riid: *const ::windows::core::GUID, +pub unsafe fn FabricBeginGetCodePackageActivator( + riid: *const ::windows_core::GUID, timeoutmilliseconds: u32, callback: P0, -) -> ::windows::core::Result +) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>>, + P0: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricBeginGetCodePackageActivator( - riid: *const ::windows::core::GUID, + pub fn FabricBeginGetCodePackageActivator( + riid: *const ::windows_core::GUID, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricBeginGetCodePackageActivator( - ::core::mem::transmute(riid), + riid, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] -pub unsafe fn FabricBeginGetNodeContext<'a, P0>( +pub unsafe fn FabricBeginGetNodeContext( timeoutmilliseconds: u32, callback: P0, -) -> ::windows::core::Result +) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>>, + P0: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricBeginGetNodeContext( + pub fn FabricBeginGetNodeContext( timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricBeginGetNodeContext( timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn FabricCreateKeyValueStoreReplica<'a, P0, P1>( - riid: *const ::windows::core::GUID, +pub unsafe fn FabricCreateKeyValueStoreReplica( + riid: *const ::windows_core::GUID, storename: P0, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, localstoresettings: *const ::core::ffi::c_void, storeeventhandler: P1, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStoreEventHandler>>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricCreateKeyValueStoreReplica( - riid: *const ::windows::core::GUID, - storename: ::windows::core::PCWSTR, - partitionid: ::windows::core::GUID, + pub fn FabricCreateKeyValueStoreReplica( + riid: *const ::windows_core::GUID, + storename: ::windows_core::PCWSTR, + partitionid: ::windows_core::GUID, replicaid: i64, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, localstoresettings: *const ::core::ffi::c_void, storeeventhandler: *mut ::core::ffi::c_void, keyvaluestore: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricCreateKeyValueStoreReplica( - ::core::mem::transmute(riid), - storename.into(), + riid, + storename.into_param().abi(), ::core::mem::transmute(partitionid), replicaid, - ::core::mem::transmute(replicatorsettings), + replicatorsettings, localstorekind, - ::core::mem::transmute(localstoresettings), - storeeventhandler.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + localstoresettings, + storeeventhandler.into_param().abi(), + &mut result__, ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn FabricCreateKeyValueStoreReplica2<'a, P0, P1, P2>( - riid: *const ::windows::core::GUID, +pub unsafe fn FabricCreateKeyValueStoreReplica2( + riid: *const ::windows_core::GUID, storename: P0, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, @@ -162,18 +170,18 @@ pub unsafe fn FabricCreateKeyValueStoreReplica2<'a, P0, P1, P2>( storeeventhandler: P1, secondaryeventhandler: P2, notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStoreEventHandler>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricSecondaryEventHandler>>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricCreateKeyValueStoreReplica2( - riid: *const ::windows::core::GUID, - storename: ::windows::core::PCWSTR, - partitionid: ::windows::core::GUID, + pub fn FabricCreateKeyValueStoreReplica2( + riid: *const ::windows_core::GUID, + storename: ::windows_core::PCWSTR, + partitionid: ::windows_core::GUID, replicaid: i64, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, @@ -182,29 +190,31 @@ where secondaryeventhandler: *mut ::core::ffi::c_void, notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, keyvaluestore: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricCreateKeyValueStoreReplica2( - ::core::mem::transmute(riid), - storename.into(), + riid, + storename.into_param().abi(), ::core::mem::transmute(partitionid), replicaid, - ::core::mem::transmute(replicatorsettings), + replicatorsettings, localstorekind, - ::core::mem::transmute(localstoresettings), - storeeventhandler.into().abi(), - secondaryeventhandler.into().abi(), + localstoresettings, + storeeventhandler.into_param().abi(), + secondaryeventhandler.into_param().abi(), notificationmode, - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn FabricCreateKeyValueStoreReplica3<'a, P0, P1, P2>( - riid: *const ::windows::core::GUID, +pub unsafe fn FabricCreateKeyValueStoreReplica3( + riid: *const ::windows_core::GUID, storename: P0, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, @@ -212,18 +222,18 @@ pub unsafe fn FabricCreateKeyValueStoreReplica3<'a, P0, P1, P2>( storeeventhandler: P1, secondaryeventhandler: P2, notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStoreEventHandler>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricSecondaryEventHandler>>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricCreateKeyValueStoreReplica3( - riid: *const ::windows::core::GUID, - storename: ::windows::core::PCWSTR, - partitionid: ::windows::core::GUID, + pub fn FabricCreateKeyValueStoreReplica3( + riid: *const ::windows_core::GUID, + storename: ::windows_core::PCWSTR, + partitionid: ::windows_core::GUID, replicaid: i64, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, localstorekind: super::super::FABRIC_LOCAL_STORE_KIND, @@ -232,29 +242,31 @@ where secondaryeventhandler: *mut ::core::ffi::c_void, notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, keyvaluestore: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricCreateKeyValueStoreReplica3( - ::core::mem::transmute(riid), - storename.into(), + riid, + storename.into_param().abi(), ::core::mem::transmute(partitionid), replicaid, - ::core::mem::transmute(replicatorsettings), + replicatorsettings, localstorekind, - ::core::mem::transmute(localstoresettings), - storeeventhandler.into().abi(), - secondaryeventhandler.into().abi(), + localstoresettings, + storeeventhandler.into_param().abi(), + secondaryeventhandler.into_param().abi(), notificationmode, - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn FabricCreateKeyValueStoreReplica4<'a, P0, P1, P2>( - riid: *const ::windows::core::GUID, +pub unsafe fn FabricCreateKeyValueStoreReplica4( + riid: *const ::windows_core::GUID, storename: P0, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, servicename: *const u16, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, @@ -263,18 +275,18 @@ pub unsafe fn FabricCreateKeyValueStoreReplica4<'a, P0, P1, P2>( storeeventhandler: P1, secondaryeventhandler: P2, notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStoreEventHandler>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricSecondaryEventHandler>>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricCreateKeyValueStoreReplica4( - riid: *const ::windows::core::GUID, - storename: ::windows::core::PCWSTR, - partitionid: ::windows::core::GUID, + pub fn FabricCreateKeyValueStoreReplica4( + riid: *const ::windows_core::GUID, + storename: ::windows_core::PCWSTR, + partitionid: ::windows_core::GUID, replicaid: i64, servicename: *const u16, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, @@ -284,30 +296,32 @@ where secondaryeventhandler: *mut ::core::ffi::c_void, notificationmode: super::super::FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, keyvaluestore: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricCreateKeyValueStoreReplica4( - ::core::mem::transmute(riid), - storename.into(), + riid, + storename.into_param().abi(), ::core::mem::transmute(partitionid), replicaid, - ::core::mem::transmute(servicename), - ::core::mem::transmute(replicatorsettings), + servicename, + replicatorsettings, localstorekind, - ::core::mem::transmute(localstoresettings), - storeeventhandler.into().abi(), - secondaryeventhandler.into().abi(), + localstoresettings, + storeeventhandler.into_param().abi(), + secondaryeventhandler.into_param().abi(), notificationmode, - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] #[inline] -pub unsafe fn FabricCreateKeyValueStoreReplica5<'a, P0, P1, P2>( - riid: *const ::windows::core::GUID, +pub unsafe fn FabricCreateKeyValueStoreReplica5( + riid: *const ::windows_core::GUID, storename: P0, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, servicename: *const u16, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, @@ -316,18 +330,18 @@ pub unsafe fn FabricCreateKeyValueStoreReplica5<'a, P0, P1, P2>( localstoresettings: *const ::core::ffi::c_void, storeeventhandler: P1, secondaryeventhandler: P2, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStoreEventHandler>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricSecondaryEventHandler>>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricCreateKeyValueStoreReplica5( - riid: *const ::windows::core::GUID, - storename: ::windows::core::PCWSTR, - partitionid: ::windows::core::GUID, + pub fn FabricCreateKeyValueStoreReplica5( + riid: *const ::windows_core::GUID, + storename: ::windows_core::PCWSTR, + partitionid: ::windows_core::GUID, replicaid: i64, servicename: *const u16, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, @@ -337,363 +351,338 @@ where storeeventhandler: *mut ::core::ffi::c_void, secondaryeventhandler: *mut ::core::ffi::c_void, keyvaluestore: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricCreateKeyValueStoreReplica5( - ::core::mem::transmute(riid), - storename.into(), + riid, + storename.into_param().abi(), ::core::mem::transmute(partitionid), replicaid, - ::core::mem::transmute(servicename), - ::core::mem::transmute(replicatorsettings), - ::core::mem::transmute(kvssettings), + servicename, + replicatorsettings, + kvssettings, localstorekind, - ::core::mem::transmute(localstoresettings), - storeeventhandler.into().abi(), - secondaryeventhandler.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + localstoresettings, + storeeventhandler.into_param().abi(), + secondaryeventhandler.into_param().abi(), + &mut result__, ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] pub unsafe fn FabricCreateRuntime( - riid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> { + riid: *const ::windows_core::GUID, +) -> ::windows_core::Result<*mut ::core::ffi::c_void> { #[link(name = "fabricruntime")] extern "system" { - fn FabricCreateRuntime( - riid: *const ::windows::core::GUID, + pub fn FabricCreateRuntime( + riid: *const ::windows_core::GUID, fabricruntime: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricCreateRuntime( - ::core::mem::transmute(riid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + let mut result__ = ::std::mem::zeroed(); + FabricCreateRuntime(riid, &mut result__).from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] -pub unsafe fn FabricEndCreateRuntime<'a, P0>( +pub unsafe fn FabricEndCreateRuntime( context: P0, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricEndCreateRuntime( + pub fn FabricEndCreateRuntime( context: *mut ::core::ffi::c_void, fabricruntime: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricEndCreateRuntime( - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + let mut result__ = ::std::mem::zeroed(); + FabricEndCreateRuntime(context.into_param().abi(), &mut result__).from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] -pub unsafe fn FabricEndGetActivationContext<'a, P0>( +pub unsafe fn FabricEndGetActivationContext( context: P0, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricEndGetActivationContext( + pub fn FabricEndGetActivationContext( context: *mut ::core::ffi::c_void, activationcontext: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricEndGetActivationContext( - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + let mut result__ = ::std::mem::zeroed(); + FabricEndGetActivationContext(context.into_param().abi(), &mut result__).from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] -pub unsafe fn FabricEndGetCodePackageActivator<'a, P0>( +pub unsafe fn FabricEndGetCodePackageActivator( context: P0, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricEndGetCodePackageActivator( + pub fn FabricEndGetCodePackageActivator( context: *mut ::core::ffi::c_void, activator: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricEndGetCodePackageActivator( - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + let mut result__ = ::std::mem::zeroed(); + FabricEndGetCodePackageActivator(context.into_param().abi(), &mut result__).from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] -pub unsafe fn FabricEndGetNodeContext<'a, P0>( +pub unsafe fn FabricEndGetNodeContext( context: P0, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> +) -> ::windows_core::Result<*mut ::core::ffi::c_void> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { #[link(name = "fabricruntime")] extern "system" { - fn FabricEndGetNodeContext( + pub fn FabricEndGetNodeContext( context: *mut ::core::ffi::c_void, nodecontext: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricEndGetNodeContext( - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + let mut result__ = ::std::mem::zeroed(); + FabricEndGetNodeContext(context.into_param().abi(), &mut result__).from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] pub unsafe fn FabricGetActivationContext( - riid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> { + riid: *const ::windows_core::GUID, +) -> ::windows_core::Result<*mut ::core::ffi::c_void> { #[link(name = "fabricruntime")] extern "system" { - fn FabricGetActivationContext( - riid: *const ::windows::core::GUID, + pub fn FabricGetActivationContext( + riid: *const ::windows_core::GUID, activationcontext: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricGetActivationContext( - ::core::mem::transmute(riid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + let mut result__ = ::std::mem::zeroed(); + FabricGetActivationContext(riid, &mut result__).from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] pub unsafe fn FabricGetCodePackageActivator( - riid: *const ::windows::core::GUID, -) -> ::windows::core::Result<*mut ::core::ffi::c_void> { + riid: *const ::windows_core::GUID, +) -> ::windows_core::Result<*mut ::core::ffi::c_void> { #[link(name = "fabricruntime")] extern "system" { - fn FabricGetCodePackageActivator( - riid: *const ::windows::core::GUID, + pub fn FabricGetCodePackageActivator( + riid: *const ::windows_core::GUID, activator: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricGetCodePackageActivator( - ::core::mem::transmute(riid), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut ::core::ffi::c_void>(result__) + let mut result__ = ::std::mem::zeroed(); + FabricGetCodePackageActivator(riid, &mut result__).from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] -pub unsafe fn FabricGetNodeContext() -> ::windows::core::Result<*mut ::core::ffi::c_void> { +pub unsafe fn FabricGetNodeContext() -> ::windows_core::Result<*mut ::core::ffi::c_void> { #[link(name = "fabricruntime")] extern "system" { - fn FabricGetNodeContext( + pub fn FabricGetNodeContext( nodecontext: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - FabricGetNodeContext(::core::mem::transmute(result__.as_mut_ptr())) - .from_abi::<*mut ::core::ffi::c_void>(result__) + let mut result__ = ::std::mem::zeroed(); + FabricGetNodeContext(&mut result__).from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] -pub unsafe fn FabricLoadEseLocalStoreSettings<'a, P0, P1, P2>( +pub unsafe fn FabricLoadEseLocalStoreSettings( codepackageactivationcontext: P0, configurationpackagename: P1, sectionname: P2, -) -> ::windows::core::Result +) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { #[link(name = "fabricruntime")] extern "system" { - fn FabricLoadEseLocalStoreSettings( + pub fn FabricLoadEseLocalStoreSettings( codepackageactivationcontext: *mut ::core::ffi::c_void, - configurationpackagename: ::windows::core::PCWSTR, - sectionname: ::windows::core::PCWSTR, + configurationpackagename: ::windows_core::PCWSTR, + sectionname: ::windows_core::PCWSTR, settings: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricLoadEseLocalStoreSettings( - codepackageactivationcontext.into().abi(), - configurationpackagename.into(), - sectionname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + codepackageactivationcontext.into_param().abi(), + configurationpackagename.into_param().abi(), + sectionname.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] -pub unsafe fn FabricLoadReplicatorSettings<'a, P0, P1, P2>( +pub unsafe fn FabricLoadReplicatorSettings( codepackageactivationcontext: P0, configurationpackagename: P1, sectionname: P2, -) -> ::windows::core::Result +) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { #[link(name = "fabricruntime")] extern "system" { - fn FabricLoadReplicatorSettings( + pub fn FabricLoadReplicatorSettings( codepackageactivationcontext: *mut ::core::ffi::c_void, - configurationpackagename: ::windows::core::PCWSTR, - sectionname: ::windows::core::PCWSTR, + configurationpackagename: ::windows_core::PCWSTR, + sectionname: ::windows_core::PCWSTR, replicatorsettings: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricLoadReplicatorSettings( - codepackageactivationcontext.into().abi(), - configurationpackagename.into(), - sectionname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + codepackageactivationcontext.into_param().abi(), + configurationpackagename.into_param().abi(), + sectionname.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[inline] -pub unsafe fn FabricLoadSecurityCredentials<'a, P0, P1, P2>( +pub unsafe fn FabricLoadSecurityCredentials( codepackageactivationcontext: P0, configurationpackagename: P1, sectionname: P2, -) -> ::windows::core::Result +) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows_core::PCWSTR>, { #[link(name = "fabricruntime")] extern "system" { - fn FabricLoadSecurityCredentials( + pub fn FabricLoadSecurityCredentials( codepackageactivationcontext: *mut ::core::ffi::c_void, - configurationpackagename: ::windows::core::PCWSTR, - sectionname: ::windows::core::PCWSTR, + configurationpackagename: ::windows_core::PCWSTR, + sectionname: ::windows_core::PCWSTR, securitycredentials: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); FabricLoadSecurityCredentials( - codepackageactivationcontext.into().abi(), - configurationpackagename.into(), - sectionname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + codepackageactivationcontext.into_param().abi(), + configurationpackagename.into_param().abi(), + sectionname.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricAtomicGroupStateProvider(::windows::core::IUnknown); +pub struct IFabricAtomicGroupStateProvider(::windows_core::IUnknown); impl IFabricAtomicGroupStateProvider { - pub unsafe fn BeginAtomicGroupCommit<'a, P0>( + pub unsafe fn BeginAtomicGroupCommit( &self, atomicgroupid: i64, commitsequencenumber: i64, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginAtomicGroupCommit)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginAtomicGroupCommit)( + ::windows_core::Interface::as_raw(self), atomicgroupid, commitsequencenumber, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndAtomicGroupCommit<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndAtomicGroupCommit(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndAtomicGroupCommit)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndAtomicGroupCommit)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginAtomicGroupRollback<'a, P0>( + pub unsafe fn BeginAtomicGroupRollback( &self, atomicgroupid: i64, rollbackequencenumber: i64, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginAtomicGroupRollback)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginAtomicGroupRollback)( + ::windows_core::Interface::as_raw(self), atomicgroupid, rollbackequencenumber, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndAtomicGroupRollback<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndAtomicGroupRollback(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndAtomicGroupRollback)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndAtomicGroupRollback)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUndoProgress<'a, P0>( + pub unsafe fn BeginUndoProgress( &self, fromcommitsequencenumber: i64, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUndoProgress)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUndoProgress)( + ::windows_core::Interface::as_raw(self), fromcommitsequencenumber, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUndoProgress<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUndoProgress(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUndoProgress)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUndoProgress)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!(IFabricAtomicGroupStateProvider, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricAtomicGroupStateProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricAtomicGroupStateProvider, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricAtomicGroupStateProvider { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -707,179 +696,177 @@ impl ::core::fmt::Debug for IFabricAtomicGroupStateProvider { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricAtomicGroupStateProvider { +unsafe impl ::windows_core::Interface for IFabricAtomicGroupStateProvider { type Vtable = IFabricAtomicGroupStateProvider_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricAtomicGroupStateProvider { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2b670953_6148_4f7d_a920_b390de43d913); +impl ::core::clone::Clone for IFabricAtomicGroupStateProvider { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricAtomicGroupStateProvider { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2b670953_6148_4f7d_a920_b390de43d913); } #[repr(C)] #[doc(hidden)] pub struct IFabricAtomicGroupStateProvider_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginAtomicGroupCommit: unsafe extern "system" fn( 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, + ) -> ::windows_core::HRESULT, pub EndAtomicGroupCommit: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginAtomicGroupRollback: unsafe extern "system" fn( 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, + ) -> ::windows_core::HRESULT, pub EndAtomicGroupRollback: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginUndoProgress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, fromcommitsequencenumber: i64, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndUndoProgress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricAtomicGroupStateReplicator(::windows::core::IUnknown); +pub struct IFabricAtomicGroupStateReplicator(::windows_core::IUnknown); impl IFabricAtomicGroupStateReplicator { - pub unsafe fn CreateAtomicGroup(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CreateAtomicGroup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn CreateAtomicGroup(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CreateAtomicGroup)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginReplicateAtomicGroupOperation<'a, P0, P1>( + pub unsafe fn BeginReplicateAtomicGroupOperation( &self, atomicgroupid: i64, operationdata: P0, callback: P1, operationsequencenumber: *mut i64, context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricOperationData>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).BeginReplicateAtomicGroupOperation)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).BeginReplicateAtomicGroupOperation)( + ::windows_core::Interface::as_raw(self), atomicgroupid, - operationdata.into().abi(), - callback.into().abi(), - ::core::mem::transmute(operationsequencenumber), + operationdata.into_param().abi(), + callback.into_param().abi(), + operationsequencenumber, ::core::mem::transmute(context), ) .ok() } - pub unsafe fn EndReplicateAtomicGroupOperation<'a, P0>( + pub unsafe fn EndReplicateAtomicGroupOperation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndReplicateAtomicGroupOperation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndReplicateAtomicGroupOperation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginReplicateAtomicGroupCommit<'a, P0>( + pub unsafe fn BeginReplicateAtomicGroupCommit( &self, atomicgroupid: i64, callback: P0, commitsequencenumber: *mut i64, context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).BeginReplicateAtomicGroupCommit)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).BeginReplicateAtomicGroupCommit)( + ::windows_core::Interface::as_raw(self), atomicgroupid, - callback.into().abi(), - ::core::mem::transmute(commitsequencenumber), + callback.into_param().abi(), + commitsequencenumber, ::core::mem::transmute(context), ) .ok() } - pub unsafe fn EndReplicateAtomicGroupCommit<'a, P0>( + pub unsafe fn EndReplicateAtomicGroupCommit( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndReplicateAtomicGroupCommit)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndReplicateAtomicGroupCommit)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginReplicateAtomicGroupRollback<'a, P0>( + pub unsafe fn BeginReplicateAtomicGroupRollback( &self, atomicgroupid: i64, callback: P0, rollbacksequencenumber: *mut i64, context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).BeginReplicateAtomicGroupRollback)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).BeginReplicateAtomicGroupRollback)( + ::windows_core::Interface::as_raw(self), atomicgroupid, - callback.into().abi(), - ::core::mem::transmute(rollbacksequencenumber), + callback.into_param().abi(), + rollbacksequencenumber, ::core::mem::transmute(context), ) .ok() } - pub unsafe fn EndReplicateAtomicGroupRollback<'a, P0>( + pub unsafe fn EndReplicateAtomicGroupRollback( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndReplicateAtomicGroupRollback)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndReplicateAtomicGroupRollback)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricAtomicGroupStateReplicator, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricAtomicGroupStateReplicator { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!( + IFabricAtomicGroupStateReplicator, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricAtomicGroupStateReplicator { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -893,21 +880,26 @@ impl ::core::fmt::Debug for IFabricAtomicGroupStateReplicator { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricAtomicGroupStateReplicator { +unsafe impl ::windows_core::Interface for IFabricAtomicGroupStateReplicator { type Vtable = IFabricAtomicGroupStateReplicator_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricAtomicGroupStateReplicator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x80d2155c_4fc2_4fde_9696_c2f39b471c3d); +impl ::core::clone::Clone for IFabricAtomicGroupStateReplicator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricAtomicGroupStateReplicator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x80d2155c_4fc2_4fde_9696_c2f39b471c3d); } #[repr(C)] #[doc(hidden)] pub struct IFabricAtomicGroupStateReplicator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub CreateAtomicGroup: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, atomicgroupid: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginReplicateAtomicGroupOperation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, atomicgroupid: i64, @@ -916,25 +908,24 @@ pub struct IFabricAtomicGroupStateReplicator_Vtbl { operationsequencenumber: *mut i64, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub EndReplicateAtomicGroupOperation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, operationsequencenumber: *mut i64, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginReplicateAtomicGroupCommit: unsafe extern "system" fn( 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, + ) -> ::windows_core::HRESULT, pub EndReplicateAtomicGroupCommit: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginReplicateAtomicGroupRollback: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, atomicgroupid: i64, @@ -942,31 +933,29 @@ pub struct IFabricAtomicGroupStateReplicator_Vtbl { rollbacksequencenumber: *mut i64, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub EndReplicateAtomicGroupRollback: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, rollbacksequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricCodePackage(::windows::core::IUnknown); +pub struct IFabricCodePackage(::windows_core::IUnknown); impl IFabricCodePackage { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_Description(&self) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_Description)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn get_Path(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_Path)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Description)( + ::windows_core::Interface::as_raw(self), + ) } -} -::windows::core::interface_hierarchy!(IFabricCodePackage, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricCodePackage { - fn clone(&self) -> Self { - Self(self.0.clone()) + pub unsafe fn get_Path(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_Path)(::windows_core::Interface::as_raw(self)) } } +::windows_core::imp::interface_hierarchy!(IFabricCodePackage, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricCodePackage { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -978,62 +967,68 @@ impl ::core::fmt::Debug for IFabricCodePackage { f.debug_tuple("IFabricCodePackage").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricCodePackage { +unsafe impl ::windows_core::Interface for IFabricCodePackage { type Vtable = IFabricCodePackage_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricCodePackage { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x20792b45_4d13_41a4_af13_346e529f00c5); +impl ::core::clone::Clone for IFabricCodePackage { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricCodePackage { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x20792b45_4d13_41a4_af13_346e529f00c5); } #[repr(C)] #[doc(hidden)] pub struct IFabricCodePackage_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_Description: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION, + #[cfg(not(feature = "Win32_Foundation"))] + get_Description: usize, pub get_Path: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricCodePackage2(::windows::core::IUnknown); +pub struct IFabricCodePackage2(::windows_core::IUnknown); impl IFabricCodePackage2 { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_Description(&self) -> *mut super::super::FABRIC_CODE_PACKAGE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).base__.get_Description)( - ::windows::core::Vtable::as_raw(self), - ) + (::windows_core::Interface::vtable(self) + .base__ + .get_Description)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_Path(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).base__.get_Path)(::windows::core::Vtable::as_raw( - self, - )) + pub unsafe fn get_Path(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).base__.get_Path)( + ::windows_core::Interface::as_raw(self), + ) } pub unsafe fn get_SetupEntryPointRunAsPolicy( &self, ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_SetupEntryPointRunAsPolicy)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_SetupEntryPointRunAsPolicy)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn get_EntryPointRunAsPolicy( &self, ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_EntryPointRunAsPolicy)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_EntryPointRunAsPolicy)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricCodePackage2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricCodePackage ); -impl ::core::clone::Clone for IFabricCodePackage2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricCodePackage2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -1045,12 +1040,17 @@ impl ::core::fmt::Debug for IFabricCodePackage2 { f.debug_tuple("IFabricCodePackage2").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricCodePackage2 { +unsafe impl ::windows_core::Interface for IFabricCodePackage2 { type Vtable = IFabricCodePackage2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricCodePackage2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcdf0a4e6_ad80_4cd6_b67e_e4c002428600); +impl ::core::clone::Clone for IFabricCodePackage2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricCodePackage2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcdf0a4e6_ad80_4cd6_b67e_e4c002428600); } #[repr(C)] #[doc(hidden)] @@ -1065,242 +1065,240 @@ pub struct IFabricCodePackage2_Vtbl { this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_RUNAS_POLICY_DESCRIPTION, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricCodePackageActivationContext(::windows::core::IUnknown); +pub struct IFabricCodePackageActivationContext(::windows_core::IUnknown); impl IFabricCodePackageActivationContext { - pub unsafe fn get_ContextId(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_ContextId)(::windows::core::Vtable::as_raw(self)) + pub unsafe fn get_ContextId(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_ContextId)(::windows_core::Interface::as_raw( + self, + )) } - pub unsafe fn get_CodePackageName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_CodePackageName)( - ::windows::core::Vtable::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), ) } - pub unsafe fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_CodePackageVersion)( - ::windows::core::Vtable::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), ) } - pub unsafe fn get_WorkDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_WorkDirectory)(::windows::core::Vtable::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), + ) } - pub unsafe fn get_LogDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_LogDirectory)(::windows::core::Vtable::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), + ) } - pub unsafe fn get_TempDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_TempDirectory)(::windows::core::Vtable::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), + ) } pub unsafe fn get_ServiceTypes( &self, ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceTypes)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_ServiceTypes)( + ::windows_core::Interface::as_raw(self), + ) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ServiceGroupTypes( &self, ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceGroupTypes)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ServiceGroupTypes)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn get_ApplicationPrincipals( &self, ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_ApplicationPrincipals)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ApplicationPrincipals)( + ::windows_core::Interface::as_raw(self), ) } pub unsafe fn get_ServiceEndpointResources( &self, ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self).get_ServiceEndpointResources)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ServiceEndpointResources)( + ::windows_core::Interface::as_raw(self), ) } - pub unsafe fn GetServiceEndpointResource<'a, P0>( + pub unsafe fn GetServiceEndpointResource( &self, serviceendpointresourcename: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetServiceEndpointResource)( - ::windows::core::Vtable::as_raw(self), - serviceendpointresourcename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetServiceEndpointResource)( + ::windows_core::Interface::as_raw(self), + serviceendpointresourcename.into_param().abi(), + &mut result__, ) - .from_abi::<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>(result__) + .from_abi(result__) } pub unsafe fn GetCodePackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCodePackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCodePackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn GetConfigurationPackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetConfigurationPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetConfigurationPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn GetDataPackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetDataPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetDataPackageNames)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetCodePackage<'a, P0>( + pub unsafe fn GetCodePackage( &self, codepackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCodePackage)( - ::windows::core::Vtable::as_raw(self), - codepackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetConfigurationPackage<'a, P0>( + pub unsafe fn GetConfigurationPackage( &self, configpackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetConfigurationPackage)( - ::windows::core::Vtable::as_raw(self), - configpackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetConfigurationPackage)( + ::windows_core::Interface::as_raw(self), + configpackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetDataPackage<'a, P0>( + pub unsafe fn GetDataPackage( &self, datapackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetDataPackage)( - ::windows::core::Vtable::as_raw(self), - datapackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetDataPackage)( + ::windows_core::Interface::as_raw(self), + datapackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn RegisterCodePackageChangeHandler<'a, P0>( + pub unsafe fn RegisterCodePackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageChangeHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).RegisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).RegisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterCodePackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UnregisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UnregisterCodePackageChangeHandler)( + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn RegisterConfigurationPackageChangeHandler<'a, P0>( + pub unsafe fn RegisterConfigurationPackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricConfigurationPackageChangeHandler>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).RegisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).RegisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterConfigurationPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UnregisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UnregisterConfigurationPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn RegisterDataPackageChangeHandler<'a, P0>( + pub unsafe fn RegisterDataPackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackageChangeHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).RegisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).RegisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterDataPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UnregisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UnregisterDataPackageChangeHandler)( + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricCodePackageActivationContext, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricCodePackageActivationContext { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -1314,39 +1312,47 @@ impl ::core::fmt::Debug for IFabricCodePackageActivationContext { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivationContext { +unsafe impl ::windows_core::Interface for IFabricCodePackageActivationContext { type Vtable = IFabricCodePackageActivationContext_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricCodePackageActivationContext { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x68a971e2_f15f_4d95_a79c_8a257909659e); +impl ::core::clone::Clone for IFabricCodePackageActivationContext { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivationContext { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x68a971e2_f15f_4d95_a79c_8a257909659e); } #[repr(C)] #[doc(hidden)] pub struct IFabricCodePackageActivationContext_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ContextId: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub get_CodePackageName: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub get_CodePackageVersion: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub get_WorkDirectory: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub get_LogDirectory: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub get_TempDirectory: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub get_ServiceTypes: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST, + #[cfg(feature = "Win32_Foundation")] pub get_ServiceGroupTypes: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST, + #[cfg(not(feature = "Win32_Foundation"))] + get_ServiceGroupTypes: usize, pub get_ApplicationPrincipals: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, @@ -1359,361 +1365,352 @@ pub struct IFabricCodePackageActivationContext_Vtbl { -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST, pub GetServiceEndpointResource: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - serviceendpointresourcename: ::windows::core::PCWSTR, + serviceendpointresourcename: ::windows_core::PCWSTR, bufferedvalue: *mut *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetCodePackageNames: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, names: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetConfigurationPackageNames: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, names: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetDataPackageNames: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, names: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetCodePackage: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - codepackagename: ::windows::core::PCWSTR, + codepackagename: ::windows_core::PCWSTR, codepackage: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetConfigurationPackage: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - configpackagename: ::windows::core::PCWSTR, + configpackagename: ::windows_core::PCWSTR, configpackage: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetDataPackage: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - datapackagename: ::windows::core::PCWSTR, + datapackagename: ::windows_core::PCWSTR, datapackage: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub RegisterCodePackageChangeHandler: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, callbackhandle: *mut i64, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub UnregisterCodePackageChangeHandler: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callbackhandle: i64, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub RegisterConfigurationPackageChangeHandler: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, callbackhandle: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub UnregisterConfigurationPackageChangeHandler: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callbackhandle: i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub RegisterDataPackageChangeHandler: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, callbackhandle: *mut i64, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub UnregisterDataPackageChangeHandler: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callbackhandle: i64, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricCodePackageActivationContext2(::windows::core::IUnknown); +pub struct IFabricCodePackageActivationContext2(::windows_core::IUnknown); impl IFabricCodePackageActivationContext2 { - pub unsafe fn get_ContextId(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).base__.get_ContextId)( - ::windows::core::Vtable::as_raw(self), + pub unsafe fn get_ContextId(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).base__.get_ContextId)( + ::windows_core::Interface::as_raw(self), ) } - pub unsafe fn get_CodePackageName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_CodePackageName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_CodePackageName)(::windows::core::Vtable::as_raw(self)) + .get_CodePackageName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_CodePackageVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_CodePackageVersion)(::windows::core::Vtable::as_raw(self)) + .get_CodePackageVersion)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_WorkDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_WorkDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_WorkDirectory)(::windows::core::Vtable::as_raw(self)) + .get_WorkDirectory)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_LogDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_LogDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_LogDirectory)(::windows::core::Vtable::as_raw(self)) + .get_LogDirectory)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_TempDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_TempDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_TempDirectory)(::windows::core::Vtable::as_raw(self)) + .get_TempDirectory)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ServiceTypes( &self, ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_ServiceTypes)(::windows::core::Vtable::as_raw(self)) + .get_ServiceTypes)(::windows_core::Interface::as_raw(self)) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ServiceGroupTypes( &self, ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_ServiceGroupTypes)(::windows::core::Vtable::as_raw(self)) + .get_ServiceGroupTypes)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ApplicationPrincipals( &self, ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_ApplicationPrincipals)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationPrincipals)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ServiceEndpointResources( &self, ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_ServiceEndpointResources)(::windows::core::Vtable::as_raw(self)) + .get_ServiceEndpointResources)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn GetServiceEndpointResource<'a, P0>( + pub unsafe fn GetServiceEndpointResource( &self, serviceendpointresourcename: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .GetServiceEndpointResource)( - ::windows::core::Vtable::as_raw(self), - serviceendpointresourcename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + serviceendpointresourcename.into_param().abi(), + &mut result__, ) - .from_abi::<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>(result__) + .from_abi(result__) } pub unsafe fn GetCodePackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ - .GetCodePackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetCodePackageNames)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetConfigurationPackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .GetConfigurationPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), &mut result__ ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn GetDataPackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ - .GetDataPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetDataPackageNames)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn GetCodePackage<'a, P0>( + pub unsafe fn GetCodePackage( &self, codepackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetCodePackage)( - ::windows::core::Vtable::as_raw(self), - codepackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetConfigurationPackage<'a, P0>( + pub unsafe fn GetConfigurationPackage( &self, configpackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .GetConfigurationPackage)( - ::windows::core::Vtable::as_raw(self), - configpackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + configpackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetDataPackage<'a, P0>( + pub unsafe fn GetDataPackage( &self, datapackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetDataPackage)( - ::windows::core::Vtable::as_raw(self), - datapackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetDataPackage)( + ::windows_core::Interface::as_raw(self), + datapackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn RegisterCodePackageChangeHandler<'a, P0>( + pub unsafe fn RegisterCodePackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageChangeHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .RegisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterCodePackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .UnregisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn RegisterConfigurationPackageChangeHandler<'a, P0>( + pub unsafe fn RegisterConfigurationPackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricConfigurationPackageChangeHandler>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .RegisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterConfigurationPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .UnregisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn RegisterDataPackageChangeHandler<'a, P0>( + pub unsafe fn RegisterDataPackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackageChangeHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .RegisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterDataPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .UnregisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self).get_ApplicationName)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ApplicationName)( + ::windows_core::Interface::as_raw(self), ) } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_ApplicationTypeName)( - ::windows::core::Vtable::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( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetServiceManifestName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetServiceManifestName)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn GetServiceManifestVersion( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetServiceManifestVersion)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetServiceManifestVersion)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricCodePackageActivationContext2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricCodePackageActivationContext ); -impl ::core::clone::Clone for IFabricCodePackageActivationContext2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -1727,12 +1724,17 @@ impl ::core::fmt::Debug for IFabricCodePackageActivationContext2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivationContext2 { +unsafe impl ::windows_core::Interface for IFabricCodePackageActivationContext2 { type Vtable = IFabricCodePackageActivationContext2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricCodePackageActivationContext2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6c83d5c1_1954_4b80_9175_0d0e7c8715c9); +impl ::core::clone::Clone for IFabricCodePackageActivationContext2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivationContext2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6c83d5c1_1954_4b80_9175_0d0e7c8715c9); } #[repr(C)] #[doc(hidden)] @@ -1740,369 +1742,360 @@ pub struct IFabricCodePackageActivationContext2_Vtbl { pub base__: IFabricCodePackageActivationContext_Vtbl, pub get_ApplicationName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut u16, pub get_ApplicationTypeName: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub GetServiceManifestName: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, servicemanifestname: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetServiceManifestVersion: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, servicemanifestversion: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricCodePackageActivationContext3(::windows::core::IUnknown); +pub struct IFabricCodePackageActivationContext3(::windows_core::IUnknown); impl IFabricCodePackageActivationContext3 { - pub unsafe fn get_ContextId(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_ContextId(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_ContextId)(::windows::core::Vtable::as_raw(self)) + .get_ContextId)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_CodePackageName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_CodePackageName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_CodePackageName)(::windows::core::Vtable::as_raw(self)) + .get_CodePackageName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_CodePackageVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_CodePackageVersion)(::windows::core::Vtable::as_raw(self)) + .get_CodePackageVersion)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_WorkDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_WorkDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_WorkDirectory)(::windows::core::Vtable::as_raw(self)) + .get_WorkDirectory)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_LogDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_LogDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_LogDirectory)(::windows::core::Vtable::as_raw(self)) + .get_LogDirectory)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_TempDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_TempDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_TempDirectory)(::windows::core::Vtable::as_raw(self)) + .get_TempDirectory)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ServiceTypes( &self, ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_ServiceTypes)(::windows::core::Vtable::as_raw(self)) + .get_ServiceTypes)(::windows_core::Interface::as_raw(self)) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ServiceGroupTypes( &self, ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_ServiceGroupTypes)(::windows::core::Vtable::as_raw(self)) + .get_ServiceGroupTypes)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ApplicationPrincipals( &self, ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_ApplicationPrincipals)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationPrincipals)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ServiceEndpointResources( &self, ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_ServiceEndpointResources)(::windows::core::Vtable::as_raw(self)) + .get_ServiceEndpointResources)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn GetServiceEndpointResource<'a, P0>( + pub unsafe fn GetServiceEndpointResource( &self, serviceendpointresourcename: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .GetServiceEndpointResource)( - ::windows::core::Vtable::as_raw(self), - serviceendpointresourcename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + serviceendpointresourcename.into_param().abi(), + &mut result__, ) - .from_abi::<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>(result__) + .from_abi(result__) } pub unsafe fn GetCodePackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ - .GetCodePackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetCodePackageNames)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetConfigurationPackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .GetConfigurationPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), &mut result__ ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn GetDataPackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ - .GetDataPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetDataPackageNames)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn GetCodePackage<'a, P0>( + pub unsafe fn GetCodePackage( &self, codepackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .GetCodePackage)( - ::windows::core::Vtable::as_raw(self), - codepackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + codepackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetConfigurationPackage<'a, P0>( + pub unsafe fn GetConfigurationPackage( &self, configpackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .GetConfigurationPackage)( - ::windows::core::Vtable::as_raw(self), - configpackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + configpackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetDataPackage<'a, P0>( + pub unsafe fn GetDataPackage( &self, datapackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .GetDataPackage)( - ::windows::core::Vtable::as_raw(self), - datapackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + datapackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn RegisterCodePackageChangeHandler<'a, P0>( + pub unsafe fn RegisterCodePackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageChangeHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .RegisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterCodePackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .UnregisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn RegisterConfigurationPackageChangeHandler<'a, P0>( + pub unsafe fn RegisterConfigurationPackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricConfigurationPackageChangeHandler>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .RegisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterConfigurationPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .UnregisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn RegisterDataPackageChangeHandler<'a, P0>( + pub unsafe fn RegisterDataPackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackageChangeHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .RegisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterDataPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .UnregisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_ApplicationName)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_ApplicationTypeName)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationTypeName)(::windows_core::Interface::as_raw(self)) } pub unsafe fn GetServiceManifestName( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ - .GetServiceManifestName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetServiceManifestName)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetServiceManifestVersion( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .GetServiceManifestVersion)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), &mut result__ ) - .from_abi::(result__) + .from_abi(result__) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportApplicationHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportApplicationHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedApplicationHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportDeployedApplicationHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedServicePackageHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportDeployedServicePackageHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricCodePackageActivationContext3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricCodePackageActivationContext, IFabricCodePackageActivationContext2 ); -impl ::core::clone::Clone for IFabricCodePackageActivationContext3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -2116,454 +2109,461 @@ impl ::core::fmt::Debug for IFabricCodePackageActivationContext3 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivationContext3 { +unsafe impl ::windows_core::Interface for IFabricCodePackageActivationContext3 { type Vtable = IFabricCodePackageActivationContext3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricCodePackageActivationContext3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6efee900_f491_4b03_bc5b_3a70de103593); +impl ::core::clone::Clone for IFabricCodePackageActivationContext3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivationContext3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6efee900_f491_4b03_bc5b_3a70de103593); } #[repr(C)] #[doc(hidden)] pub struct IFabricCodePackageActivationContext3_Vtbl { pub base__: IFabricCodePackageActivationContext2_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub ReportApplicationHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportApplicationHealth: usize, + #[cfg(feature = "Win32_Foundation")] pub ReportDeployedApplicationHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportDeployedApplicationHealth: usize, + #[cfg(feature = "Win32_Foundation")] pub ReportDeployedServicePackageHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportDeployedServicePackageHealth: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricCodePackageActivationContext4(::windows::core::IUnknown); +pub struct IFabricCodePackageActivationContext4(::windows_core::IUnknown); impl IFabricCodePackageActivationContext4 { - pub unsafe fn get_ContextId(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_ContextId(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .get_ContextId)(::windows::core::Vtable::as_raw(self)) + .get_ContextId)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_CodePackageName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_CodePackageName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .get_CodePackageName)(::windows::core::Vtable::as_raw(self)) + .get_CodePackageName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_CodePackageVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .get_CodePackageVersion)(::windows::core::Vtable::as_raw(self)) + .get_CodePackageVersion)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_WorkDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_WorkDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .get_WorkDirectory)(::windows::core::Vtable::as_raw(self)) + .get_WorkDirectory)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_LogDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_LogDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .get_LogDirectory)(::windows::core::Vtable::as_raw(self)) + .get_LogDirectory)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_TempDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_TempDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .get_TempDirectory)(::windows::core::Vtable::as_raw(self)) + .get_TempDirectory)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ServiceTypes( &self, ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .get_ServiceTypes)(::windows::core::Vtable::as_raw(self)) + .get_ServiceTypes)(::windows_core::Interface::as_raw(self)) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ServiceGroupTypes( &self, ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .get_ServiceGroupTypes)(::windows::core::Vtable::as_raw(self)) + .get_ServiceGroupTypes)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ApplicationPrincipals( &self, ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .get_ApplicationPrincipals)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationPrincipals)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ServiceEndpointResources( &self, ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .get_ServiceEndpointResources)(::windows::core::Vtable::as_raw(self)) + .get_ServiceEndpointResources)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn GetServiceEndpointResource<'a, P0>( + pub unsafe fn GetServiceEndpointResource( &self, serviceendpointresourcename: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .GetServiceEndpointResource)( - ::windows::core::Vtable::as_raw(self), - serviceendpointresourcename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + serviceendpointresourcename.into_param().abi(), + &mut result__, ) - .from_abi::<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>(result__) + .from_abi(result__) } pub unsafe fn GetCodePackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .GetCodePackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetCodePackageNames)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetConfigurationPackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .GetConfigurationPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), &mut result__ ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn GetDataPackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .GetDataPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetDataPackageNames)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn GetCodePackage<'a, P0>( + pub unsafe fn GetCodePackage( &self, codepackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .GetCodePackage)( - ::windows::core::Vtable::as_raw(self), - codepackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + codepackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetConfigurationPackage<'a, P0>( + pub unsafe fn GetConfigurationPackage( &self, configpackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .GetConfigurationPackage)( - ::windows::core::Vtable::as_raw(self), - configpackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + configpackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetDataPackage<'a, P0>( + pub unsafe fn GetDataPackage( &self, datapackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .GetDataPackage)( - ::windows::core::Vtable::as_raw(self), - datapackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + datapackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn RegisterCodePackageChangeHandler<'a, P0>( + pub unsafe fn RegisterCodePackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageChangeHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .RegisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterCodePackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .UnregisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn RegisterConfigurationPackageChangeHandler<'a, P0>( + pub unsafe fn RegisterConfigurationPackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricConfigurationPackageChangeHandler>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .RegisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterConfigurationPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .UnregisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn RegisterDataPackageChangeHandler<'a, P0>( + pub unsafe fn RegisterDataPackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackageChangeHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .RegisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterDataPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .UnregisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_ApplicationName)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ - .get_ApplicationTypeName)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationTypeName)(::windows_core::Interface::as_raw(self)) } pub unsafe fn GetServiceManifestName( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ - .GetServiceManifestName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetServiceManifestName)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetServiceManifestVersion( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .GetServiceManifestVersion)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), &mut result__ ) - .from_abi::(result__) + .from_abi(result__) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportApplicationHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ - .ReportApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) + .ReportApplicationHealth)(::windows_core::Interface::as_raw(self), healthinfo) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedApplicationHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .ReportDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ::windows_core::Interface::as_raw(self), healthinfo ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedServicePackageHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .ReportDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ::windows_core::Interface::as_raw(self), + healthinfo, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportApplicationHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedApplicationHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportDeployedApplicationHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedServicePackageHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportDeployedServicePackageHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricCodePackageActivationContext4, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricCodePackageActivationContext, IFabricCodePackageActivationContext2, IFabricCodePackageActivationContext3 ); -impl ::core::clone::Clone for IFabricCodePackageActivationContext4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext4 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -2577,505 +2577,511 @@ impl ::core::fmt::Debug for IFabricCodePackageActivationContext4 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivationContext4 { +unsafe impl ::windows_core::Interface for IFabricCodePackageActivationContext4 { type Vtable = IFabricCodePackageActivationContext4_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricCodePackageActivationContext4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x99efebb6_a7b4_4d45_b45e_f191a66eef03); +impl ::core::clone::Clone for IFabricCodePackageActivationContext4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivationContext4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x99efebb6_a7b4_4d45_b45e_f191a66eef03); } #[repr(C)] #[doc(hidden)] pub struct IFabricCodePackageActivationContext4_Vtbl { pub base__: IFabricCodePackageActivationContext3_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub ReportApplicationHealth2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportApplicationHealth2: usize, + #[cfg(feature = "Win32_Foundation")] pub ReportDeployedApplicationHealth2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportDeployedApplicationHealth2: usize, + #[cfg(feature = "Win32_Foundation")] pub ReportDeployedServicePackageHealth2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportDeployedServicePackageHealth2: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricCodePackageActivationContext5(::windows::core::IUnknown); +pub struct IFabricCodePackageActivationContext5(::windows_core::IUnknown); impl IFabricCodePackageActivationContext5 { - pub unsafe fn get_ContextId(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_ContextId(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .get_ContextId)(::windows::core::Vtable::as_raw(self)) + .get_ContextId)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_CodePackageName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_CodePackageName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .get_CodePackageName)(::windows::core::Vtable::as_raw(self)) + .get_CodePackageName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_CodePackageVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .get_CodePackageVersion)(::windows::core::Vtable::as_raw(self)) + .get_CodePackageVersion)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_WorkDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_WorkDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .get_WorkDirectory)(::windows::core::Vtable::as_raw(self)) + .get_WorkDirectory)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_LogDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_LogDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .get_LogDirectory)(::windows::core::Vtable::as_raw(self)) + .get_LogDirectory)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_TempDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_TempDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .get_TempDirectory)(::windows::core::Vtable::as_raw(self)) + .get_TempDirectory)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ServiceTypes( &self, ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .get_ServiceTypes)(::windows::core::Vtable::as_raw(self)) + .get_ServiceTypes)(::windows_core::Interface::as_raw(self)) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ServiceGroupTypes( &self, ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .get_ServiceGroupTypes)(::windows::core::Vtable::as_raw(self)) + .get_ServiceGroupTypes)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ApplicationPrincipals( &self, ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .get_ApplicationPrincipals)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationPrincipals)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ServiceEndpointResources( &self, ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .get_ServiceEndpointResources)(::windows::core::Vtable::as_raw(self)) + .get_ServiceEndpointResources)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn GetServiceEndpointResource<'a, P0>( + pub unsafe fn GetServiceEndpointResource( &self, serviceendpointresourcename: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .GetServiceEndpointResource)( - ::windows::core::Vtable::as_raw(self), - serviceendpointresourcename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + serviceendpointresourcename.into_param().abi(), + &mut result__, ) - .from_abi::<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>(result__) + .from_abi(result__) } pub unsafe fn GetCodePackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .GetCodePackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetCodePackageNames)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetConfigurationPackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .GetConfigurationPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), &mut result__ ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn GetDataPackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .GetDataPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetDataPackageNames)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn GetCodePackage<'a, P0>( + pub unsafe fn GetCodePackage( &self, codepackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .GetCodePackage)( - ::windows::core::Vtable::as_raw(self), - codepackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + codepackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetConfigurationPackage<'a, P0>( + pub unsafe fn GetConfigurationPackage( &self, configpackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .GetConfigurationPackage)( - ::windows::core::Vtable::as_raw(self), - configpackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + configpackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetDataPackage<'a, P0>( + pub unsafe fn GetDataPackage( &self, datapackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .GetDataPackage)( - ::windows::core::Vtable::as_raw(self), - datapackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + datapackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn RegisterCodePackageChangeHandler<'a, P0>( + pub unsafe fn RegisterCodePackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageChangeHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .RegisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterCodePackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .UnregisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn RegisterConfigurationPackageChangeHandler<'a, P0>( + pub unsafe fn RegisterConfigurationPackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricConfigurationPackageChangeHandler>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .RegisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterConfigurationPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .UnregisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn RegisterDataPackageChangeHandler<'a, P0>( + pub unsafe fn RegisterDataPackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackageChangeHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .RegisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterDataPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .UnregisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .get_ApplicationName)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .get_ApplicationTypeName)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationTypeName)(::windows_core::Interface::as_raw(self)) } pub unsafe fn GetServiceManifestName( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .GetServiceManifestName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetServiceManifestName)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetServiceManifestVersion( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .GetServiceManifestVersion)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), &mut result__ ) - .from_abi::(result__) + .from_abi(result__) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportApplicationHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ - .ReportApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) + .ReportApplicationHealth)(::windows_core::Interface::as_raw(self), healthinfo) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedApplicationHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .ReportDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ::windows_core::Interface::as_raw(self), healthinfo ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedServicePackageHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .ReportDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ::windows_core::Interface::as_raw(self), + healthinfo, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportApplicationHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .ReportApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedApplicationHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .ReportDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedServicePackageHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .ReportDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } - pub unsafe fn get_ServiceListenAddress(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_ServiceListenAddress)( - ::windows::core::Vtable::as_raw(self), + 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::PWSTR { - (::windows::core::Vtable::vtable(self).get_ServicePublishAddress)( - ::windows::core::Vtable::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), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricCodePackageActivationContext5, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricCodePackageActivationContext, IFabricCodePackageActivationContext2, IFabricCodePackageActivationContext3, IFabricCodePackageActivationContext4 ); -impl ::core::clone::Clone for IFabricCodePackageActivationContext5 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext5 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -3089,541 +3095,539 @@ impl ::core::fmt::Debug for IFabricCodePackageActivationContext5 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivationContext5 { +unsafe impl ::windows_core::Interface for IFabricCodePackageActivationContext5 { type Vtable = IFabricCodePackageActivationContext5_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricCodePackageActivationContext5 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfe45387e_8711_4949_ac36_31dc95035513); +impl ::core::clone::Clone for IFabricCodePackageActivationContext5 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivationContext5 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfe45387e_8711_4949_ac36_31dc95035513); } #[repr(C)] #[doc(hidden)] pub struct IFabricCodePackageActivationContext5_Vtbl { pub base__: IFabricCodePackageActivationContext4_Vtbl, pub get_ServiceListenAddress: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, pub get_ServicePublishAddress: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricCodePackageActivationContext6(::windows::core::IUnknown); +pub struct IFabricCodePackageActivationContext6(::windows_core::IUnknown); impl IFabricCodePackageActivationContext6 { - pub unsafe fn get_ContextId(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_ContextId(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .get_ContextId)(::windows::core::Vtable::as_raw(self)) + .get_ContextId)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_CodePackageName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_CodePackageName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .get_CodePackageName)(::windows::core::Vtable::as_raw(self)) + .get_CodePackageName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_CodePackageVersion(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_CodePackageVersion(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .get_CodePackageVersion)(::windows::core::Vtable::as_raw(self)) + .get_CodePackageVersion)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_WorkDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_WorkDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .get_WorkDirectory)(::windows::core::Vtable::as_raw(self)) + .get_WorkDirectory)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_LogDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_LogDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .get_LogDirectory)(::windows::core::Vtable::as_raw(self)) + .get_LogDirectory)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_TempDirectory(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_TempDirectory(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .get_TempDirectory)(::windows::core::Vtable::as_raw(self)) + .get_TempDirectory)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ServiceTypes( &self, ) -> *mut super::super::FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .get_ServiceTypes)(::windows::core::Vtable::as_raw(self)) + .get_ServiceTypes)(::windows_core::Interface::as_raw(self)) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ServiceGroupTypes( &self, ) -> *mut super::super::FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .get_ServiceGroupTypes)(::windows::core::Vtable::as_raw(self)) + .get_ServiceGroupTypes)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ApplicationPrincipals( &self, ) -> *mut super::super::FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .get_ApplicationPrincipals)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationPrincipals)(::windows_core::Interface::as_raw(self)) } pub unsafe fn get_ServiceEndpointResources( &self, ) -> *mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .get_ServiceEndpointResources)(::windows::core::Vtable::as_raw(self)) + .get_ServiceEndpointResources)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn GetServiceEndpointResource<'a, P0>( + pub unsafe fn GetServiceEndpointResource( &self, serviceendpointresourcename: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> + ) -> ::windows_core::Result<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .GetServiceEndpointResource)( - ::windows::core::Vtable::as_raw(self), - serviceendpointresourcename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + serviceendpointresourcename.into_param().abi(), + &mut result__, ) - .from_abi::<*mut super::super::FABRIC_ENDPOINT_RESOURCE_DESCRIPTION>(result__) + .from_abi(result__) } pub unsafe fn GetCodePackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .GetCodePackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetCodePackageNames)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetConfigurationPackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .GetConfigurationPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), &mut result__ ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn GetDataPackageNames( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .GetDataPackageNames)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetDataPackageNames)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn GetCodePackage<'a, P0>( + pub unsafe fn GetCodePackage( &self, codepackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .GetCodePackage)( - ::windows::core::Vtable::as_raw(self), - codepackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + codepackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetConfigurationPackage<'a, P0>( + pub unsafe fn GetConfigurationPackage( &self, configpackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .GetConfigurationPackage)( - ::windows::core::Vtable::as_raw(self), - configpackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + configpackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetDataPackage<'a, P0>( + pub unsafe fn GetDataPackage( &self, datapackagename: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .GetDataPackage)( - ::windows::core::Vtable::as_raw(self), - datapackagename.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + datapackagename.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn RegisterCodePackageChangeHandler<'a, P0>( + pub unsafe fn RegisterCodePackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageChangeHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .RegisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterCodePackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .UnregisterCodePackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn RegisterConfigurationPackageChangeHandler<'a, P0>( + pub unsafe fn RegisterConfigurationPackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricConfigurationPackageChangeHandler>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .RegisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterConfigurationPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .UnregisterConfigurationPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } - pub unsafe fn RegisterDataPackageChangeHandler<'a, P0>( + pub unsafe fn RegisterDataPackageChangeHandler( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackageChangeHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .RegisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterDataPackageChangeHandler( &self, callbackhandle: i64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .UnregisterDataPackageChangeHandler)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } pub unsafe fn get_ApplicationName(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .get_ApplicationName)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationName)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_ApplicationTypeName(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_ApplicationTypeName(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .get_ApplicationTypeName)(::windows::core::Vtable::as_raw(self)) + .get_ApplicationTypeName)(::windows_core::Interface::as_raw(self)) } pub unsafe fn GetServiceManifestName( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .GetServiceManifestName)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetServiceManifestName)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetServiceManifestVersion( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .GetServiceManifestVersion)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), &mut result__ ) - .from_abi::(result__) + .from_abi(result__) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportApplicationHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .ReportApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) + .ReportApplicationHealth)(::windows_core::Interface::as_raw(self), healthinfo) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedApplicationHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .ReportDeployedApplicationHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ::windows_core::Interface::as_raw(self), healthinfo ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedServicePackageHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .ReportDeployedServicePackageHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ::windows_core::Interface::as_raw(self), + healthinfo, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportApplicationHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .ReportApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedApplicationHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .ReportDeployedApplicationHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportDeployedServicePackageHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .ReportDeployedServicePackageHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } - pub unsafe fn get_ServiceListenAddress(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_ServiceListenAddress(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_ServiceListenAddress)(::windows::core::Vtable::as_raw(self)) + .get_ServiceListenAddress)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_ServicePublishAddress(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self) + pub unsafe fn get_ServicePublishAddress(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self) .base__ - .get_ServicePublishAddress)(::windows::core::Vtable::as_raw(self)) + .get_ServicePublishAddress)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn GetDirectory<'a, P0>( + pub unsafe fn GetDirectory( &self, logicaldirectoryname: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetDirectory)( - ::windows::core::Vtable::as_raw(self), - logicaldirectoryname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetDirectory)( + ::windows_core::Interface::as_raw(self), + logicaldirectoryname.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricCodePackageActivationContext6, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricCodePackageActivationContext, IFabricCodePackageActivationContext2, IFabricCodePackageActivationContext3, IFabricCodePackageActivationContext4, IFabricCodePackageActivationContext5 ); -impl ::core::clone::Clone for IFabricCodePackageActivationContext6 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricCodePackageActivationContext6 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -3637,12 +3641,17 @@ impl ::core::fmt::Debug for IFabricCodePackageActivationContext6 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivationContext6 { +unsafe impl ::windows_core::Interface for IFabricCodePackageActivationContext6 { type Vtable = IFabricCodePackageActivationContext6_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricCodePackageActivationContext6 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfa5fda9b_472c_45a0_9b60_a374691227a4); +impl ::core::clone::Clone for IFabricCodePackageActivationContext6 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivationContext6 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfa5fda9b_472c_45a0_9b60_a374691227a4); } #[repr(C)] #[doc(hidden)] @@ -3650,122 +3659,111 @@ pub struct IFabricCodePackageActivationContext6_Vtbl { pub base__: IFabricCodePackageActivationContext5_Vtbl, pub GetDirectory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - logicaldirectoryname: ::windows::core::PCWSTR, + logicaldirectoryname: ::windows_core::PCWSTR, directorypath: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricCodePackageActivator(::windows::core::IUnknown); +pub struct IFabricCodePackageActivator(::windows_core::IUnknown); impl IFabricCodePackageActivator { - pub unsafe fn BeginActivateCodePackage<'a, P0>( + pub unsafe fn BeginActivateCodePackage( &self, codepackagenames: *const super::super::FABRIC_STRING_LIST, environment: *const super::super::FABRIC_STRING_MAP, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginActivateCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(codepackagenames), - ::core::mem::transmute(environment), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginActivateCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagenames, + environment, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndActivateCodePackage<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndActivateCodePackage(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndActivateCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndActivateCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginDeactivateCodePackage<'a, P0>( + pub unsafe fn BeginDeactivateCodePackage( &self, codepackagenames: *const super::super::FABRIC_STRING_LIST, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginDeactivateCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(codepackagenames), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginDeactivateCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagenames, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndDeactivateCodePackage<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn EndDeactivateCodePackage(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndDeactivateCodePackage)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndDeactivateCodePackage)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } pub unsafe fn AbortCodePackage( &self, codepackagenames: *const super::super::FABRIC_STRING_LIST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).AbortCodePackage)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(codepackagenames), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).AbortCodePackage)( + ::windows_core::Interface::as_raw(self), + codepackagenames, ) .ok() } - pub unsafe fn RegisterCodePackageEventHandler<'a, P0>( + pub unsafe fn RegisterCodePackageEventHandler( &self, eventhandler: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageEventHandler>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).RegisterCodePackageEventHandler)( - ::windows::core::Vtable::as_raw(self), - eventhandler.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).RegisterCodePackageEventHandler)( + ::windows_core::Interface::as_raw(self), + eventhandler.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UnregisterCodePackageEventHandler( &self, callbackhandle: u64, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UnregisterCodePackageEventHandler)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UnregisterCodePackageEventHandler)( + ::windows_core::Interface::as_raw(self), callbackhandle, ) .ok() } } -::windows::core::interface_hierarchy!(IFabricCodePackageActivator, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricCodePackageActivator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricCodePackageActivator, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricCodePackageActivator { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -3779,17 +3777,22 @@ impl ::core::fmt::Debug for IFabricCodePackageActivator { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricCodePackageActivator { +unsafe impl ::windows_core::Interface for IFabricCodePackageActivator { type Vtable = IFabricCodePackageActivator_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricCodePackageActivator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x70be1b10_b259_46fc_b813_0b75720e7183); +impl ::core::clone::Clone for IFabricCodePackageActivator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricCodePackageActivator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x70be1b10_b259_46fc_b813_0b75720e7183); } #[repr(C)] #[doc(hidden)] pub struct IFabricCodePackageActivator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginActivateCodePackage: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, codepackagenames: *const super::super::FABRIC_STRING_LIST, @@ -3797,86 +3800,85 @@ pub struct IFabricCodePackageActivator_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndActivateCodePackage: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginDeactivateCodePackage: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, codepackagenames: *const super::super::FABRIC_STRING_LIST, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndDeactivateCodePackage: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub AbortCodePackage: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, codepackagenames: *const super::super::FABRIC_STRING_LIST, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub RegisterCodePackageEventHandler: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, eventhandler: *mut ::core::ffi::c_void, callbackhandle: *mut u64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub UnregisterCodePackageEventHandler: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callbackhandle: u64, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricCodePackageChangeHandler(::windows::core::IUnknown); +pub struct IFabricCodePackageChangeHandler(::windows_core::IUnknown); impl IFabricCodePackageChangeHandler { - pub unsafe fn OnPackageAdded<'a, P0, P1>(&self, source: P0, codepackage: P1) + pub unsafe fn OnPackageAdded(&self, source: P0, codepackage: P1) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackage>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnPackageAdded)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - codepackage.into().abi(), + (::windows_core::Interface::vtable(self).OnPackageAdded)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + codepackage.into_param().abi(), ) } - pub unsafe fn OnPackageRemoved<'a, P0, P1>(&self, source: P0, codepackage: P1) + pub unsafe fn OnPackageRemoved(&self, source: P0, codepackage: P1) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackage>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnPackageRemoved)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - codepackage.into().abi(), + (::windows_core::Interface::vtable(self).OnPackageRemoved)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + codepackage.into_param().abi(), ) } - pub unsafe fn OnPackageModified<'a, P0, P1, P2>( + pub unsafe fn OnPackageModified( &self, source: P0, previouscodepackage: P1, codepackage: P2, ) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackage>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackage>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnPackageModified)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - previouscodepackage.into().abi(), - codepackage.into().abi(), + (::windows_core::Interface::vtable(self).OnPackageModified)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + previouscodepackage.into_param().abi(), + codepackage.into_param().abi(), ) } } -::windows::core::interface_hierarchy!(IFabricCodePackageChangeHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricCodePackageChangeHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricCodePackageChangeHandler, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricCodePackageChangeHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -3890,17 +3892,22 @@ impl ::core::fmt::Debug for IFabricCodePackageChangeHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricCodePackageChangeHandler { +unsafe impl ::windows_core::Interface for IFabricCodePackageChangeHandler { type Vtable = IFabricCodePackageChangeHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricCodePackageChangeHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb90d36cd_acb5_427a_b318_3b045981d0cc); +impl ::core::clone::Clone for IFabricCodePackageChangeHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricCodePackageChangeHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb90d36cd_acb5_427a_b318_3b045981d0cc); } #[repr(C)] #[doc(hidden)] pub struct IFabricCodePackageChangeHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub OnPackageAdded: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, @@ -3918,29 +3925,27 @@ pub struct IFabricCodePackageChangeHandler_Vtbl { codepackage: *mut ::core::ffi::c_void, ), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricCodePackageEventHandler(::windows::core::IUnknown); +pub struct IFabricCodePackageEventHandler(::windows_core::IUnknown); impl IFabricCodePackageEventHandler { - pub unsafe fn OnCodePackageEvent<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn OnCodePackageEvent( &self, source: P0, eventdesc: *const super::super::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, ) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivator>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnCodePackageEvent)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - ::core::mem::transmute(eventdesc), + (::windows_core::Interface::vtable(self).OnCodePackageEvent)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + eventdesc, ) } } -::windows::core::interface_hierarchy!(IFabricCodePackageEventHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricCodePackageEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricCodePackageEventHandler, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricCodePackageEventHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -3954,96 +3959,106 @@ impl ::core::fmt::Debug for IFabricCodePackageEventHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricCodePackageEventHandler { +unsafe impl ::windows_core::Interface for IFabricCodePackageEventHandler { type Vtable = IFabricCodePackageEventHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricCodePackageEventHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x899e0ca8_16df_458e_8915_d0307b4ab101); +impl ::core::clone::Clone for IFabricCodePackageEventHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricCodePackageEventHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x899e0ca8_16df_458e_8915_d0307b4ab101); } #[repr(C)] #[doc(hidden)] pub struct IFabricCodePackageEventHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub OnCodePackageEvent: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, eventdesc: *const super::super::FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION, ), + #[cfg(not(feature = "Win32_Foundation"))] + OnCodePackageEvent: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricConfigurationPackage(::windows::core::IUnknown); +pub struct IFabricConfigurationPackage(::windows_core::IUnknown); impl IFabricConfigurationPackage { pub unsafe fn get_Description( &self, ) -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_Description)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).get_Description)( + ::windows_core::Interface::as_raw(self), + ) } - pub unsafe fn get_Path(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_Path)(::windows::core::Vtable::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)) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_Settings(&self) -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS { - (::windows::core::Vtable::vtable(self).get_Settings)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Settings)(::windows_core::Interface::as_raw( + self, + )) } - pub unsafe fn GetSection<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn GetSection( &self, sectionname: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_CONFIGURATION_SECTION> + ) -> ::windows_core::Result<*mut super::super::FABRIC_CONFIGURATION_SECTION> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetSection)( - ::windows::core::Vtable::as_raw(self), - sectionname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetSection)( + ::windows_core::Interface::as_raw(self), + sectionname.into_param().abi(), + &mut result__, ) - .from_abi::<*mut super::super::FABRIC_CONFIGURATION_SECTION>(result__) + .from_abi(result__) } - pub unsafe fn GetValue<'a, P0, P1>( + pub unsafe fn GetValue( &self, sectionname: P0, parametername: P1, isencrypted: *mut u8, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::Result<()> + bufferedvalue: *mut ::windows_core::PCWSTR, + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).GetValue)( - ::windows::core::Vtable::as_raw(self), - sectionname.into(), - parametername.into(), - ::core::mem::transmute(isencrypted), - ::core::mem::transmute(bufferedvalue), + (::windows_core::Interface::vtable(self).GetValue)( + ::windows_core::Interface::as_raw(self), + sectionname.into_param().abi(), + parametername.into_param().abi(), + isencrypted, + bufferedvalue, ) .ok() } - pub unsafe fn DecryptValue<'a, P0>( + pub unsafe fn DecryptValue( &self, encryptedvalue: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).DecryptValue)( - ::windows::core::Vtable::as_raw(self), - encryptedvalue.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).DecryptValue)( + ::windows_core::Interface::as_raw(self), + encryptedvalue.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricConfigurationPackage, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricConfigurationPackage { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricConfigurationPackage, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricConfigurationPackage { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4057,145 +4072,158 @@ impl ::core::fmt::Debug for IFabricConfigurationPackage { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricConfigurationPackage { +unsafe impl ::windows_core::Interface for IFabricConfigurationPackage { type Vtable = IFabricConfigurationPackage_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricConfigurationPackage { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xac4c3bfa_2563_46b7_a71d_2dca7b0a8f4d); +impl ::core::clone::Clone for IFabricConfigurationPackage { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricConfigurationPackage { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xac4c3bfa_2563_46b7_a71d_2dca7b0a8f4d); } #[repr(C)] #[doc(hidden)] pub struct IFabricConfigurationPackage_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Description: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION, pub get_Path: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, + #[cfg(feature = "Win32_Foundation")] pub get_Settings: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS, + #[cfg(not(feature = "Win32_Foundation"))] + get_Settings: usize, + #[cfg(feature = "Win32_Foundation")] pub GetSection: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - sectionname: ::windows::core::PCWSTR, + sectionname: ::windows_core::PCWSTR, bufferedvalue: *mut *mut super::super::FABRIC_CONFIGURATION_SECTION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + GetSection: usize, pub GetValue: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - sectionname: ::windows::core::PCWSTR, - parametername: ::windows::core::PCWSTR, + sectionname: ::windows_core::PCWSTR, + parametername: ::windows_core::PCWSTR, isencrypted: *mut u8, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::HRESULT, + bufferedvalue: *mut ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT, pub DecryptValue: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - encryptedvalue: ::windows::core::PCWSTR, + encryptedvalue: ::windows_core::PCWSTR, decryptedvalue: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricConfigurationPackage2(::windows::core::IUnknown); +pub struct IFabricConfigurationPackage2(::windows_core::IUnknown); impl IFabricConfigurationPackage2 { pub unsafe fn get_Description( &self, ) -> *mut super::super::FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).base__.get_Description)( - ::windows::core::Vtable::as_raw(self), - ) + (::windows_core::Interface::vtable(self) + .base__ + .get_Description)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn get_Path(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).base__.get_Path)(::windows::core::Vtable::as_raw( - self, - )) + pub unsafe fn get_Path(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).base__.get_Path)( + ::windows_core::Interface::as_raw(self), + ) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_Settings(&self) -> *mut super::super::FABRIC_CONFIGURATION_SETTINGS { - (::windows::core::Vtable::vtable(self).base__.get_Settings)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).base__.get_Settings)( + ::windows_core::Interface::as_raw(self), ) } - pub unsafe fn GetSection<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn GetSection( &self, sectionname: P0, - ) -> ::windows::core::Result<*mut super::super::FABRIC_CONFIGURATION_SECTION> + ) -> ::windows_core::Result<*mut super::super::FABRIC_CONFIGURATION_SECTION> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetSection)( - ::windows::core::Vtable::as_raw(self), - sectionname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.GetSection)( + ::windows_core::Interface::as_raw(self), + sectionname.into_param().abi(), + &mut result__, ) - .from_abi::<*mut super::super::FABRIC_CONFIGURATION_SECTION>(result__) + .from_abi(result__) } - pub unsafe fn GetValue<'a, P0, P1>( + pub unsafe fn GetValue( &self, sectionname: P0, parametername: P1, isencrypted: *mut u8, - bufferedvalue: *mut ::windows::core::PWSTR, - ) -> ::windows::core::Result<()> + bufferedvalue: *mut ::windows_core::PCWSTR, + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).base__.GetValue)( - ::windows::core::Vtable::as_raw(self), - sectionname.into(), - parametername.into(), - ::core::mem::transmute(isencrypted), - ::core::mem::transmute(bufferedvalue), + (::windows_core::Interface::vtable(self).base__.GetValue)( + ::windows_core::Interface::as_raw(self), + sectionname.into_param().abi(), + parametername.into_param().abi(), + isencrypted, + bufferedvalue, ) .ok() } - pub unsafe fn DecryptValue<'a, P0>( + pub unsafe fn DecryptValue( &self, encryptedvalue: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.DecryptValue)( - ::windows::core::Vtable::as_raw(self), - encryptedvalue.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.DecryptValue)( + ::windows_core::Interface::as_raw(self), + encryptedvalue.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetValues<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn GetValues( &self, sectionname: P0, parameterprefix: P1, - ) -> ::windows::core::Result<*mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST> + ) -> ::windows_core::Result<*mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetValues)( - ::windows::core::Vtable::as_raw(self), - sectionname.into(), - parameterprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetValues)( + ::windows_core::Interface::as_raw(self), + sectionname.into_param().abi(), + parameterprefix.into_param().abi(), + &mut result__, ) - .from_abi::<*mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST>(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricConfigurationPackage2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricConfigurationPackage ); -impl ::core::clone::Clone for IFabricConfigurationPackage2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricConfigurationPackage2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4209,76 +4237,80 @@ impl ::core::fmt::Debug for IFabricConfigurationPackage2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricConfigurationPackage2 { +unsafe impl ::windows_core::Interface for IFabricConfigurationPackage2 { type Vtable = IFabricConfigurationPackage2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricConfigurationPackage2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xd3161f31_708a_4f83_91ff_f2af15f74a2f); +impl ::core::clone::Clone for IFabricConfigurationPackage2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricConfigurationPackage2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xd3161f31_708a_4f83_91ff_f2af15f74a2f); } #[repr(C)] #[doc(hidden)] pub struct IFabricConfigurationPackage2_Vtbl { pub base__: IFabricConfigurationPackage_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub GetValues: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - sectionname: ::windows::core::PCWSTR, - parameterprefix: ::windows::core::PCWSTR, + sectionname: ::windows_core::PCWSTR, + parameterprefix: ::windows_core::PCWSTR, bufferedvalue: *mut *mut super::super::FABRIC_CONFIGURATION_PARAMETER_LIST, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + GetValues: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricConfigurationPackageChangeHandler(::windows::core::IUnknown); +pub struct IFabricConfigurationPackageChangeHandler(::windows_core::IUnknown); impl IFabricConfigurationPackageChangeHandler { - pub unsafe fn OnPackageAdded<'a, P0, P1>(&self, source: P0, configpackage: P1) + pub unsafe fn OnPackageAdded(&self, source: P0, configpackage: P1) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricConfigurationPackage>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnPackageAdded)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - configpackage.into().abi(), + (::windows_core::Interface::vtable(self).OnPackageAdded)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + configpackage.into_param().abi(), ) } - pub unsafe fn OnPackageRemoved<'a, P0, P1>(&self, source: P0, configpackage: P1) + pub unsafe fn OnPackageRemoved(&self, source: P0, configpackage: P1) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricConfigurationPackage>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnPackageRemoved)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - configpackage.into().abi(), + (::windows_core::Interface::vtable(self).OnPackageRemoved)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + configpackage.into_param().abi(), ) } - pub unsafe fn OnPackageModified<'a, P0, P1, P2>( + pub unsafe fn OnPackageModified( &self, source: P0, previousconfigpackage: P1, configpackage: P2, ) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricConfigurationPackage>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricConfigurationPackage>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnPackageModified)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - previousconfigpackage.into().abi(), - configpackage.into().abi(), + (::windows_core::Interface::vtable(self).OnPackageModified)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + previousconfigpackage.into_param().abi(), + configpackage.into_param().abi(), ) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricConfigurationPackageChangeHandler, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricConfigurationPackageChangeHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricConfigurationPackageChangeHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4292,17 +4324,22 @@ impl ::core::fmt::Debug for IFabricConfigurationPackageChangeHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricConfigurationPackageChangeHandler { +unsafe impl ::windows_core::Interface for IFabricConfigurationPackageChangeHandler { type Vtable = IFabricConfigurationPackageChangeHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricConfigurationPackageChangeHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc3954d48_b5ee_4ff4_9bc0_c30f6d0d3a85); +impl ::core::clone::Clone for IFabricConfigurationPackageChangeHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricConfigurationPackageChangeHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc3954d48_b5ee_4ff4_9bc0_c30f6d0d3a85); } #[repr(C)] #[doc(hidden)] pub struct IFabricConfigurationPackageChangeHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub OnPackageAdded: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, @@ -4320,24 +4357,20 @@ pub struct IFabricConfigurationPackageChangeHandler_Vtbl { configpackage: *mut ::core::ffi::c_void, ), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricDataPackage(::windows::core::IUnknown); +pub struct IFabricDataPackage(::windows_core::IUnknown); impl IFabricDataPackage { pub unsafe fn get_Description(&self) -> *mut super::super::FABRIC_DATA_PACKAGE_DESCRIPTION { - (::windows::core::Vtable::vtable(self).get_Description)(::windows::core::Vtable::as_raw( - self, - )) - } - pub unsafe fn get_Path(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_Path)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Description)( + ::windows_core::Interface::as_raw(self), + ) } -} -::windows::core::interface_hierarchy!(IFabricDataPackage, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricDataPackage { - fn clone(&self) -> Self { - Self(self.0.clone()) + pub unsafe fn get_Path(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_Path)(::windows_core::Interface::as_raw(self)) } } +::windows_core::imp::interface_hierarchy!(IFabricDataPackage, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricDataPackage { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4349,73 +4382,77 @@ impl ::core::fmt::Debug for IFabricDataPackage { f.debug_tuple("IFabricDataPackage").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricDataPackage { +unsafe impl ::windows_core::Interface for IFabricDataPackage { type Vtable = IFabricDataPackage_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricDataPackage { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xaa67de09_3657_435f_a2f6_b3a17a0a4371); +impl ::core::clone::Clone for IFabricDataPackage { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricDataPackage { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xaa67de09_3657_435f_a2f6_b3a17a0a4371); } #[repr(C)] #[doc(hidden)] pub struct IFabricDataPackage_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Description: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_DATA_PACKAGE_DESCRIPTION, pub get_Path: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricDataPackageChangeHandler(::windows::core::IUnknown); +pub struct IFabricDataPackageChangeHandler(::windows_core::IUnknown); impl IFabricDataPackageChangeHandler { - pub unsafe fn OnPackageAdded<'a, P0, P1>(&self, source: P0, datapackage: P1) + pub unsafe fn OnPackageAdded(&self, source: P0, datapackage: P1) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackage>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnPackageAdded)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - datapackage.into().abi(), + (::windows_core::Interface::vtable(self).OnPackageAdded)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + datapackage.into_param().abi(), ) } - pub unsafe fn OnPackageRemoved<'a, P0, P1>(&self, source: P0, datapackage: P1) + pub unsafe fn OnPackageRemoved(&self, source: P0, datapackage: P1) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackage>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnPackageRemoved)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - datapackage.into().abi(), + (::windows_core::Interface::vtable(self).OnPackageRemoved)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + datapackage.into_param().abi(), ) } - pub unsafe fn OnPackageModified<'a, P0, P1, P2>( + pub unsafe fn OnPackageModified( &self, source: P0, previousdatapackage: P1, datapackage: P2, ) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricCodePackageActivationContext>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackage>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricDataPackage>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnPackageModified)( - ::windows::core::Vtable::as_raw(self), - source.into().abi(), - previousdatapackage.into().abi(), - datapackage.into().abi(), + (::windows_core::Interface::vtable(self).OnPackageModified)( + ::windows_core::Interface::as_raw(self), + source.into_param().abi(), + previousdatapackage.into_param().abi(), + datapackage.into_param().abi(), ) } } -::windows::core::interface_hierarchy!(IFabricDataPackageChangeHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricDataPackageChangeHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricDataPackageChangeHandler, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricDataPackageChangeHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4429,17 +4466,22 @@ impl ::core::fmt::Debug for IFabricDataPackageChangeHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricDataPackageChangeHandler { +unsafe impl ::windows_core::Interface for IFabricDataPackageChangeHandler { type Vtable = IFabricDataPackageChangeHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricDataPackageChangeHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x8d0a726f_bd17_4b32_807b_be2a8024b2e0); +impl ::core::clone::Clone for IFabricDataPackageChangeHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricDataPackageChangeHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x8d0a726f_bd17_4b32_807b_be2a8024b2e0); } #[repr(C)] #[doc(hidden)] pub struct IFabricDataPackageChangeHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub OnPackageAdded: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, source: *mut ::core::ffi::c_void, @@ -4457,22 +4499,20 @@ pub struct IFabricDataPackageChangeHandler_Vtbl { datapackage: *mut ::core::ffi::c_void, ), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricEseLocalStoreSettingsResult(::windows::core::IUnknown); +pub struct IFabricEseLocalStoreSettingsResult(::windows_core::IUnknown); impl IFabricEseLocalStoreSettingsResult { pub unsafe fn get_Settings(&self) -> *mut super::super::FABRIC_ESE_LOCAL_STORE_SETTINGS { - (::windows::core::Vtable::vtable(self).get_Settings)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Settings)(::windows_core::Interface::as_raw( + self, + )) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricEseLocalStoreSettingsResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricEseLocalStoreSettingsResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricEseLocalStoreSettingsResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4486,62 +4526,63 @@ impl ::core::fmt::Debug for IFabricEseLocalStoreSettingsResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricEseLocalStoreSettingsResult { +unsafe impl ::windows_core::Interface for IFabricEseLocalStoreSettingsResult { type Vtable = IFabricEseLocalStoreSettingsResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricEseLocalStoreSettingsResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xaace77ae_d8e1_4144_b1ee_5ac74fd54f65); +impl ::core::clone::Clone for IFabricEseLocalStoreSettingsResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricEseLocalStoreSettingsResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xaace77ae_d8e1_4144_b1ee_5ac74fd54f65); } #[repr(C)] #[doc(hidden)] pub struct IFabricEseLocalStoreSettingsResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Settings: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_ESE_LOCAL_STORE_SETTINGS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreEnumerator(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreEnumerator(::windows_core::IUnknown); impl IFabricKeyValueStoreEnumerator { - pub unsafe fn EnumerateByKey<'a, P0>( + pub unsafe fn EnumerateByKey( &self, keyprefix: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateByKey)( + ::windows_core::Interface::as_raw(self), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadataByKey<'a, P0>( + pub unsafe fn EnumerateMetadataByKey( &self, keyprefix: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateMetadataByKey)( + ::windows_core::Interface::as_raw(self), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricKeyValueStoreEnumerator, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricKeyValueStoreEnumerator { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricKeyValueStoreEnumerator, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricKeyValueStoreEnumerator { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4555,110 +4596,117 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreEnumerator { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreEnumerator { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreEnumerator { type Vtable = IFabricKeyValueStoreEnumerator_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreEnumerator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6722b848_15bb_4528_bf54_c7bbe27b6f9a); +impl ::core::clone::Clone for IFabricKeyValueStoreEnumerator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreEnumerator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6722b848_15bb_4528_bf54_c7bbe27b6f9a); } #[repr(C)] #[doc(hidden)] pub struct IFabricKeyValueStoreEnumerator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub EnumerateByKey: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EnumerateMetadataByKey: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreEnumerator2(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreEnumerator2(::windows_core::IUnknown); impl IFabricKeyValueStoreEnumerator2 { - pub unsafe fn EnumerateByKey<'a, P0>( + pub unsafe fn EnumerateByKey( &self, keyprefix: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EnumerateByKey)( + ::windows_core::Interface::as_raw(self), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadataByKey<'a, P0>( + pub unsafe fn EnumerateMetadataByKey( &self, keyprefix: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateByKey2<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn EnumerateByKey2( &self, keyprefix: P0, strictprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateByKey2)( - ::windows::core::Vtable::as_raw(self), - keyprefix.into(), - strictprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateByKey2)( + ::windows_core::Interface::as_raw(self), + keyprefix.into_param().abi(), + strictprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadataByKey2<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn EnumerateMetadataByKey2( &self, keyprefix: P0, strictprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateMetadataByKey2)( - ::windows::core::Vtable::as_raw(self), - keyprefix.into(), - strictprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateMetadataByKey2)( + ::windows_core::Interface::as_raw(self), + keyprefix.into_param().abi(), + strictprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreEnumerator2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricKeyValueStoreEnumerator ); -impl ::core::clone::Clone for IFabricKeyValueStoreEnumerator2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreEnumerator2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4672,49 +4720,59 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreEnumerator2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreEnumerator2 { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreEnumerator2 { type Vtable = IFabricKeyValueStoreEnumerator2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreEnumerator2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x63dfd264_4f2b_4be6_8234_1fa200165fe9); +impl ::core::clone::Clone for IFabricKeyValueStoreEnumerator2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreEnumerator2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x63dfd264_4f2b_4be6_8234_1fa200165fe9); } #[repr(C)] #[doc(hidden)] pub struct IFabricKeyValueStoreEnumerator2_Vtbl { pub base__: IFabricKeyValueStoreEnumerator_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub EnumerateByKey2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, strictprefix: ::windows::Win32::Foundation::BOOLEAN, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + EnumerateByKey2: usize, + #[cfg(feature = "Win32_Foundation")] pub EnumerateMetadataByKey2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, strictprefix: ::windows::Win32::Foundation::BOOLEAN, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + EnumerateMetadataByKey2: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreItemEnumerator(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreItemEnumerator(::windows_core::IUnknown); impl IFabricKeyValueStoreItemEnumerator { - pub unsafe fn MoveNext(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).MoveNext)(::windows::core::Vtable::as_raw(self)).ok() + 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) -> ::core::option::Option { - (::windows::core::Vtable::vtable(self).get_Current)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Current)(::windows_core::Interface::as_raw( + self, + )) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreItemEnumerator, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricKeyValueStoreItemEnumerator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemEnumerator { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4728,58 +4786,59 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreItemEnumerator { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreItemEnumerator { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreItemEnumerator { type Vtable = IFabricKeyValueStoreItemEnumerator_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreItemEnumerator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc202788f_54d3_44a6_8f3c_b4bbfcdb95d2); +impl ::core::clone::Clone for IFabricKeyValueStoreItemEnumerator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreItemEnumerator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc202788f_54d3_44a6_8f3c_b4bbfcdb95d2); } #[repr(C)] #[doc(hidden)] pub struct IFabricKeyValueStoreItemEnumerator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub MoveNext: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub get_Current: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> ::core::option::Option< IFabricKeyValueStoreItemResult, >, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreItemEnumerator2(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreItemEnumerator2(::windows_core::IUnknown); impl IFabricKeyValueStoreItemEnumerator2 { - pub unsafe fn MoveNext(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.MoveNext)(::windows::core::Vtable::as_raw( - self, - )) + pub unsafe fn MoveNext(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.MoveNext)( + ::windows_core::Interface::as_raw(self), + ) .ok() } pub unsafe fn get_Current(&self) -> ::core::option::Option { - (::windows::core::Vtable::vtable(self).base__.get_Current)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).base__.get_Current)( + ::windows_core::Interface::as_raw(self), + ) } - pub unsafe fn TryMoveNext(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryMoveNext)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn TryMoveNext(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryMoveNext)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreItemEnumerator2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricKeyValueStoreItemEnumerator ); -impl ::core::clone::Clone for IFabricKeyValueStoreItemEnumerator2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemEnumerator2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4793,12 +4852,17 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreItemEnumerator2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreItemEnumerator2 { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreItemEnumerator2 { type Vtable = IFabricKeyValueStoreItemEnumerator2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreItemEnumerator2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xda143bbc_81e1_48cd_afd7_b642bc5b9bfd); +impl ::core::clone::Clone for IFabricKeyValueStoreItemEnumerator2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreItemEnumerator2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xda143bbc_81e1_48cd_afd7_b642bc5b9bfd); } #[repr(C)] #[doc(hidden)] @@ -4807,29 +4871,28 @@ pub struct IFabricKeyValueStoreItemEnumerator2_Vtbl { pub TryMoveNext: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, success: *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreItemMetadataEnumerator(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreItemMetadataEnumerator(::windows_core::IUnknown); impl IFabricKeyValueStoreItemMetadataEnumerator { - pub unsafe fn MoveNext(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).MoveNext)(::windows::core::Vtable::as_raw(self)).ok() + 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, ) -> ::core::option::Option { - (::windows::core::Vtable::vtable(self).get_Current)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Current)(::windows_core::Interface::as_raw( + self, + )) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreItemMetadataEnumerator, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricKeyValueStoreItemMetadataEnumerator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemMetadataEnumerator { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4843,60 +4906,61 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreItemMetadataEnumerator { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreItemMetadataEnumerator { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreItemMetadataEnumerator { type Vtable = IFabricKeyValueStoreItemMetadataEnumerator_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreItemMetadataEnumerator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0bc06aee_fffa_4450_9099_116a5f0e0b53); +impl ::core::clone::Clone for IFabricKeyValueStoreItemMetadataEnumerator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreItemMetadataEnumerator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0bc06aee_fffa_4450_9099_116a5f0e0b53); } #[repr(C)] #[doc(hidden)] pub struct IFabricKeyValueStoreItemMetadataEnumerator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub MoveNext: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub get_Current: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> ::core::option::Option< IFabricKeyValueStoreItemMetadataResult, >, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreItemMetadataEnumerator2(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreItemMetadataEnumerator2(::windows_core::IUnknown); impl IFabricKeyValueStoreItemMetadataEnumerator2 { - pub unsafe fn MoveNext(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.MoveNext)(::windows::core::Vtable::as_raw( - self, - )) + pub unsafe fn MoveNext(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.MoveNext)( + ::windows_core::Interface::as_raw(self), + ) .ok() } pub unsafe fn get_Current( &self, ) -> ::core::option::Option { - (::windows::core::Vtable::vtable(self).base__.get_Current)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).base__.get_Current)( + ::windows_core::Interface::as_raw(self), + ) } - pub unsafe fn TryMoveNext(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryMoveNext)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn TryMoveNext(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryMoveNext)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreItemMetadataEnumerator2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricKeyValueStoreItemMetadataEnumerator ); -impl ::core::clone::Clone for IFabricKeyValueStoreItemMetadataEnumerator2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemMetadataEnumerator2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4910,12 +4974,17 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreItemMetadataEnumerator2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreItemMetadataEnumerator2 { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreItemMetadataEnumerator2 { type Vtable = IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreItemMetadataEnumerator2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x8803d53e_dd73_40fc_a662_1bfe999419ea); +impl ::core::clone::Clone for IFabricKeyValueStoreItemMetadataEnumerator2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreItemMetadataEnumerator2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x8803d53e_dd73_40fc_a662_1bfe999419ea); } #[repr(C)] #[doc(hidden)] @@ -4924,24 +4993,24 @@ pub struct IFabricKeyValueStoreItemMetadataEnumerator2_Vtbl { pub TryMoveNext: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, success: *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreItemMetadataResult(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreItemMetadataResult(::windows_core::IUnknown); impl IFabricKeyValueStoreItemMetadataResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_Metadata(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - (::windows::core::Vtable::vtable(self).get_Metadata)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Metadata)(::windows_core::Interface::as_raw( + self, + )) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreItemMetadataResult, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricKeyValueStoreItemMetadataResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemMetadataResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4955,36 +5024,42 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreItemMetadataResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreItemMetadataResult { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreItemMetadataResult { type Vtable = IFabricKeyValueStoreItemMetadataResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreItemMetadataResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x17c483a1_69e6_4bdc_a058_54fd4a1839fd); +impl ::core::clone::Clone for IFabricKeyValueStoreItemMetadataResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreItemMetadataResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x17c483a1_69e6_4bdc_a058_54fd4a1839fd); } #[repr(C)] #[doc(hidden)] pub struct IFabricKeyValueStoreItemMetadataResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_Metadata: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM_METADATA, + #[cfg(not(feature = "Win32_Foundation"))] + get_Metadata: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreItemResult(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreItemResult(::windows_core::IUnknown); impl IFabricKeyValueStoreItemResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_Item(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM { - (::windows::core::Vtable::vtable(self).get_Item)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricKeyValueStoreItemResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricKeyValueStoreItemResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_Item)(::windows_core::Interface::as_raw(self)) } } +::windows_core::imp::interface_hierarchy!(IFabricKeyValueStoreItemResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricKeyValueStoreItemResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -4998,43 +5073,51 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreItemResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreItemResult { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreItemResult { type Vtable = IFabricKeyValueStoreItemResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreItemResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc1f1c89d_b0b8_44dc_bc97_6c074c1a805e); +impl ::core::clone::Clone for IFabricKeyValueStoreItemResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreItemResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc1f1c89d_b0b8_44dc_bc97_6c074c1a805e); } #[repr(C)] #[doc(hidden)] pub struct IFabricKeyValueStoreItemResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_Item: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM, + #[cfg(not(feature = "Win32_Foundation"))] + get_Item: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreNotification(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreNotification(::windows_core::IUnknown); impl IFabricKeyValueStoreNotification { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_Item(&self) -> *mut super::super::FABRIC_KEY_VALUE_STORE_ITEM { - (::windows::core::Vtable::vtable(self).base__.get_Item)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).base__.get_Item)( + ::windows_core::Interface::as_raw(self), + ) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsDelete(&self) -> ::windows::Win32::Foundation::BOOLEAN { - (::windows::core::Vtable::vtable(self).IsDelete)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).IsDelete)(::windows_core::Interface::as_raw(self)) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreNotification, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricKeyValueStoreItemResult ); -impl ::core::clone::Clone for IFabricKeyValueStoreNotification { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreNotification { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -5048,43 +5131,50 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreNotification { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreNotification { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreNotification { type Vtable = IFabricKeyValueStoreNotification_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreNotification { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcb660aa6_c51e_4f05_9526_93982b550e8f); +impl ::core::clone::Clone for IFabricKeyValueStoreNotification { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreNotification { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcb660aa6_c51e_4f05_9526_93982b550e8f); } #[repr(C)] #[doc(hidden)] pub struct IFabricKeyValueStoreNotification_Vtbl { pub base__: IFabricKeyValueStoreItemResult_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub IsDelete: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> ::windows::Win32::Foundation::BOOLEAN, + #[cfg(not(feature = "Win32_Foundation"))] + IsDelete: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreNotificationEnumerator(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreNotificationEnumerator(::windows_core::IUnknown); impl IFabricKeyValueStoreNotificationEnumerator { - pub unsafe fn MoveNext(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).MoveNext)(::windows::core::Vtable::as_raw(self)).ok() + 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) -> ::core::option::Option { - (::windows::core::Vtable::vtable(self).get_Current)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Current)(::windows_core::Interface::as_raw( + self, + )) } pub unsafe fn Reset(&self) { - (::windows::core::Vtable::vtable(self).Reset)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).Reset)(::windows_core::Interface::as_raw(self)) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreNotificationEnumerator, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricKeyValueStoreNotificationEnumerator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreNotificationEnumerator { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -5098,19 +5188,24 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreNotificationEnumerator { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreNotificationEnumerator { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreNotificationEnumerator { type Vtable = IFabricKeyValueStoreNotificationEnumerator_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreNotificationEnumerator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xef25bc08_be76_43c7_adad_20f01fba3399); +impl ::core::clone::Clone for IFabricKeyValueStoreNotificationEnumerator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreNotificationEnumerator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xef25bc08_be76_43c7_adad_20f01fba3399); } #[repr(C)] #[doc(hidden)] pub struct IFabricKeyValueStoreNotificationEnumerator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub MoveNext: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, pub get_Current: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> ::core::option::Option< @@ -5118,42 +5213,40 @@ pub struct IFabricKeyValueStoreNotificationEnumerator_Vtbl { >, pub Reset: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreNotificationEnumerator2(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreNotificationEnumerator2(::windows_core::IUnknown); impl IFabricKeyValueStoreNotificationEnumerator2 { - pub unsafe fn MoveNext(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.MoveNext)(::windows::core::Vtable::as_raw( - self, - )) + pub unsafe fn MoveNext(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.MoveNext)( + ::windows_core::Interface::as_raw(self), + ) .ok() } pub unsafe fn get_Current(&self) -> ::core::option::Option { - (::windows::core::Vtable::vtable(self).base__.get_Current)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).base__.get_Current)( + ::windows_core::Interface::as_raw(self), + ) } pub unsafe fn Reset(&self) { - (::windows::core::Vtable::vtable(self).base__.Reset)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).base__.Reset)(::windows_core::Interface::as_raw( + self, + )) } - pub unsafe fn TryMoveNext(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryMoveNext)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn TryMoveNext(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryMoveNext)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreNotificationEnumerator2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricKeyValueStoreNotificationEnumerator ); -impl ::core::clone::Clone for IFabricKeyValueStoreNotificationEnumerator2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreNotificationEnumerator2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -5167,12 +5260,17 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreNotificationEnumerator2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreNotificationEnumerator2 { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreNotificationEnumerator2 { type Vtable = IFabricKeyValueStoreNotificationEnumerator2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreNotificationEnumerator2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x55eec7c6_ae81_407a_b84c_22771d314ac7); +impl ::core::clone::Clone for IFabricKeyValueStoreNotificationEnumerator2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreNotificationEnumerator2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x55eec7c6_ae81_407a_b84c_22771d314ac7); } #[repr(C)] #[doc(hidden)] @@ -5181,324 +5279,318 @@ pub struct IFabricKeyValueStoreNotificationEnumerator2_Vtbl { pub TryMoveNext: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, success: *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreReplica(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreReplica(::windows_core::IUnknown); impl IFabricKeyValueStoreReplica { - pub unsafe fn BeginOpen<'a, P0, P1>( + pub unsafe fn BeginOpen( &self, openmode: super::super::FABRIC_REPLICA_OPEN_MODE, partition: P0, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginOpen)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginOpen)( + ::windows_core::Interface::as_raw(self), openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndOpen(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginChangeRole<'a, P0>( + pub unsafe fn BeginChangeRole( &self, newrole: super::super::FABRIC_REPLICA_ROLE, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginChangeRole)( + ::windows_core::Interface::as_raw(self), newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndChangeRole<'a, P0>( + pub unsafe fn EndChangeRole( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginClose<'a, P0>( + pub unsafe fn BeginClose( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).base__.EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).base__.Abort)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).base__.Abort)(::windows_core::Interface::as_raw( + self, + )) } - pub unsafe fn GetCurrentEpoch(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCurrentEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetCurrentEpoch)( + ::windows_core::Interface::as_raw(self), + currentepoch, ) - .from_abi::(result__) + .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateReplicatorSettings( &self, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), + ) -> ::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::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CreateTransaction)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn CreateTransaction(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CreateTransaction)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Add<'a, P0, P1>( + pub unsafe fn Add( &self, transaction: P0, key: P1, value: &[u8], - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).Add)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + (::windows_core::Interface::vtable(self).Add)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), ) .ok() } - pub unsafe fn Remove<'a, P0, P1>( + pub unsafe fn Remove( &self, transaction: P0, key: P1, checksequencenumber: i64, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).Remove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + (::windows_core::Interface::vtable(self).Remove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), checksequencenumber, ) .ok() } - pub unsafe fn Update<'a, P0, P1>( + pub unsafe fn Update( &self, transaction: P0, key: P1, value: &[u8], checksequencenumber: i64, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).Update)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + (::windows_core::Interface::vtable(self).Update)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), checksequencenumber, ) .ok() } - pub unsafe fn Get<'a, P0, P1>( + pub unsafe fn Get( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).Get)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).Get)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetMetadata<'a, P0, P1>( + pub unsafe fn GetMetadata( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Contains<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result + pub unsafe fn Contains(&self, transaction: P0, key: P1) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).Contains)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).Contains)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Enumerate<'a, P0>( + pub unsafe fn Enumerate( &self, transaction: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).Enumerate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).Enumerate)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateByKey<'a, P0, P1>( + pub unsafe fn EnumerateByKey( &self, transaction: P0, keyprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadata<'a, P0>( + pub unsafe fn EnumerateMetadata( &self, transaction: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadataByKey<'a, P0, P1>( + pub unsafe fn EnumerateMetadataByKey( &self, transaction: P0, keyprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateMetadataByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreReplica, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStatefulServiceReplica ); -impl ::core::clone::Clone for IFabricKeyValueStoreReplica { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -5512,12 +5604,17 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreReplica { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreReplica { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreReplica { type Vtable = IFabricKeyValueStoreReplica_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreReplica { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x97da35c4_38ed_4a2a_8f37_fbeb56382235); +impl ::core::clone::Clone for IFabricKeyValueStoreReplica { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreReplica { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x97da35c4_38ed_4a2a_8f37_fbeb56382235); } #[repr(C)] #[doc(hidden)] @@ -5526,448 +5623,444 @@ pub struct IFabricKeyValueStoreReplica_Vtbl { pub GetCurrentEpoch: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, currentepoch: *mut super::super::FABRIC_EPOCH, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub UpdateReplicatorSettings: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + UpdateReplicatorSettings: usize, pub CreateTransaction: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Add: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Remove: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, checksequencenumber: i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Update: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, checksequencenumber: i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Get: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetMetadata: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Contains: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, result: *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Enumerate: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EnumerateByKey: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EnumerateMetadata: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EnumerateMetadataByKey: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreReplica2(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreReplica2(::windows_core::IUnknown); impl IFabricKeyValueStoreReplica2 { - pub unsafe fn BeginOpen<'a, P0, P1>( + pub unsafe fn BeginOpen( &self, openmode: super::super::FABRIC_REPLICA_OPEN_MODE, partition: P0, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginOpen)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndOpen(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.base__.EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginChangeRole<'a, P0>( + pub unsafe fn BeginChangeRole( &self, newrole: super::super::FABRIC_REPLICA_ROLE, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndChangeRole<'a, P0>( + pub unsafe fn EndChangeRole( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginClose<'a, P0>( + pub unsafe fn BeginClose( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.base__.EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).base__.base__.Abort)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).base__.base__.Abort)( + ::windows_core::Interface::as_raw(self), ) } - pub unsafe fn GetCurrentEpoch(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetCurrentEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .GetCurrentEpoch)(::windows_core::Interface::as_raw(self), currentepoch) + .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateReplicatorSettings( &self, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), + ::windows_core::Interface::as_raw(self), replicatorsettings ) .ok() } - pub unsafe fn CreateTransaction(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + pub unsafe fn CreateTransaction(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ - .CreateTransaction)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .CreateTransaction)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn Add<'a, P0, P1>( + pub unsafe fn Add( &self, transaction: P0, key: P1, value: &[u8], - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).base__.Add)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + (::windows_core::Interface::vtable(self).base__.Add)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), ) .ok() } - pub unsafe fn Remove<'a, P0, P1>( + pub unsafe fn Remove( &self, transaction: P0, key: P1, checksequencenumber: i64, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).base__.Remove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + (::windows_core::Interface::vtable(self).base__.Remove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), checksequencenumber, ) .ok() } - pub unsafe fn Update<'a, P0, P1>( + pub unsafe fn Update( &self, transaction: P0, key: P1, value: &[u8], checksequencenumber: i64, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).base__.Update)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + (::windows_core::Interface::vtable(self).base__.Update)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), checksequencenumber, ) .ok() } - pub unsafe fn Get<'a, P0, P1>( + pub unsafe fn Get( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.Get)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.Get)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetMetadata<'a, P0, P1>( + pub unsafe fn GetMetadata( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.GetMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Contains<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result + pub unsafe fn Contains(&self, transaction: P0, key: P1) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.Contains)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.Contains)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Enumerate<'a, P0>( + pub unsafe fn Enumerate( &self, transaction: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.Enumerate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.Enumerate)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateByKey<'a, P0, P1>( + pub unsafe fn EnumerateByKey( &self, transaction: P0, keyprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EnumerateByKey)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadata<'a, P0>( + pub unsafe fn EnumerateMetadata( &self, transaction: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EnumerateMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadataByKey<'a, P0, P1>( + pub unsafe fn EnumerateMetadataByKey( &self, transaction: P0, keyprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Backup<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> + pub unsafe fn Backup(&self, backupdirectory: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).Backup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + (::windows_core::Interface::vtable(self).Backup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), ) .ok() } - pub unsafe fn Restore<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> + pub unsafe fn Restore(&self, backupdirectory: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).Restore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + (::windows_core::Interface::vtable(self).Restore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), ) .ok() } pub unsafe fn CreateTransaction2( &self, settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CreateTransaction2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(settings), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CreateTransaction2)( + ::windows_core::Interface::as_raw(self), + settings, + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreReplica2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStatefulServiceReplica, IFabricKeyValueStoreReplica ); -impl ::core::clone::Clone for IFabricKeyValueStoreReplica2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -5981,12 +6074,17 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreReplica2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreReplica2 { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreReplica2 { type Vtable = IFabricKeyValueStoreReplica2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreReplica2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xfef805b2_5aca_4caa_9c51_fb3bd577a792); +impl ::core::clone::Clone for IFabricKeyValueStoreReplica2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreReplica2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xfef805b2_5aca_4caa_9c51_fb3bd577a792); } #[repr(C)] #[doc(hidden)] @@ -5994,454 +6092,441 @@ pub struct IFabricKeyValueStoreReplica2_Vtbl { pub base__: IFabricKeyValueStoreReplica_Vtbl, pub Backup: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT, + backupdirectory: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT, pub Restore: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT, + backupdirectory: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT, pub CreateTransaction2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, transaction: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreReplica3(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreReplica3(::windows_core::IUnknown); impl IFabricKeyValueStoreReplica3 { - pub unsafe fn BeginOpen<'a, P0, P1>( + pub unsafe fn BeginOpen( &self, openmode: super::super::FABRIC_REPLICA_OPEN_MODE, partition: P0, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginOpen)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndOpen(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginChangeRole<'a, P0>( + pub unsafe fn BeginChangeRole( &self, newrole: super::super::FABRIC_REPLICA_ROLE, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndChangeRole<'a, P0>( + pub unsafe fn EndChangeRole( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginClose<'a, P0>( + pub unsafe fn BeginClose( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndClose)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .Abort)(::windows::core::Vtable::as_raw(self)) + .Abort)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn GetCurrentEpoch(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ - .GetCurrentEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetCurrentEpoch)(::windows_core::Interface::as_raw(self), currentepoch) + .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateReplicatorSettings( &self, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), + ::windows_core::Interface::as_raw(self), replicatorsettings ) .ok() } - pub unsafe fn CreateTransaction(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + pub unsafe fn CreateTransaction(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ - .CreateTransaction)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .CreateTransaction)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn Add<'a, P0, P1>( + pub unsafe fn Add( &self, transaction: P0, key: P1, value: &[u8], - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).base__.base__.Add)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + (::windows_core::Interface::vtable(self).base__.base__.Add)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), ) .ok() } - pub unsafe fn Remove<'a, P0, P1>( + pub unsafe fn Remove( &self, transaction: P0, key: P1, checksequencenumber: i64, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).base__.base__.Remove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + (::windows_core::Interface::vtable(self).base__.base__.Remove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), checksequencenumber, ) .ok() } - pub unsafe fn Update<'a, P0, P1>( + pub unsafe fn Update( &self, transaction: P0, key: P1, value: &[u8], checksequencenumber: i64, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).base__.base__.Update)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + (::windows_core::Interface::vtable(self).base__.base__.Update)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), checksequencenumber, ) .ok() } - pub unsafe fn Get<'a, P0, P1>( + pub unsafe fn Get( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.base__.Get)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.base__.Get)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetMetadata<'a, P0, P1>( + pub unsafe fn GetMetadata( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .GetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Contains<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result + pub unsafe fn Contains(&self, transaction: P0, key: P1) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.base__.Contains)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .Contains)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Enumerate<'a, P0>( + pub unsafe fn Enumerate( &self, transaction: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .Enumerate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateByKey<'a, P0, P1>( + pub unsafe fn EnumerateByKey( &self, transaction: P0, keyprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadata<'a, P0>( + pub unsafe fn EnumerateMetadata( &self, transaction: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EnumerateMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadataByKey<'a, P0, P1>( + pub unsafe fn EnumerateMetadataByKey( &self, transaction: P0, keyprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Backup<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> + pub unsafe fn Backup(&self, backupdirectory: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).base__.Backup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + (::windows_core::Interface::vtable(self).base__.Backup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), ) .ok() } - pub unsafe fn Restore<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> + pub unsafe fn Restore(&self, backupdirectory: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).base__.Restore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + (::windows_core::Interface::vtable(self).base__.Restore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), ) .ok() } pub unsafe fn CreateTransaction2( &self, settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .CreateTransaction2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(settings), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + settings, + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginBackup<'a, P0, P1, P2>( + pub unsafe fn BeginBackup( &self, backupdirectory: P0, backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, postbackuphandler: P1, callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStorePostBackupHandler>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginBackup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginBackup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), backupoption, - postbackuphandler.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + postbackuphandler.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndBackup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndBackup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndBackup)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndBackup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreReplica3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStatefulServiceReplica, IFabricKeyValueStoreReplica, IFabricKeyValueStoreReplica2 ); -impl ::core::clone::Clone for IFabricKeyValueStoreReplica3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -6455,12 +6540,17 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreReplica3 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreReplica3 { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreReplica3 { type Vtable = IFabricKeyValueStoreReplica3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreReplica3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc1297172_a8aa_4096_bdcc_1ece0c5d8c8f); +impl ::core::clone::Clone for IFabricKeyValueStoreReplica3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreReplica3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc1297172_a8aa_4096_bdcc_1ece0c5d8c8f); } #[repr(C)] #[doc(hidden)] @@ -6468,520 +6558,505 @@ pub struct IFabricKeyValueStoreReplica3_Vtbl { pub base__: IFabricKeyValueStoreReplica2_Vtbl, pub BeginBackup: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, + backupdirectory: ::windows_core::PCWSTR, backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, postbackuphandler: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndBackup: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreReplica4(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreReplica4(::windows_core::IUnknown); impl IFabricKeyValueStoreReplica4 { - pub unsafe fn BeginOpen<'a, P0, P1>( + pub unsafe fn BeginOpen( &self, openmode: super::super::FABRIC_REPLICA_OPEN_MODE, partition: P0, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginOpen)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndOpen(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginChangeRole<'a, P0>( + pub unsafe fn BeginChangeRole( &self, newrole: super::super::FABRIC_REPLICA_ROLE, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndChangeRole<'a, P0>( + pub unsafe fn EndChangeRole( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginClose<'a, P0>( + pub unsafe fn BeginClose( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .EndClose)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .Abort)(::windows::core::Vtable::as_raw(self)) + .Abort)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn GetCurrentEpoch(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .GetCurrentEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetCurrentEpoch)(::windows_core::Interface::as_raw(self), currentepoch) + .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateReplicatorSettings( &self, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), + ::windows_core::Interface::as_raw(self), replicatorsettings ) .ok() } - pub unsafe fn CreateTransaction(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + pub unsafe fn CreateTransaction(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .CreateTransaction)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .CreateTransaction)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn Add<'a, P0, P1>( + pub unsafe fn Add( &self, transaction: P0, key: P1, value: &[u8], - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .Add)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), ) .ok() } - pub unsafe fn Remove<'a, P0, P1>( + pub unsafe fn Remove( &self, transaction: P0, key: P1, checksequencenumber: i64, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .Remove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), checksequencenumber, ) .ok() } - pub unsafe fn Update<'a, P0, P1>( + pub unsafe fn Update( &self, transaction: P0, key: P1, value: &[u8], checksequencenumber: i64, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .Update)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), checksequencenumber, ) .ok() } - pub unsafe fn Get<'a, P0, P1>( + pub unsafe fn Get( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .Get)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetMetadata<'a, P0, P1>( + pub unsafe fn GetMetadata( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .GetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Contains<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result + pub unsafe fn Contains(&self, transaction: P0, key: P1) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .Contains)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Enumerate<'a, P0>( + pub unsafe fn Enumerate( &self, transaction: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .Enumerate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateByKey<'a, P0, P1>( + pub unsafe fn EnumerateByKey( &self, transaction: P0, keyprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadata<'a, P0>( + pub unsafe fn EnumerateMetadata( &self, transaction: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EnumerateMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadataByKey<'a, P0, P1>( + pub unsafe fn EnumerateMetadataByKey( &self, transaction: P0, keyprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Backup<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> + pub unsafe fn Backup(&self, backupdirectory: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).base__.base__.Backup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + (::windows_core::Interface::vtable(self).base__.base__.Backup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), ) .ok() } - pub unsafe fn Restore<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> + pub unsafe fn Restore(&self, backupdirectory: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).base__.base__.Restore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + (::windows_core::Interface::vtable(self) + .base__ + .base__ + .Restore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), ) .ok() } pub unsafe fn CreateTransaction2( &self, settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .CreateTransaction2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(settings), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + settings, + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginBackup<'a, P0, P1, P2>( + pub unsafe fn BeginBackup( &self, backupdirectory: P0, backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, postbackuphandler: P1, callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStorePostBackupHandler>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginBackup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginBackup)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), backupoption, - postbackuphandler.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + postbackuphandler.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndBackup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndBackup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndBackup)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).base__.EndBackup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginRestore<'a, P0, P1>( + pub unsafe fn BeginRestore( &self, backupdirectory: P0, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestore<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestore(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRestore)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRestore)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreReplica4, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStatefulServiceReplica, IFabricKeyValueStoreReplica, IFabricKeyValueStoreReplica2, IFabricKeyValueStoreReplica3 ); -impl ::core::clone::Clone for IFabricKeyValueStoreReplica4 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica4 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -6995,12 +7070,17 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreReplica4 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreReplica4 { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreReplica4 { type Vtable = IFabricKeyValueStoreReplica4_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreReplica4 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xff16d2f1_41a9_4c64_804a_a20bf28c04f3); +impl ::core::clone::Clone for IFabricKeyValueStoreReplica4 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreReplica4 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xff16d2f1_41a9_4c64_804a_a20bf28c04f3); } #[repr(C)] #[doc(hidden)] @@ -7008,693 +7088,682 @@ pub struct IFabricKeyValueStoreReplica4_Vtbl { pub base__: IFabricKeyValueStoreReplica3_Vtbl, pub BeginRestore: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, + backupdirectory: ::windows_core::PCWSTR, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRestore: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreReplica5(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreReplica5(::windows_core::IUnknown); impl IFabricKeyValueStoreReplica5 { - pub unsafe fn BeginOpen<'a, P0, P1>( + pub unsafe fn BeginOpen( &self, openmode: super::super::FABRIC_REPLICA_OPEN_MODE, partition: P0, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginOpen)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndOpen(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginChangeRole<'a, P0>( + pub unsafe fn BeginChangeRole( &self, newrole: super::super::FABRIC_REPLICA_ROLE, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndChangeRole<'a, P0>( + pub unsafe fn EndChangeRole( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginClose<'a, P0>( + pub unsafe fn BeginClose( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .EndClose)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .Abort)(::windows::core::Vtable::as_raw(self)) + .Abort)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn GetCurrentEpoch(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .GetCurrentEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetCurrentEpoch)(::windows_core::Interface::as_raw(self), currentepoch) + .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateReplicatorSettings( &self, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), + ::windows_core::Interface::as_raw(self), replicatorsettings ) .ok() } - pub unsafe fn CreateTransaction(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + pub unsafe fn CreateTransaction(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ - .CreateTransaction)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .CreateTransaction)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn Add<'a, P0, P1>( + pub unsafe fn Add( &self, transaction: P0, key: P1, value: &[u8], - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .Add)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), ) .ok() } - pub unsafe fn Remove<'a, P0, P1>( + pub unsafe fn Remove( &self, transaction: P0, key: P1, checksequencenumber: i64, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .Remove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), checksequencenumber, ) .ok() } - pub unsafe fn Update<'a, P0, P1>( + pub unsafe fn Update( &self, transaction: P0, key: P1, value: &[u8], checksequencenumber: i64, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .Update)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), checksequencenumber, ) .ok() } - pub unsafe fn Get<'a, P0, P1>( + pub unsafe fn Get( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .Get)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetMetadata<'a, P0, P1>( + pub unsafe fn GetMetadata( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .GetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Contains<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result + pub unsafe fn Contains(&self, transaction: P0, key: P1) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .Contains)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Enumerate<'a, P0>( + pub unsafe fn Enumerate( &self, transaction: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .Enumerate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateByKey<'a, P0, P1>( + pub unsafe fn EnumerateByKey( &self, transaction: P0, keyprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadata<'a, P0>( + pub unsafe fn EnumerateMetadata( &self, transaction: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EnumerateMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadataByKey<'a, P0, P1>( + pub unsafe fn EnumerateMetadataByKey( &self, transaction: P0, keyprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Backup<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> + pub unsafe fn Backup(&self, backupdirectory: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .Backup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), ) .ok() } - pub unsafe fn Restore<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> + pub unsafe fn Restore(&self, backupdirectory: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .Restore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), ) .ok() } pub unsafe fn CreateTransaction2( &self, settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .CreateTransaction2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(settings), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + settings, + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginBackup<'a, P0, P1, P2>( + pub unsafe fn BeginBackup( &self, backupdirectory: P0, backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, postbackuphandler: P1, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStorePostBackupHandler>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginBackup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), backupoption, - postbackuphandler.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + postbackuphandler.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndBackup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndBackup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndBackup)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndBackup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRestore<'a, P0, P1>( + pub unsafe fn BeginRestore( &self, backupdirectory: P0, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginRestore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginRestore)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestore<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestore(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndRestore)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).base__.EndRestore)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn TryAdd<'a, P0, P1>( + pub unsafe fn TryAdd( &self, transaction: P0, key: P1, value: &[u8], - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryAdd)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryAdd)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn TryRemove<'a, P0, P1>( + pub unsafe fn TryRemove( &self, transaction: P0, key: P1, checksequencenumber: i64, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryRemove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryRemove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), checksequencenumber, - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn TryUpdate<'a, P0, P1>( + pub unsafe fn TryUpdate( &self, transaction: P0, key: P1, value: &[u8], checksequencenumber: i64, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryUpdate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryUpdate)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), checksequencenumber, - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn TryGet<'a, P0, P1>( + pub unsafe fn TryGet( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryGet)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryGet)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn TryGetMetadata<'a, P0, P1>( + pub unsafe fn TryGetMetadata( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).TryGetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).TryGetMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateByKey2<'a, P0, P1, P2>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn EnumerateByKey2( &self, transaction: P0, keyprefix: P1, strictprefix: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateByKey2)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - strictprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateByKey2)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + strictprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadataByKey2<'a, P0, P1, P2>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn EnumerateMetadataByKey2( &self, transaction: P0, keyprefix: P1, strictprefix: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EnumerateMetadataByKey2)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - strictprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EnumerateMetadataByKey2)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + strictprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreReplica5, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStatefulServiceReplica, IFabricKeyValueStoreReplica, IFabricKeyValueStoreReplica2, IFabricKeyValueStoreReplica3, IFabricKeyValueStoreReplica4 ); -impl ::core::clone::Clone for IFabricKeyValueStoreReplica5 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica5 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -7708,12 +7777,17 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreReplica5 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreReplica5 { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreReplica5 { type Vtable = IFabricKeyValueStoreReplica5_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreReplica5 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x34f2da40_6227_448a_be72_c517b0d69432); +impl ::core::clone::Clone for IFabricKeyValueStoreReplica5 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreReplica5 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x34f2da40_6227_448a_be72_c517b0d69432); } #[repr(C)] #[doc(hidden)] @@ -7722,71 +7796,76 @@ pub struct IFabricKeyValueStoreReplica5_Vtbl { pub TryAdd: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, added: *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub TryRemove: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, checksequencenumber: i64, exists: *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub TryUpdate: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, valuesizeinbytes: i32, value: *const u8, checksequencenumber: i64, exists: *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub TryGet: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub TryGetMetadata: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - key: ::windows::core::PCWSTR, + key: ::windows_core::PCWSTR, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub EnumerateByKey2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, strictprefix: ::windows::Win32::Foundation::BOOLEAN, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + EnumerateByKey2: usize, + #[cfg(feature = "Win32_Foundation")] pub EnumerateMetadataByKey2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, transaction: *mut ::core::ffi::c_void, - keyprefix: ::windows::core::PCWSTR, + keyprefix: ::windows_core::PCWSTR, strictprefix: ::windows::Win32::Foundation::BOOLEAN, result: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + EnumerateMetadataByKey2: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricKeyValueStoreReplica6(::windows::core::IUnknown); +pub struct IFabricKeyValueStoreReplica6(::windows_core::IUnknown); impl IFabricKeyValueStoreReplica6 { - pub unsafe fn BeginOpen<'a, P0, P1>( + pub unsafe fn BeginOpen( &self, openmode: super::super::FABRIC_REPLICA_OPEN_MODE, partition: P0, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -7794,20 +7873,20 @@ impl IFabricKeyValueStoreReplica6 { .base__ .base__ .BeginOpen)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndOpen(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -7815,24 +7894,22 @@ impl IFabricKeyValueStoreReplica6 { .base__ .base__ .EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginChangeRole<'a, P0>( + pub unsafe fn BeginChangeRole( &self, newrole: super::super::FABRIC_REPLICA_ROLE, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -7840,22 +7917,22 @@ impl IFabricKeyValueStoreReplica6 { .base__ .base__ .BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndChangeRole<'a, P0>( + pub unsafe fn EndChangeRole( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -7863,23 +7940,21 @@ impl IFabricKeyValueStoreReplica6 { .base__ .base__ .EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginClose<'a, P0>( + pub unsafe fn BeginClose( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ @@ -7887,608 +7962,614 @@ impl IFabricKeyValueStoreReplica6 { .base__ .base__ .BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .base__ - .EndClose)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .base__ - .Abort)(::windows::core::Vtable::as_raw(self)) + .Abort)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn GetCurrentEpoch(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + pub unsafe fn GetCurrentEpoch( + &self, + currentepoch: *mut super::super::FABRIC_EPOCH, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .GetCurrentEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetCurrentEpoch)(::windows_core::Interface::as_raw(self), currentepoch) + .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateReplicatorSettings( &self, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), + ::windows_core::Interface::as_raw(self), replicatorsettings ) .ok() } - pub unsafe fn CreateTransaction(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + pub unsafe fn CreateTransaction(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ - .CreateTransaction)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .CreateTransaction)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn Add<'a, P0, P1>( + pub unsafe fn Add( &self, transaction: P0, key: P1, value: &[u8], - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .Add)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), ) .ok() } - pub unsafe fn Remove<'a, P0, P1>( + pub unsafe fn Remove( &self, transaction: P0, key: P1, checksequencenumber: i64, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .Remove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), checksequencenumber, ) .ok() } - pub unsafe fn Update<'a, P0, P1>( + pub unsafe fn Update( &self, transaction: P0, key: P1, value: &[u8], checksequencenumber: i64, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .Update)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), checksequencenumber, ) .ok() } - pub unsafe fn Get<'a, P0, P1>( + pub unsafe fn Get( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .Get)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetMetadata<'a, P0, P1>( + pub unsafe fn GetMetadata( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .GetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Contains<'a, P0, P1>( - &self, - transaction: P0, - key: P1, - ) -> ::windows::core::Result + pub unsafe fn Contains(&self, transaction: P0, key: P1) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .Contains)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Enumerate<'a, P0>( + pub unsafe fn Enumerate( &self, transaction: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .Enumerate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateByKey<'a, P0, P1>( + pub unsafe fn EnumerateByKey( &self, transaction: P0, keyprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EnumerateByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadata<'a, P0>( + pub unsafe fn EnumerateMetadata( &self, transaction: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EnumerateMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadataByKey<'a, P0, P1>( + pub unsafe fn EnumerateMetadataByKey( &self, transaction: P0, keyprefix: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .base__ .EnumerateMetadataByKey)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Backup<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> + pub unsafe fn Backup(&self, backupdirectory: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .Backup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), ) .ok() } - pub unsafe fn Restore<'a, P0>(&self, backupdirectory: P0) -> ::windows::core::Result<()> + pub unsafe fn Restore(&self, backupdirectory: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .Restore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), ) .ok() } pub unsafe fn CreateTransaction2( &self, settings: *const super::super::FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .base__ .CreateTransaction2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(settings), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + settings, + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginBackup<'a, P0, P1, P2>( + pub unsafe fn BeginBackup( &self, backupdirectory: P0, backupoption: super::super::FABRIC_STORE_BACKUP_OPTION, postbackuphandler: P1, callback: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStorePostBackupHandler>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .BeginBackup)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), backupoption, - postbackuphandler.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + postbackuphandler.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndBackup<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndBackup(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .EndBackup)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndBackup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn BeginRestore<'a, P0, P1>( + pub unsafe fn BeginRestore( &self, backupdirectory: P0, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .BeginRestore)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRestore<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndRestore(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ - .EndRestore)(::windows::core::Vtable::as_raw(self), context.into().abi()) + .EndRestore)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + ) .ok() } - pub unsafe fn TryAdd<'a, P0, P1>( + pub unsafe fn TryAdd( &self, transaction: P0, key: P1, value: &[u8], - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.TryAdd)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.TryAdd)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn TryRemove<'a, P0, P1>( + pub unsafe fn TryRemove( &self, transaction: P0, key: P1, checksequencenumber: i64, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.TryRemove)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.TryRemove)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), checksequencenumber, - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn TryUpdate<'a, P0, P1>( + pub unsafe fn TryUpdate( &self, transaction: P0, key: P1, value: &[u8], checksequencenumber: i64, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.TryUpdate)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.TryUpdate)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), value.len() as _, ::core::mem::transmute(value.as_ptr()), checksequencenumber, - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn TryGet<'a, P0, P1>( + pub unsafe fn TryGet( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.TryGet)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.TryGet)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn TryGetMetadata<'a, P0, P1>( + pub unsafe fn TryGetMetadata( &self, transaction: P0, key: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.TryGetMetadata)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - key.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .TryGetMetadata)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + key.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateByKey2<'a, P0, P1, P2>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn EnumerateByKey2( &self, transaction: P0, keyprefix: P1, strictprefix: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EnumerateByKey2)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - strictprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EnumerateByKey2)( + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + strictprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EnumerateMetadataByKey2<'a, P0, P1, P2>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn EnumerateMetadataByKey2( &self, transaction: P0, keyprefix: P1, strictprefix: P2, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransactionBase>>, - P1: ::std::convert::Into<::windows::core::PCWSTR>, - P2: ::std::convert::Into<::windows::Win32::Foundation::BOOLEAN>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P2: ::windows_core::IntoParam<::windows::Win32::Foundation::BOOLEAN>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .EnumerateMetadataByKey2)( - ::windows::core::Vtable::as_raw(self), - transaction.into().abi(), - keyprefix.into(), - strictprefix.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + transaction.into_param().abi(), + keyprefix.into_param().abi(), + strictprefix.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRestore2<'a, P0, P1>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn BeginRestore2( &self, backupdirectory: P0, settings: *const super::super::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRestore2)( - ::windows::core::Vtable::as_raw(self), - backupdirectory.into(), - ::core::mem::transmute(settings), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRestore2)( + ::windows_core::Interface::as_raw(self), + backupdirectory.into_param().abi(), + settings, + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricKeyValueStoreReplica6, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStatefulServiceReplica, IFabricKeyValueStoreReplica, IFabricKeyValueStoreReplica2, @@ -8496,11 +8577,6 @@ impl IFabricKeyValueStoreReplica6 { IFabricKeyValueStoreReplica4, IFabricKeyValueStoreReplica5 ); -impl ::core::clone::Clone for IFabricKeyValueStoreReplica6 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricKeyValueStoreReplica6 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -8514,40 +8590,44 @@ impl ::core::fmt::Debug for IFabricKeyValueStoreReplica6 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricKeyValueStoreReplica6 { +unsafe impl ::windows_core::Interface for IFabricKeyValueStoreReplica6 { type Vtable = IFabricKeyValueStoreReplica6_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricKeyValueStoreReplica6 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x56e77be1_e81f_4e42_8522_162c2d608184); +impl ::core::clone::Clone for IFabricKeyValueStoreReplica6 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricKeyValueStoreReplica6 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x56e77be1_e81f_4e42_8522_162c2d608184); } #[repr(C)] #[doc(hidden)] pub struct IFabricKeyValueStoreReplica6_Vtbl { pub base__: IFabricKeyValueStoreReplica5_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub BeginRestore2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - backupdirectory: ::windows::core::PCWSTR, + backupdirectory: ::windows_core::PCWSTR, settings: *const super::super::FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + BeginRestore2: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricNodeContextResult(::windows::core::IUnknown); +pub struct IFabricNodeContextResult(::windows_core::IUnknown); impl IFabricNodeContextResult { pub unsafe fn get_NodeContext(&self) -> *mut super::super::FABRIC_NODE_CONTEXT { - (::windows::core::Vtable::vtable(self).get_NodeContext)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricNodeContextResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricNodeContextResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_NodeContext)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!(IFabricNodeContextResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricNodeContextResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -8561,55 +8641,56 @@ impl ::core::fmt::Debug for IFabricNodeContextResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricNodeContextResult { +unsafe impl ::windows_core::Interface for IFabricNodeContextResult { type Vtable = IFabricNodeContextResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricNodeContextResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0952f885_6f5a_4ed3_abe4_90c403d1e3ce); +impl ::core::clone::Clone for IFabricNodeContextResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricNodeContextResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0952f885_6f5a_4ed3_abe4_90c403d1e3ce); } #[repr(C)] #[doc(hidden)] pub struct IFabricNodeContextResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_NodeContext: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_NODE_CONTEXT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricNodeContextResult2(::windows::core::IUnknown); +pub struct IFabricNodeContextResult2(::windows_core::IUnknown); impl IFabricNodeContextResult2 { pub unsafe fn get_NodeContext(&self) -> *mut super::super::FABRIC_NODE_CONTEXT { - (::windows::core::Vtable::vtable(self).base__.get_NodeContext)( - ::windows::core::Vtable::as_raw(self), - ) + (::windows_core::Interface::vtable(self) + .base__ + .get_NodeContext)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn GetDirectory<'a, P0>( + pub unsafe fn GetDirectory( &self, logicaldirectoryname: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetDirectory)( - ::windows::core::Vtable::as_raw(self), - logicaldirectoryname.into(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetDirectory)( + ::windows_core::Interface::as_raw(self), + logicaldirectoryname.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricNodeContextResult2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricNodeContextResult ); -impl ::core::clone::Clone for IFabricNodeContextResult2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricNodeContextResult2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -8623,12 +8704,17 @@ impl ::core::fmt::Debug for IFabricNodeContextResult2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricNodeContextResult2 { +unsafe impl ::windows_core::Interface for IFabricNodeContextResult2 { type Vtable = IFabricNodeContextResult2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricNodeContextResult2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x472bf2e1_d617_4b5c_a91d_fabed9ff3550); +impl ::core::clone::Clone for IFabricNodeContextResult2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricNodeContextResult2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x472bf2e1_d617_4b5c_a91d_fabed9ff3550); } #[repr(C)] #[doc(hidden)] @@ -8636,39 +8722,39 @@ pub struct IFabricNodeContextResult2_Vtbl { pub base__: IFabricNodeContextResult_Vtbl, pub GetDirectory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - logicaldirectoryname: ::windows::core::PCWSTR, + logicaldirectoryname: ::windows_core::PCWSTR, directorypath: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricOperation(::windows::core::IUnknown); +pub struct IFabricOperation(::windows_core::IUnknown); impl IFabricOperation { pub unsafe fn get_Metadata(&self) -> *mut super::super::FABRIC_OPERATION_METADATA { - (::windows::core::Vtable::vtable(self).get_Metadata)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).get_Metadata)(::windows_core::Interface::as_raw( + self, + )) } pub unsafe fn GetData( &self, count: *mut u32, buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetData)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(count), - ::core::mem::transmute(buffers), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetData)( + ::windows_core::Interface::as_raw(self), + count, + buffers, ) .ok() } - pub unsafe fn Acknowledge(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).Acknowledge)(::windows::core::Vtable::as_raw(self)) - .ok() - } -} -::windows::core::interface_hierarchy!(IFabricOperation, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricOperation { - fn clone(&self) -> Self { - Self(self.0.clone()) + pub unsafe fn Acknowledge(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).Acknowledge)(::windows_core::Interface::as_raw( + self, + )) + .ok() } } +::windows_core::imp::interface_hierarchy!(IFabricOperation, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricOperation { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -8680,17 +8766,22 @@ impl ::core::fmt::Debug for IFabricOperation { f.debug_tuple("IFabricOperation").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricOperation { +unsafe impl ::windows_core::Interface for IFabricOperation { type Vtable = IFabricOperation_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricOperation { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf4ad6bfa_e23c_4a48_9617_c099cd59a23a); +impl ::core::clone::Clone for IFabricOperation { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricOperation { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf4ad6bfa_e23c_4a48_9617_c099cd59a23a); } #[repr(C)] #[doc(hidden)] pub struct IFabricOperation_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Metadata: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) @@ -8699,32 +8790,28 @@ pub struct IFabricOperation_Vtbl { this: *mut ::core::ffi::c_void, count: *mut u32, buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Acknowledge: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricOperationData(::windows::core::IUnknown); +pub struct IFabricOperationData(::windows_core::IUnknown); impl IFabricOperationData { pub unsafe fn GetData( &self, count: *mut u32, buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetData)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(count), - ::core::mem::transmute(buffers), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetData)( + ::windows_core::Interface::as_raw(self), + count, + buffers, ) .ok() } } -::windows::core::interface_hierarchy!(IFabricOperationData, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricOperationData { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricOperationData, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricOperationData { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -8738,65 +8825,61 @@ impl ::core::fmt::Debug for IFabricOperationData { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricOperationData { +unsafe impl ::windows_core::Interface for IFabricOperationData { type Vtable = IFabricOperationData_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricOperationData { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xbab8ad87_37b7_482a_985d_baf38a785dcd); +impl ::core::clone::Clone for IFabricOperationData { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricOperationData { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xbab8ad87_37b7_482a_985d_baf38a785dcd); } #[repr(C)] #[doc(hidden)] pub struct IFabricOperationData_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub GetData: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, count: *mut u32, buffers: *mut *mut super::super::FABRIC_OPERATION_DATA_BUFFER, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricOperationDataStream(::windows::core::IUnknown); +pub struct IFabricOperationDataStream(::windows_core::IUnknown); impl IFabricOperationDataStream { - pub unsafe fn BeginGetNext<'a, P0>( + pub unsafe fn BeginGetNext( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetNext)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetNext)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetNext<'a, P0>( - &self, - context: P0, - ) -> ::windows::core::Result + pub unsafe fn EndGetNext(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetNext)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetNext)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricOperationDataStream, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricOperationDataStream { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricOperationDataStream, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricOperationDataStream { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -8810,70 +8893,69 @@ impl ::core::fmt::Debug for IFabricOperationDataStream { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricOperationDataStream { +unsafe impl ::windows_core::Interface for IFabricOperationDataStream { type Vtable = IFabricOperationDataStream_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricOperationDataStream { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc4e9084c_be92_49c9_8c18_d44d088c2e32); +impl ::core::clone::Clone for IFabricOperationDataStream { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricOperationDataStream { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc4e9084c_be92_49c9_8c18_d44d088c2e32); } #[repr(C)] #[doc(hidden)] pub struct IFabricOperationDataStream_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginGetNext: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetNext: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, operationdata: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricOperationStream(::windows::core::IUnknown); +pub struct IFabricOperationStream(::windows_core::IUnknown); impl IFabricOperationStream { - pub unsafe fn BeginGetOperation<'a, P0>( + pub unsafe fn BeginGetOperation( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginGetOperation)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginGetOperation)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetOperation<'a, P0>( + pub unsafe fn EndGetOperation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndGetOperation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndGetOperation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricOperationStream, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricOperationStream { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricOperationStream, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricOperationStream { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -8887,86 +8969,87 @@ impl ::core::fmt::Debug for IFabricOperationStream { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricOperationStream { +unsafe impl ::windows_core::Interface for IFabricOperationStream { type Vtable = IFabricOperationStream_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricOperationStream { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa98fb97a_d6b0_408a_a878_a9edb09c2587); +impl ::core::clone::Clone for IFabricOperationStream { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricOperationStream { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa98fb97a_d6b0_408a_a878_a9edb09c2587); } #[repr(C)] #[doc(hidden)] pub struct IFabricOperationStream_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginGetOperation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndGetOperation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, operation: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricOperationStream2(::windows::core::IUnknown); +pub struct IFabricOperationStream2(::windows_core::IUnknown); impl IFabricOperationStream2 { - pub unsafe fn BeginGetOperation<'a, P0>( + pub unsafe fn BeginGetOperation( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginGetOperation)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndGetOperation<'a, P0>( + pub unsafe fn EndGetOperation( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndGetOperation)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .EndGetOperation)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn ReportFault( &self, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportFault)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportFault)( + ::windows_core::Interface::as_raw(self), faulttype, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricOperationStream2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricOperationStream ); -impl ::core::clone::Clone for IFabricOperationStream2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricOperationStream2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -8980,12 +9063,17 @@ impl ::core::fmt::Debug for IFabricOperationStream2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricOperationStream2 { +unsafe impl ::windows_core::Interface for IFabricOperationStream2 { type Vtable = IFabricOperationStream2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricOperationStream2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x0930199b_590a_4065_bec9_5f93b6aae086); +impl ::core::clone::Clone for IFabricOperationStream2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricOperationStream2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x0930199b_590a_4065_bec9_5f93b6aae086); } #[repr(C)] #[doc(hidden)] @@ -8994,282 +9082,264 @@ pub struct IFabricOperationStream2_Vtbl { pub ReportFault: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricPrimaryReplicator(::windows::core::IUnknown); +pub struct IFabricPrimaryReplicator(::windows_core::IUnknown); impl IFabricPrimaryReplicator { - pub unsafe fn BeginOpen<'a, P0>( + pub unsafe fn BeginOpen( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginOpen)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginOpen)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOpen<'a, P0>( + pub unsafe fn EndOpen( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginChangeRole<'a, P0>( + pub unsafe fn BeginChangeRole( &self, epoch: *const super::super::FABRIC_EPOCH, role: super::super::FABRIC_REPLICA_ROLE, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(epoch), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .BeginChangeRole)( + ::windows_core::Interface::as_raw(self), + epoch, role, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndChangeRole<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndChangeRole(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).base__.EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateEpoch<'a, P0>( + pub unsafe fn BeginUpdateEpoch( &self, epoch: *const super::super::FABRIC_EPOCH, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .BeginUpdateEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(epoch), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + ::windows_core::Interface::as_raw(self), + epoch, + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateEpoch<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateEpoch(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndUpdateEpoch)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self) + .base__ + .EndUpdateEpoch)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginClose<'a, P0>( + pub unsafe fn BeginClose( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).base__.EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).base__.EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).base__.Abort)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).base__.Abort)(::windows_core::Interface::as_raw( + self, + )) } - pub unsafe fn GetCurrentProgress(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + pub unsafe fn GetCurrentProgress(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ - .GetCurrentProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetCurrentProgress)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn GetCatchUpCapability(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + pub unsafe fn GetCatchUpCapability(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ - .GetCatchUpCapability)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetCatchUpCapability)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn BeginOnDataLoss<'a, P0>( + pub unsafe fn BeginOnDataLoss( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOnDataLoss)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOnDataLoss)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOnDataLoss<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndOnDataLoss(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOnDataLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOnDataLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn UpdateCatchUpReplicaSetConfiguration( &self, currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, previousconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UpdateCatchUpReplicaSetConfiguration)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(currentconfiguration), - ::core::mem::transmute(previousconfiguration), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UpdateCatchUpReplicaSetConfiguration)( + ::windows_core::Interface::as_raw(self), + currentconfiguration, + previousconfiguration, ) .ok() } - pub unsafe fn BeginWaitForCatchUpQuorum<'a, P0>( + pub unsafe fn BeginWaitForCatchUpQuorum( &self, catchupmode: super::super::FABRIC_REPLICA_SET_QUORUM_MODE, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginWaitForCatchUpQuorum)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginWaitForCatchUpQuorum)( + ::windows_core::Interface::as_raw(self), catchupmode, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndWaitForCatchUpQuorum<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndWaitForCatchUpQuorum(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndWaitForCatchUpQuorum)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndWaitForCatchUpQuorum)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } pub unsafe fn UpdateCurrentReplicaSetConfiguration( &self, currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UpdateCurrentReplicaSetConfiguration)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(currentconfiguration), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UpdateCurrentReplicaSetConfiguration)( + ::windows_core::Interface::as_raw(self), + currentconfiguration, ) .ok() } - pub unsafe fn BeginBuildReplica<'a, P0>( + pub unsafe fn BeginBuildReplica( &self, replica: *const super::super::FABRIC_REPLICA_INFORMATION, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginBuildReplica)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replica), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginBuildReplica)( + ::windows_core::Interface::as_raw(self), + replica, + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndBuildReplica<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndBuildReplica(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndBuildReplica)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndBuildReplica)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn RemoveReplica(&self, replicaid: i64) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).RemoveReplica)( - ::windows::core::Vtable::as_raw(self), + pub unsafe fn RemoveReplica(&self, replicaid: i64) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).RemoveReplica)( + ::windows_core::Interface::as_raw(self), replicaid, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricPrimaryReplicator, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricReplicator ); -impl ::core::clone::Clone for IFabricPrimaryReplicator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricPrimaryReplicator { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -9283,12 +9353,17 @@ impl ::core::fmt::Debug for IFabricPrimaryReplicator { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricPrimaryReplicator { +unsafe impl ::windows_core::Interface for IFabricPrimaryReplicator { type Vtable = IFabricPrimaryReplicator_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricPrimaryReplicator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x564e50dd_c3a4_4600_a60e_6658874307ae); +impl ::core::clone::Clone for IFabricPrimaryReplicator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricPrimaryReplicator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x564e50dd_c3a4_4600_a60e_6658874307ae); } #[repr(C)] #[doc(hidden)] @@ -9298,63 +9373,59 @@ pub struct IFabricPrimaryReplicator_Vtbl { this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndOnDataLoss: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, isstatechanged: *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub UpdateCatchUpReplicaSetConfiguration: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, previousconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub BeginWaitForCatchUpQuorum: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, catchupmode: super::super::FABRIC_REPLICA_SET_QUORUM_MODE, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndWaitForCatchUpQuorum: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub UpdateCurrentReplicaSetConfiguration: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, currentconfiguration: *const super::super::FABRIC_REPLICA_SET_CONFIGURATION, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub BeginBuildReplica: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, replica: *const super::super::FABRIC_REPLICA_INFORMATION, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndBuildReplica: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub RemoveReplica: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, replicaid: i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricProcessExitHandler(::windows::core::IUnknown); +pub struct IFabricProcessExitHandler(::windows_core::IUnknown); impl IFabricProcessExitHandler { pub unsafe fn FabricProcessExited(&self) { - (::windows::core::Vtable::vtable(self).FabricProcessExited)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).FabricProcessExited)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricProcessExitHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricProcessExitHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricProcessExitHandler, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricProcessExitHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -9368,167 +9439,160 @@ impl ::core::fmt::Debug for IFabricProcessExitHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricProcessExitHandler { +unsafe impl ::windows_core::Interface for IFabricProcessExitHandler { type Vtable = IFabricProcessExitHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricProcessExitHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc58d50a2_01f0_4267_bbe7_223b565c1346); +impl ::core::clone::Clone for IFabricProcessExitHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricProcessExitHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc58d50a2_01f0_4267_bbe7_223b565c1346); } #[repr(C)] #[doc(hidden)] pub struct IFabricProcessExitHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub FabricProcessExited: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricReplicator(::windows::core::IUnknown); +pub struct IFabricReplicator(::windows_core::IUnknown); impl IFabricReplicator { - pub unsafe fn BeginOpen<'a, P0>( + pub unsafe fn BeginOpen( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOpen)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOpen)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOpen<'a, P0>( + pub unsafe fn EndOpen( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginChangeRole<'a, P0>( + pub unsafe fn BeginChangeRole( &self, epoch: *const super::super::FABRIC_EPOCH, role: super::super::FABRIC_REPLICA_ROLE, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(epoch), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginChangeRole)( + ::windows_core::Interface::as_raw(self), + epoch, role, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndChangeRole<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndChangeRole(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginUpdateEpoch<'a, P0>( + pub unsafe fn BeginUpdateEpoch( &self, epoch: *const super::super::FABRIC_EPOCH, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(epoch), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateEpoch)( + ::windows_core::Interface::as_raw(self), + epoch, + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateEpoch<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateEpoch(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUpdateEpoch)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUpdateEpoch)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginClose<'a, P0>( + pub unsafe fn BeginClose( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).Abort)(::windows::core::Vtable::as_raw(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::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCurrentProgress)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetCurrentProgress(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCurrentProgress)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetCatchUpCapability(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCatchUpCapability)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetCatchUpCapability(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCatchUpCapability)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricReplicator, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricReplicator { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricReplicator, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricReplicator { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -9540,79 +9604,80 @@ impl ::core::fmt::Debug for IFabricReplicator { f.debug_tuple("IFabricReplicator").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricReplicator { +unsafe impl ::windows_core::Interface for IFabricReplicator { type Vtable = IFabricReplicator_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricReplicator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x067f144a_e5be_4f5e_a181_8b5593e20242); +impl ::core::clone::Clone for IFabricReplicator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricReplicator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x067f144a_e5be_4f5e_a181_8b5593e20242); } #[repr(C)] #[doc(hidden)] pub struct IFabricReplicator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginOpen: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndOpen: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, replicationaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginChangeRole: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, epoch: *const super::super::FABRIC_EPOCH, role: super::super::FABRIC_REPLICA_ROLE, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndChangeRole: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginUpdateEpoch: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, epoch: *const super::super::FABRIC_EPOCH, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndUpdateEpoch: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginClose: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndClose: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), pub GetCurrentProgress: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, lastsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetCatchUpCapability: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, fromsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricReplicatorCatchupSpecificQuorum(::windows::core::IUnknown); +pub struct IFabricReplicatorCatchupSpecificQuorum(::windows_core::IUnknown); impl IFabricReplicatorCatchupSpecificQuorum {} -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricReplicatorCatchupSpecificQuorum, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricReplicatorCatchupSpecificQuorum { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricReplicatorCatchupSpecificQuorum { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -9626,33 +9691,39 @@ impl ::core::fmt::Debug for IFabricReplicatorCatchupSpecificQuorum { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricReplicatorCatchupSpecificQuorum { +unsafe impl ::windows_core::Interface for IFabricReplicatorCatchupSpecificQuorum { type Vtable = IFabricReplicatorCatchupSpecificQuorum_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricReplicatorCatchupSpecificQuorum { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xaa3116fe_277d_482d_bd16_5366fa405757); +impl ::core::clone::Clone for IFabricReplicatorCatchupSpecificQuorum { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricReplicatorCatchupSpecificQuorum { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xaa3116fe_277d_482d_bd16_5366fa405757); } #[repr(C)] #[doc(hidden)] pub struct IFabricReplicatorCatchupSpecificQuorum_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricReplicatorSettingsResult(::windows::core::IUnknown); +pub struct IFabricReplicatorSettingsResult(::windows_core::IUnknown); impl IFabricReplicatorSettingsResult { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn get_ReplicatorSettings(&self) -> *mut super::super::FABRIC_REPLICATOR_SETTINGS { - (::windows::core::Vtable::vtable(self).get_ReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ReplicatorSettings)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricReplicatorSettingsResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricReplicatorSettingsResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricReplicatorSettingsResult, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricReplicatorSettingsResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -9666,204 +9737,202 @@ impl ::core::fmt::Debug for IFabricReplicatorSettingsResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricReplicatorSettingsResult { +unsafe impl ::windows_core::Interface for IFabricReplicatorSettingsResult { type Vtable = IFabricReplicatorSettingsResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricReplicatorSettingsResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x718954f3_dc1e_4060_9806_0cbf36f71051); +impl ::core::clone::Clone for IFabricReplicatorSettingsResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricReplicatorSettingsResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x718954f3_dc1e_4060_9806_0cbf36f71051); } #[repr(C)] #[doc(hidden)] pub struct IFabricReplicatorSettingsResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub get_ReplicatorSettings: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_REPLICATOR_SETTINGS, + #[cfg(not(feature = "Win32_Foundation"))] + get_ReplicatorSettings: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricRuntime(::windows::core::IUnknown); +pub struct IFabricRuntime(::windows_core::IUnknown); impl IFabricRuntime { - pub unsafe fn BeginRegisterStatelessServiceFactory<'a, P0, P1, P2>( + pub unsafe fn BeginRegisterStatelessServiceFactory( &self, servicetypename: P0, factory: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatelessServiceFactory>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRegisterStatelessServiceFactory)( - ::windows::core::Vtable::as_raw(self), - servicetypename.into(), - factory.into().abi(), + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRegisterStatelessServiceFactory)( + ::windows_core::Interface::as_raw(self), + servicetypename.into_param().abi(), + factory.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRegisterStatelessServiceFactory<'a, P0>( + pub unsafe fn EndRegisterStatelessServiceFactory( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRegisterStatelessServiceFactory)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRegisterStatelessServiceFactory)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn RegisterStatelessServiceFactory<'a, P0, P1>( + pub unsafe fn RegisterStatelessServiceFactory( &self, servicetypename: P0, factory: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatelessServiceFactory>>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).RegisterStatelessServiceFactory)( - ::windows::core::Vtable::as_raw(self), - servicetypename.into(), - factory.into().abi(), + (::windows_core::Interface::vtable(self).RegisterStatelessServiceFactory)( + ::windows_core::Interface::as_raw(self), + servicetypename.into_param().abi(), + factory.into_param().abi(), ) .ok() } - pub unsafe fn BeginRegisterStatefulServiceFactory<'a, P0, P1, P2>( + pub unsafe fn BeginRegisterStatefulServiceFactory( &self, servicetypename: P0, factory: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServiceFactory>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRegisterStatefulServiceFactory)( - ::windows::core::Vtable::as_raw(self), - servicetypename.into(), - factory.into().abi(), + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRegisterStatefulServiceFactory)( + ::windows_core::Interface::as_raw(self), + servicetypename.into_param().abi(), + factory.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRegisterStatefulServiceFactory<'a, P0>( + pub unsafe fn EndRegisterStatefulServiceFactory( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRegisterStatefulServiceFactory)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRegisterStatefulServiceFactory)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn RegisterStatefulServiceFactory<'a, P0, P1>( + pub unsafe fn RegisterStatefulServiceFactory( &self, servicetypename: P0, factory: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServiceFactory>>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).RegisterStatefulServiceFactory)( - ::windows::core::Vtable::as_raw(self), - servicetypename.into(), - factory.into().abi(), + (::windows_core::Interface::vtable(self).RegisterStatefulServiceFactory)( + ::windows_core::Interface::as_raw(self), + servicetypename.into_param().abi(), + factory.into_param().abi(), ) .ok() } pub unsafe fn CreateServiceGroupFactoryBuilder( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CreateServiceGroupFactoryBuilder)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CreateServiceGroupFactoryBuilder)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginRegisterServiceGroupFactory<'a, P0, P1, P2>( + pub unsafe fn BeginRegisterServiceGroupFactory( &self, groupservicetype: P0, factory: P1, timeoutmilliseconds: u32, callback: P2, - ) -> ::windows::core::Result - where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceGroupFactory>>, - P2: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRegisterServiceGroupFactory)( - ::windows::core::Vtable::as_raw(self), - groupservicetype.into(), - factory.into().abi(), + ) -> ::windows_core::Result + where + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRegisterServiceGroupFactory)( + ::windows_core::Interface::as_raw(self), + groupservicetype.into_param().abi(), + factory.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRegisterServiceGroupFactory<'a, P0>( + pub unsafe fn EndRegisterServiceGroupFactory( &self, context: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndRegisterServiceGroupFactory)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndRegisterServiceGroupFactory)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn RegisterServiceGroupFactory<'a, P0, P1>( + pub unsafe fn RegisterServiceGroupFactory( &self, groupservicetype: P0, factory: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricServiceGroupFactory>>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).RegisterServiceGroupFactory)( - ::windows::core::Vtable::as_raw(self), - groupservicetype.into(), - factory.into().abi(), + (::windows_core::Interface::vtable(self).RegisterServiceGroupFactory)( + ::windows_core::Interface::as_raw(self), + groupservicetype.into_param().abi(), + factory.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!(IFabricRuntime, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricRuntime { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricRuntime, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricRuntime { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -9875,114 +9944,108 @@ impl ::core::fmt::Debug for IFabricRuntime { f.debug_tuple("IFabricRuntime").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricRuntime { +unsafe impl ::windows_core::Interface for IFabricRuntime { type Vtable = IFabricRuntime_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricRuntime { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcc53af8e_74cd_11df_ac3e_0024811e3892); +impl ::core::clone::Clone for IFabricRuntime { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricRuntime { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcc53af8e_74cd_11df_ac3e_0024811e3892); } #[repr(C)] #[doc(hidden)] pub struct IFabricRuntime_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginRegisterStatelessServiceFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub EndRegisterStatelessServiceFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub RegisterStatelessServiceFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginRegisterStatefulServiceFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub EndRegisterStatefulServiceFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, ) - -> ::windows::core::HRESULT, + -> ::windows_core::HRESULT, pub RegisterStatefulServiceFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub CreateServiceGroupFactoryBuilder: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, builder: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginRegisterServiceGroupFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - groupservicetype: ::windows::core::PCWSTR, + groupservicetype: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) - -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRegisterServiceGroupFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub RegisterServiceGroupFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - groupservicetype: ::windows::core::PCWSTR, + groupservicetype: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricSecondaryEventHandler(::windows::core::IUnknown); +pub struct IFabricSecondaryEventHandler(::windows_core::IUnknown); impl IFabricSecondaryEventHandler { - pub unsafe fn OnCopyComplete<'a, P0>(&self, enumerator: P0) -> ::windows::core::Result<()> + pub unsafe fn OnCopyComplete(&self, enumerator: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricKeyValueStoreEnumerator>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnCopyComplete)( - ::windows::core::Vtable::as_raw(self), - enumerator.into().abi(), + (::windows_core::Interface::vtable(self).OnCopyComplete)( + ::windows_core::Interface::as_raw(self), + enumerator.into_param().abi(), ) .ok() } - pub unsafe fn OnReplicationOperation<'a, P0>( - &self, - enumerator: P0, - ) -> ::windows::core::Result<()> + pub unsafe fn OnReplicationOperation(&self, enumerator: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, IFabricKeyValueStoreNotificationEnumerator>, - >, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).OnReplicationOperation)( - ::windows::core::Vtable::as_raw(self), - enumerator.into().abi(), + (::windows_core::Interface::vtable(self).OnReplicationOperation)( + ::windows_core::Interface::as_raw(self), + enumerator.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!(IFabricSecondaryEventHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricSecondaryEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricSecondaryEventHandler, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricSecondaryEventHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -9996,41 +10059,45 @@ impl ::core::fmt::Debug for IFabricSecondaryEventHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricSecondaryEventHandler { +unsafe impl ::windows_core::Interface for IFabricSecondaryEventHandler { type Vtable = IFabricSecondaryEventHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricSecondaryEventHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x7d124a7d_258e_49f2_a9b0_e800406103fb); +impl ::core::clone::Clone for IFabricSecondaryEventHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricSecondaryEventHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x7d124a7d_258e_49f2_a9b0_e800406103fb); } #[repr(C)] #[doc(hidden)] pub struct IFabricSecondaryEventHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub OnCopyComplete: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, enumerator: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub OnReplicationOperation: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, enumerator: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricSecurityCredentialsResult(::windows::core::IUnknown); +pub struct IFabricSecurityCredentialsResult(::windows_core::IUnknown); impl IFabricSecurityCredentialsResult { pub unsafe fn get_SecurityCredentials(&self) -> *mut super::super::FABRIC_SECURITY_CREDENTIALS { - (::windows::core::Vtable::vtable(self).get_SecurityCredentials)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_SecurityCredentials)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricSecurityCredentialsResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricSecurityCredentialsResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricSecurityCredentialsResult, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricSecurityCredentialsResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -10044,31 +10111,32 @@ impl ::core::fmt::Debug for IFabricSecurityCredentialsResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricSecurityCredentialsResult { +unsafe impl ::windows_core::Interface for IFabricSecurityCredentialsResult { type Vtable = IFabricSecurityCredentialsResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricSecurityCredentialsResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x049a111d_6a30_48e9_8f69_470760d3efb9); +impl ::core::clone::Clone for IFabricSecurityCredentialsResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricSecurityCredentialsResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x049a111d_6a30_48e9_8f69_470760d3efb9); } #[repr(C)] #[doc(hidden)] pub struct IFabricSecurityCredentialsResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_SecurityCredentials: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::super::FABRIC_SECURITY_CREDENTIALS, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricServiceGroupFactory(::windows::core::IUnknown); +pub struct IFabricServiceGroupFactory(::windows_core::IUnknown); impl IFabricServiceGroupFactory {} -::windows::core::interface_hierarchy!(IFabricServiceGroupFactory, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceGroupFactory { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricServiceGroupFactory, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricServiceGroupFactory { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -10082,83 +10150,87 @@ impl ::core::fmt::Debug for IFabricServiceGroupFactory { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceGroupFactory { +unsafe impl ::windows_core::Interface for IFabricServiceGroupFactory { type Vtable = IFabricServiceGroupFactory_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceGroupFactory { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3860d61d_1e51_4a65_b109_d93c11311657); +impl ::core::clone::Clone for IFabricServiceGroupFactory { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceGroupFactory { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3860d61d_1e51_4a65_b109_d93c11311657); } #[repr(C)] #[doc(hidden)] pub struct IFabricServiceGroupFactory_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricServiceGroupFactoryBuilder(::windows::core::IUnknown); +pub struct IFabricServiceGroupFactoryBuilder(::windows_core::IUnknown); impl IFabricServiceGroupFactoryBuilder { - pub unsafe fn AddStatelessServiceFactory<'a, P0, P1>( + pub unsafe fn AddStatelessServiceFactory( &self, memberservicetype: P0, factory: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatelessServiceFactory>>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).AddStatelessServiceFactory)( - ::windows::core::Vtable::as_raw(self), - memberservicetype.into(), - factory.into().abi(), + (::windows_core::Interface::vtable(self).AddStatelessServiceFactory)( + ::windows_core::Interface::as_raw(self), + memberservicetype.into_param().abi(), + factory.into_param().abi(), ) .ok() } - pub unsafe fn AddStatefulServiceFactory<'a, P0, P1>( + pub unsafe fn AddStatefulServiceFactory( &self, memberservicetype: P0, factory: P1, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServiceFactory>>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).AddStatefulServiceFactory)( - ::windows::core::Vtable::as_raw(self), - memberservicetype.into(), - factory.into().abi(), + (::windows_core::Interface::vtable(self).AddStatefulServiceFactory)( + ::windows_core::Interface::as_raw(self), + memberservicetype.into_param().abi(), + factory.into_param().abi(), ) .ok() } - pub unsafe fn RemoveServiceFactory<'a, P0>( + pub unsafe fn RemoveServiceFactory( &self, memberservicetype: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).RemoveServiceFactory)( - ::windows::core::Vtable::as_raw(self), - memberservicetype.into(), + (::windows_core::Interface::vtable(self).RemoveServiceFactory)( + ::windows_core::Interface::as_raw(self), + memberservicetype.into_param().abi(), ) .ok() } pub unsafe fn ToServiceGroupFactory( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).ToServiceGroupFactory)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).ToServiceGroupFactory)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricServiceGroupFactoryBuilder, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceGroupFactoryBuilder { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!( + IFabricServiceGroupFactoryBuilder, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricServiceGroupFactoryBuilder { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -10172,60 +10244,61 @@ impl ::core::fmt::Debug for IFabricServiceGroupFactoryBuilder { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceGroupFactoryBuilder { +unsafe impl ::windows_core::Interface for IFabricServiceGroupFactoryBuilder { type Vtable = IFabricServiceGroupFactoryBuilder_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceGroupFactoryBuilder { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa9fe8b06_19b1_49e6_8911_41d9d9219e1c); +impl ::core::clone::Clone for IFabricServiceGroupFactoryBuilder { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceGroupFactoryBuilder { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa9fe8b06_19b1_49e6_8911_41d9d9219e1c); } #[repr(C)] #[doc(hidden)] pub struct IFabricServiceGroupFactoryBuilder_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub AddStatelessServiceFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - memberservicetype: ::windows::core::PCWSTR, + memberservicetype: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub AddStatefulServiceFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - memberservicetype: ::windows::core::PCWSTR, + memberservicetype: ::windows_core::PCWSTR, factory: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub RemoveServiceFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - memberservicetype: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT, + memberservicetype: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT, pub ToServiceGroupFactory: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, factory: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricServiceGroupPartition(::windows::core::IUnknown); +pub struct IFabricServiceGroupPartition(::windows_core::IUnknown); impl IFabricServiceGroupPartition { pub unsafe fn ResolveMember( &self, name: *const u16, - riid: *const ::windows::core::GUID, - ) -> ::windows::core::Result<*mut ::core::ffi::c_void> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).ResolveMember)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(name), - ::core::mem::transmute(riid), - ::core::mem::transmute(result__.as_mut_ptr()), + riid: *const ::windows_core::GUID, + ) -> ::windows_core::Result<*mut ::core::ffi::c_void> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).ResolveMember)( + ::windows_core::Interface::as_raw(self), + name, + riid, + &mut result__, ) - .from_abi::<*mut ::core::ffi::c_void>(result__) - } -} -::windows::core::interface_hierarchy!(IFabricServiceGroupPartition, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricServiceGroupPartition { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricServiceGroupPartition, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricServiceGroupPartition { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -10239,127 +10312,124 @@ impl ::core::fmt::Debug for IFabricServiceGroupPartition { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricServiceGroupPartition { +unsafe impl ::windows_core::Interface for IFabricServiceGroupPartition { type Vtable = IFabricServiceGroupPartition_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricServiceGroupPartition { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2b24299a_7489_467f_8e7f_4507bff73b86); +impl ::core::clone::Clone for IFabricServiceGroupPartition { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricServiceGroupPartition { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2b24299a_7489_467f_8e7f_4507bff73b86); } #[repr(C)] #[doc(hidden)] pub struct IFabricServiceGroupPartition_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub ResolveMember: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, name: *const u16, - riid: *const ::windows::core::GUID, + riid: *const ::windows_core::GUID, member: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStateProvider(::windows::core::IUnknown); +pub struct IFabricStateProvider(::windows_core::IUnknown); impl IFabricStateProvider { - pub unsafe fn BeginUpdateEpoch<'a, P0>( + pub unsafe fn BeginUpdateEpoch( &self, epoch: *const super::super::FABRIC_EPOCH, previousepochlastsequencenumber: i64, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginUpdateEpoch)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(epoch), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginUpdateEpoch)( + ::windows_core::Interface::as_raw(self), + epoch, previousepochlastsequencenumber, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndUpdateEpoch<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndUpdateEpoch(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndUpdateEpoch)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndUpdateEpoch)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn GetLastCommittedSequenceNumber(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetLastCommittedSequenceNumber)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetLastCommittedSequenceNumber(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetLastCommittedSequenceNumber)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginOnDataLoss<'a, P0>( + pub unsafe fn BeginOnDataLoss( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOnDataLoss)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOnDataLoss)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOnDataLoss<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndOnDataLoss(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOnDataLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOnDataLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetCopyContext(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCopyContext)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetCopyContext(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCopyContext)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetCopyState<'a, P0>( + pub unsafe fn GetCopyState( &self, uptosequencenumber: i64, copycontextstream: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricOperationDataStream>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCopyState)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCopyState)( + ::windows_core::Interface::as_raw(self), uptosequencenumber, - copycontextstream.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + copycontextstream.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricStateProvider, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStateProvider { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricStateProvider, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricStateProvider { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -10373,123 +10443,124 @@ impl ::core::fmt::Debug for IFabricStateProvider { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStateProvider { +unsafe impl ::windows_core::Interface for IFabricStateProvider { type Vtable = IFabricStateProvider_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStateProvider { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x3ebfec79_bd27_43f3_8be8_da38ee723951); +impl ::core::clone::Clone for IFabricStateProvider { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStateProvider { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x3ebfec79_bd27_43f3_8be8_da38ee723951); } #[repr(C)] #[doc(hidden)] pub struct IFabricStateProvider_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginUpdateEpoch: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, epoch: *const super::super::FABRIC_EPOCH, previousepochlastsequencenumber: i64, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndUpdateEpoch: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetLastCommittedSequenceNumber: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, sequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginOnDataLoss: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndOnDataLoss: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, isstatechanged: *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetCopyContext: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, copycontextstream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetCopyState: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, uptosequencenumber: i64, copycontextstream: *mut ::core::ffi::c_void, copystatestream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStateReplicator(::windows::core::IUnknown); +pub struct IFabricStateReplicator(::windows_core::IUnknown); impl IFabricStateReplicator { - pub unsafe fn BeginReplicate<'a, P0, P1>( + pub unsafe fn BeginReplicate( &self, operationdata: P0, callback: P1, sequencenumber: *mut i64, context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricOperationData>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - (::windows::core::Vtable::vtable(self).BeginReplicate)( - ::windows::core::Vtable::as_raw(self), - operationdata.into().abi(), - callback.into().abi(), - ::core::mem::transmute(sequencenumber), + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self).BeginReplicate)( + ::windows_core::Interface::as_raw(self), + operationdata.into_param().abi(), + callback.into_param().abi(), + sequencenumber, ::core::mem::transmute(context), ) .ok() } - pub unsafe fn EndReplicate<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndReplicate(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndReplicate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndReplicate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetReplicationStream(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetReplicationStream)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetReplicationStream(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetReplicationStream)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetCopyStream(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetCopyStream)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetCopyStream(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetCopyStream)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateReplicatorSettings( &self, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).UpdateReplicatorSettings)( + ::windows_core::Interface::as_raw(self), + replicatorsettings, ) .ok() } } -::windows::core::interface_hierarchy!(IFabricStateReplicator, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStateReplicator { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricStateReplicator, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricStateReplicator { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -10503,130 +10574,132 @@ impl ::core::fmt::Debug for IFabricStateReplicator { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStateReplicator { +unsafe impl ::windows_core::Interface for IFabricStateReplicator { type Vtable = IFabricStateReplicator_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStateReplicator { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x89e9a978_c771_44f2_92e8_3bf271cabe9c); +impl ::core::clone::Clone for IFabricStateReplicator { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStateReplicator { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x89e9a978_c771_44f2_92e8_3bf271cabe9c); } #[repr(C)] #[doc(hidden)] pub struct IFabricStateReplicator_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginReplicate: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, operationdata: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, sequencenumber: *mut i64, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndReplicate: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, sequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetReplicationStream: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, stream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetCopyStream: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, stream: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub UpdateReplicatorSettings: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + UpdateReplicatorSettings: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStateReplicator2(::windows::core::IUnknown); +pub struct IFabricStateReplicator2(::windows_core::IUnknown); impl IFabricStateReplicator2 { - pub unsafe fn BeginReplicate<'a, P0, P1>( + pub unsafe fn BeginReplicate( &self, operationdata: P0, callback: P1, sequencenumber: *mut i64, context: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> - where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricOperationData>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, - { - (::windows::core::Vtable::vtable(self).base__.BeginReplicate)( - ::windows::core::Vtable::as_raw(self), - operationdata.into().abi(), - callback.into().abi(), - ::core::mem::transmute(sequencenumber), + ) -> ::windows_core::Result<()> + where + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + { + (::windows_core::Interface::vtable(self) + .base__ + .BeginReplicate)( + ::windows_core::Interface::as_raw(self), + operationdata.into_param().abi(), + callback.into_param().abi(), + sequencenumber, ::core::mem::transmute(context), ) .ok() } - pub unsafe fn EndReplicate<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndReplicate(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.EndReplicate)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.EndReplicate)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn GetReplicationStream(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + pub unsafe fn GetReplicationStream(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ - .GetReplicationStream)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetReplicationStream)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn GetCopyStream(&self) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetCopyStream)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn GetCopyStream(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.GetCopyStream)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn UpdateReplicatorSettings( &self, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .UpdateReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(replicatorsettings), + ::windows_core::Interface::as_raw(self), replicatorsettings ) .ok() } pub unsafe fn GetReplicatorSettings( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetReplicatorSettings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetReplicatorSettings)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricStateReplicator2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStateReplicator ); -impl ::core::clone::Clone for IFabricStateReplicator2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricStateReplicator2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -10640,12 +10713,17 @@ impl ::core::fmt::Debug for IFabricStateReplicator2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStateReplicator2 { +unsafe impl ::windows_core::Interface for IFabricStateReplicator2 { type Vtable = IFabricStateReplicator2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStateReplicator2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4a28d542_658f_46f9_9bf4_79b7cae25c5d); +impl ::core::clone::Clone for IFabricStateReplicator2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStateReplicator2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4a28d542_658f_46f9_9bf4_79b7cae25c5d); } #[repr(C)] #[doc(hidden)] @@ -10654,42 +10732,38 @@ pub struct IFabricStateReplicator2_Vtbl { pub GetReplicatorSettings: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, replicatorsettings: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStatefulServiceFactory(::windows::core::IUnknown); +pub struct IFabricStatefulServiceFactory(::windows_core::IUnknown); impl IFabricStatefulServiceFactory { - pub unsafe fn CreateReplica<'a, P0>( + pub unsafe fn CreateReplica( &self, servicetypename: P0, servicename: *const u16, initializationdata: &[u8], - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CreateReplica)( - ::windows::core::Vtable::as_raw(self), - servicetypename.into(), - ::core::mem::transmute(servicename), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CreateReplica)( + ::windows_core::Interface::as_raw(self), + servicetypename.into_param().abi(), + servicename, initializationdata.len() as _, ::core::mem::transmute(initializationdata.as_ptr()), ::core::mem::transmute(partitionid), replicaid, - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricStatefulServiceFactory, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStatefulServiceFactory { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricStatefulServiceFactory, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricStatefulServiceFactory { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -10703,75 +10777,83 @@ impl ::core::fmt::Debug for IFabricStatefulServiceFactory { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStatefulServiceFactory { +unsafe impl ::windows_core::Interface for IFabricStatefulServiceFactory { type Vtable = IFabricStatefulServiceFactory_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStatefulServiceFactory { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x77ff0c6b_6780_48ec_b4b0_61989327b0f2); +impl ::core::clone::Clone for IFabricStatefulServiceFactory { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStatefulServiceFactory { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x77ff0c6b_6780_48ec_b4b0_61989327b0f2); } #[repr(C)] #[doc(hidden)] pub struct IFabricStatefulServiceFactory_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub CreateReplica: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, servicename: *const u16, initializationdatalength: u32, initializationdata: *const u8, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, replicaid: i64, servicereplica: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStatefulServicePartition(::windows::core::IUnknown); +pub struct IFabricStatefulServicePartition(::windows_core::IUnknown); impl IFabricStatefulServicePartition { pub unsafe fn GetPartitionInfo( &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetPartitionInfo)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) + .from_abi(result__) } pub unsafe fn GetReadStatus( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetReadStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetReadStatus)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn GetWriteStatus( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetWriteStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetWriteStatus)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn CreateReplicator<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn CreateReplicator( &self, stateprovider: P0, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, replicator: *mut ::core::option::Option, statereplicator: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStateProvider>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).CreateReplicator)( - ::windows::core::Vtable::as_raw(self), - stateprovider.into().abi(), - ::core::mem::transmute(replicatorsettings), + (::windows_core::Interface::vtable(self).CreateReplicator)( + ::windows_core::Interface::as_raw(self), + stateprovider.into_param().abi(), + replicatorsettings, ::core::mem::transmute(replicator), ::core::mem::transmute(statereplicator), ) @@ -10780,9 +10862,9 @@ impl IFabricStatefulServicePartition { pub unsafe fn ReportLoad( &self, metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportLoad)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportLoad)( + ::windows_core::Interface::as_raw(self), metrics.len() as _, ::core::mem::transmute(metrics.as_ptr()), ) @@ -10791,20 +10873,18 @@ impl IFabricStatefulServicePartition { pub unsafe fn ReportFault( &self, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportFault)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportFault)( + ::windows_core::Interface::as_raw(self), faulttype, ) .ok() } } -::windows::core::interface_hierarchy!(IFabricStatefulServicePartition, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStatefulServicePartition { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricStatefulServicePartition, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricStatefulServicePartition { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -10818,97 +10898,104 @@ impl ::core::fmt::Debug for IFabricStatefulServicePartition { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStatefulServicePartition { +unsafe impl ::windows_core::Interface for IFabricStatefulServicePartition { type Vtable = IFabricStatefulServicePartition_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStatefulServicePartition { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x5beccc37_8655_4f20_bd43_f50691d7cd16); +impl ::core::clone::Clone for IFabricStatefulServicePartition { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStatefulServicePartition { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x5beccc37_8655_4f20_bd43_f50691d7cd16); } #[repr(C)] #[doc(hidden)] pub struct IFabricStatefulServicePartition_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub GetPartitionInfo: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, bufferedvalue: *mut *mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetReadStatus: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, readstatus: *mut super::super::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub GetWriteStatus: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, writestatus: *mut super::super::FABRIC_SERVICE_PARTITION_ACCESS_STATUS, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(feature = "Win32_Foundation")] pub CreateReplicator: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, stateprovider: *mut ::core::ffi::c_void, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, replicator: *mut *mut ::core::ffi::c_void, statereplicator: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + CreateReplicator: usize, pub ReportLoad: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, metriccount: u32, metrics: *const super::super::FABRIC_LOAD_METRIC, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub ReportFault: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStatefulServicePartition1(::windows::core::IUnknown); +pub struct IFabricStatefulServicePartition1(::windows_core::IUnknown); impl IFabricStatefulServicePartition1 { pub unsafe fn GetPartitionInfo( &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ - .GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) + .GetPartitionInfo)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetReadStatus( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetReadStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).base__.GetReadStatus)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn GetWriteStatus( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).base__.GetWriteStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) + .base__ + .GetWriteStatus)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn CreateReplicator<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn CreateReplicator( &self, stateprovider: P0, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, replicator: *mut ::core::option::Option, statereplicator: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStateProvider>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .CreateReplicator)( - ::windows::core::Vtable::as_raw(self), - stateprovider.into().abi(), - ::core::mem::transmute(replicatorsettings), + ::windows_core::Interface::as_raw(self), + stateprovider.into_param().abi(), + replicatorsettings, ::core::mem::transmute(replicator), ::core::mem::transmute(statereplicator), ) @@ -10917,9 +11004,9 @@ impl IFabricStatefulServicePartition1 { pub unsafe fn ReportLoad( &self, metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportLoad)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.ReportLoad)( + ::windows_core::Interface::as_raw(self), metrics.len() as _, ::core::mem::transmute(metrics.as_ptr()), ) @@ -10928,9 +11015,9 @@ impl IFabricStatefulServicePartition1 { pub unsafe fn ReportFault( &self, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportFault)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.ReportFault)( + ::windows_core::Interface::as_raw(self), faulttype, ) .ok() @@ -10938,24 +11025,19 @@ impl IFabricStatefulServicePartition1 { pub unsafe fn ReportMoveCost( &self, movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportMoveCost)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportMoveCost)( + ::windows_core::Interface::as_raw(self), movecost, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricStatefulServicePartition1, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStatefulServicePartition ); -impl ::core::clone::Clone for IFabricStatefulServicePartition1 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricStatefulServicePartition1 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -10969,12 +11051,17 @@ impl ::core::fmt::Debug for IFabricStatefulServicePartition1 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStatefulServicePartition1 { +unsafe impl ::windows_core::Interface for IFabricStatefulServicePartition1 { type Vtable = IFabricStatefulServicePartition1_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStatefulServicePartition1 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xc9c66f2f_9dff_4c87_bbe4_a08b4c4074cf); +impl ::core::clone::Clone for IFabricStatefulServicePartition1 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStatefulServicePartition1 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xc9c66f2f_9dff_4c87_bbe4_a08b4c4074cf); } #[repr(C)] #[doc(hidden)] @@ -10983,67 +11070,61 @@ pub struct IFabricStatefulServicePartition1_Vtbl { pub ReportMoveCost: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStatefulServicePartition2(::windows::core::IUnknown); +pub struct IFabricStatefulServicePartition2(::windows_core::IUnknown); impl IFabricStatefulServicePartition2 { pub unsafe fn GetPartitionInfo( &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ - .GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) + .GetPartitionInfo)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetReadStatus( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ - .GetReadStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetReadStatus)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetWriteStatus( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ - .GetWriteStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetWriteStatus)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn CreateReplicator<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn CreateReplicator( &self, stateprovider: P0, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, replicator: *mut ::core::option::Option, statereplicator: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStateProvider>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .CreateReplicator)( - ::windows::core::Vtable::as_raw(self), - stateprovider.into().abi(), - ::core::mem::transmute(replicatorsettings), + ::windows_core::Interface::as_raw(self), + stateprovider.into_param().abi(), + replicatorsettings, ::core::mem::transmute(replicator), ::core::mem::transmute(statereplicator), ) @@ -11052,12 +11133,12 @@ impl IFabricStatefulServicePartition2 { pub unsafe fn ReportLoad( &self, metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .ReportLoad)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), metrics.len() as _, ::core::mem::transmute(metrics.as_ptr()), ) @@ -11066,55 +11147,53 @@ impl IFabricStatefulServicePartition2 { pub unsafe fn ReportFault( &self, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ - .ReportFault)(::windows::core::Vtable::as_raw(self), faulttype) + .ReportFault)(::windows_core::Interface::as_raw(self), faulttype) .ok() } pub unsafe fn ReportMoveCost( &self, movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportMoveCost)( - ::windows::core::Vtable::as_raw(self), - movecost, - ) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportMoveCost)(::windows_core::Interface::as_raw(self), movecost) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportReplicaHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportReplicaHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportPartitionHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportPartitionHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricStatefulServicePartition2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStatefulServicePartition, IFabricStatefulServicePartition1 ); -impl ::core::clone::Clone for IFabricStatefulServicePartition2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricStatefulServicePartition2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -11128,89 +11207,94 @@ impl ::core::fmt::Debug for IFabricStatefulServicePartition2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStatefulServicePartition2 { +unsafe impl ::windows_core::Interface for IFabricStatefulServicePartition2 { type Vtable = IFabricStatefulServicePartition2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStatefulServicePartition2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xdf27b476_fa25_459f_a7d3_87d3eec9c73c); +impl ::core::clone::Clone for IFabricStatefulServicePartition2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStatefulServicePartition2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xdf27b476_fa25_459f_a7d3_87d3eec9c73c); } #[repr(C)] #[doc(hidden)] pub struct IFabricStatefulServicePartition2_Vtbl { pub base__: IFabricStatefulServicePartition1_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub ReportReplicaHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportReplicaHealth: usize, + #[cfg(feature = "Win32_Foundation")] pub ReportPartitionHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportPartitionHealth: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStatefulServicePartition3(::windows::core::IUnknown); +pub struct IFabricStatefulServicePartition3(::windows_core::IUnknown); impl IFabricStatefulServicePartition3 { pub unsafe fn GetPartitionInfo( &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) + .GetPartitionInfo)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetReadStatus( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .GetReadStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetReadStatus)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn GetWriteStatus( &self, - ) -> ::windows::core::Result { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .GetWriteStatus)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::(result__) + .GetWriteStatus)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } - pub unsafe fn CreateReplicator<'a, P0>( + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub unsafe fn CreateReplicator( &self, stateprovider: P0, replicatorsettings: *const super::super::FABRIC_REPLICATOR_SETTINGS, replicator: *mut ::core::option::Option, statereplicator: *mut ::core::option::Option, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStateProvider>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .CreateReplicator)( - ::windows::core::Vtable::as_raw(self), - stateprovider.into().abi(), - ::core::mem::transmute(replicatorsettings), + ::windows_core::Interface::as_raw(self), + stateprovider.into_param().abi(), + replicatorsettings, ::core::mem::transmute(replicator), ::core::mem::transmute(statereplicator), ) @@ -11219,13 +11303,13 @@ impl IFabricStatefulServicePartition3 { pub unsafe fn ReportLoad( &self, metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .ReportLoad)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), metrics.len() as _, ::core::mem::transmute(metrics.as_ptr()), ) @@ -11234,85 +11318,82 @@ impl IFabricStatefulServicePartition3 { pub unsafe fn ReportFault( &self, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .ReportFault)(::windows::core::Vtable::as_raw(self), faulttype) + .ReportFault)(::windows_core::Interface::as_raw(self), faulttype) .ok() } pub unsafe fn ReportMoveCost( &self, movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ - .ReportMoveCost)(::windows::core::Vtable::as_raw(self), movecost) + .ReportMoveCost)(::windows_core::Interface::as_raw(self), movecost) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportReplicaHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ - .ReportReplicaHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) + .ReportReplicaHealth)(::windows_core::Interface::as_raw(self), healthinfo) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportPartitionHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ - .ReportPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) + .ReportPartitionHealth)(::windows_core::Interface::as_raw(self), healthinfo) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportReplicaHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportReplicaHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportReplicaHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportPartitionHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportPartitionHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricStatefulServicePartition3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStatefulServicePartition, IFabricStatefulServicePartition1, IFabricStatefulServicePartition2 ); -impl ::core::clone::Clone for IFabricStatefulServicePartition3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricStatefulServicePartition3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -11326,136 +11407,137 @@ impl ::core::fmt::Debug for IFabricStatefulServicePartition3 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStatefulServicePartition3 { +unsafe impl ::windows_core::Interface for IFabricStatefulServicePartition3 { type Vtable = IFabricStatefulServicePartition3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStatefulServicePartition3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x51f1269d_b061_4c1c_96cf_6508cece813b); +impl ::core::clone::Clone for IFabricStatefulServicePartition3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStatefulServicePartition3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x51f1269d_b061_4c1c_96cf_6508cece813b); } #[repr(C)] #[doc(hidden)] pub struct IFabricStatefulServicePartition3_Vtbl { pub base__: IFabricStatefulServicePartition2_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub ReportReplicaHealth2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportReplicaHealth2: usize, + #[cfg(feature = "Win32_Foundation")] pub ReportPartitionHealth2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportPartitionHealth2: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStatefulServiceReplica(::windows::core::IUnknown); +pub struct IFabricStatefulServiceReplica(::windows_core::IUnknown); impl IFabricStatefulServiceReplica { - pub unsafe fn BeginOpen<'a, P0, P1>( + pub unsafe fn BeginOpen( &self, openmode: super::super::FABRIC_REPLICA_OPEN_MODE, partition: P0, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatefulServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOpen)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOpen)( + ::windows_core::Interface::as_raw(self), openmode, - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndOpen(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginChangeRole<'a, P0>( + pub unsafe fn BeginChangeRole( &self, newrole: super::super::FABRIC_REPLICA_ROLE, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginChangeRole)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginChangeRole)( + ::windows_core::Interface::as_raw(self), newrole, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndChangeRole<'a, P0>( + pub unsafe fn EndChangeRole( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndChangeRole)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndChangeRole)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginClose<'a, P0>( + pub unsafe fn BeginClose( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).Abort)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricStatefulServiceReplica, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStatefulServiceReplica { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).Abort)(::windows_core::Interface::as_raw(self)) } } +::windows_core::imp::interface_hierarchy!(IFabricStatefulServiceReplica, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricStatefulServiceReplica { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -11469,85 +11551,86 @@ impl ::core::fmt::Debug for IFabricStatefulServiceReplica { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStatefulServiceReplica { +unsafe impl ::windows_core::Interface for IFabricStatefulServiceReplica { type Vtable = IFabricStatefulServiceReplica_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStatefulServiceReplica { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x8ae3be0e_505d_4dc1_ad8f_0cb0f9576b8a); +impl ::core::clone::Clone for IFabricStatefulServiceReplica { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStatefulServiceReplica { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x8ae3be0e_505d_4dc1_ad8f_0cb0f9576b8a); } #[repr(C)] #[doc(hidden)] pub struct IFabricStatefulServiceReplica_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginOpen: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, openmode: super::super::FABRIC_REPLICA_OPEN_MODE, partition: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndOpen: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, replicator: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginChangeRole: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, newrole: super::super::FABRIC_REPLICA_ROLE, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndChangeRole: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, serviceaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginClose: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndClose: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStatelessServiceFactory(::windows::core::IUnknown); +pub struct IFabricStatelessServiceFactory(::windows_core::IUnknown); impl IFabricStatelessServiceFactory { - pub unsafe fn CreateInstance<'a, P0>( + pub unsafe fn CreateInstance( &self, servicetypename: P0, servicename: *const u16, initializationdata: &[u8], - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, instanceid: i64, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).CreateInstance)( - ::windows::core::Vtable::as_raw(self), - servicetypename.into(), - ::core::mem::transmute(servicename), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).CreateInstance)( + ::windows_core::Interface::as_raw(self), + servicetypename.into_param().abi(), + servicename, initializationdata.len() as _, ::core::mem::transmute(initializationdata.as_ptr()), ::core::mem::transmute(partitionid), instanceid, - ::core::mem::transmute(result__.as_mut_ptr()), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricStatelessServiceFactory, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStatelessServiceFactory { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricStatelessServiceFactory, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricStatelessServiceFactory { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -11561,103 +11644,103 @@ impl ::core::fmt::Debug for IFabricStatelessServiceFactory { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStatelessServiceFactory { +unsafe impl ::windows_core::Interface for IFabricStatelessServiceFactory { type Vtable = IFabricStatelessServiceFactory_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStatelessServiceFactory { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcc53af8f_74cd_11df_ac3e_0024811e3892); +impl ::core::clone::Clone for IFabricStatelessServiceFactory { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStatelessServiceFactory { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcc53af8f_74cd_11df_ac3e_0024811e3892); } #[repr(C)] #[doc(hidden)] pub struct IFabricStatelessServiceFactory_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub CreateInstance: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - servicetypename: ::windows::core::PCWSTR, + servicetypename: ::windows_core::PCWSTR, servicename: *const u16, initializationdatalength: u32, initializationdata: *const u8, - partitionid: ::windows::core::GUID, + partitionid: ::windows_core::GUID, instanceid: i64, serviceinstance: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStatelessServiceInstance(::windows::core::IUnknown); +pub struct IFabricStatelessServiceInstance(::windows_core::IUnknown); impl IFabricStatelessServiceInstance { - pub unsafe fn BeginOpen<'a, P0, P1>( + pub unsafe fn BeginOpen( &self, partition: P0, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricStatelessServicePartition>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOpen)( - ::windows::core::Vtable::as_raw(self), - partition.into().abi(), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOpen)( + ::windows_core::Interface::as_raw(self), + partition.into_param().abi(), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOpen<'a, P0>( + pub unsafe fn EndOpen( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginClose<'a, P0>( + pub unsafe fn BeginClose( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).Abort)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricStatelessServiceInstance, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStatelessServiceInstance { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).Abort)(::windows_core::Interface::as_raw(self)) } } +::windows_core::imp::interface_hierarchy!( + IFabricStatelessServiceInstance, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricStatelessServiceInstance { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -11671,58 +11754,64 @@ impl ::core::fmt::Debug for IFabricStatelessServiceInstance { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStatelessServiceInstance { +unsafe impl ::windows_core::Interface for IFabricStatelessServiceInstance { type Vtable = IFabricStatelessServiceInstance_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStatelessServiceInstance { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcc53af90_74cd_11df_ac3e_0024811e3892); +impl ::core::clone::Clone for IFabricStatelessServiceInstance { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStatelessServiceInstance { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcc53af90_74cd_11df_ac3e_0024811e3892); } #[repr(C)] #[doc(hidden)] pub struct IFabricStatelessServiceInstance_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginOpen: unsafe extern "system" fn( 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, + ) -> ::windows_core::HRESULT, pub EndOpen: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, serviceaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginClose: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndClose: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStatelessServicePartition(::windows::core::IUnknown); +pub struct IFabricStatelessServicePartition(::windows_core::IUnknown); impl IFabricStatelessServicePartition { pub unsafe fn GetPartitionInfo( &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).GetPartitionInfo)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) + .from_abi(result__) } pub unsafe fn ReportLoad( &self, metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportLoad)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportLoad)( + ::windows_core::Interface::as_raw(self), metrics.len() as _, ::core::mem::transmute(metrics.as_ptr()), ) @@ -11731,20 +11820,18 @@ impl IFabricStatelessServicePartition { pub unsafe fn ReportFault( &self, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportFault)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportFault)( + ::windows_core::Interface::as_raw(self), faulttype, ) .ok() } } -::windows::core::interface_hierarchy!(IFabricStatelessServicePartition, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStatelessServicePartition { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricStatelessServicePartition, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricStatelessServicePartition { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -11758,52 +11845,55 @@ impl ::core::fmt::Debug for IFabricStatelessServicePartition { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStatelessServicePartition { +unsafe impl ::windows_core::Interface for IFabricStatelessServicePartition { type Vtable = IFabricStatelessServicePartition_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStatelessServicePartition { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcc53af91_74cd_11df_ac3e_0024811e3892); +impl ::core::clone::Clone for IFabricStatelessServicePartition { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStatelessServicePartition { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcc53af91_74cd_11df_ac3e_0024811e3892); } #[repr(C)] #[doc(hidden)] pub struct IFabricStatelessServicePartition_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub GetPartitionInfo: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, bufferedvalue: *mut *mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub ReportLoad: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, metriccount: u32, metrics: *const super::super::FABRIC_LOAD_METRIC, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub ReportFault: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStatelessServicePartition1(::windows::core::IUnknown); +pub struct IFabricStatelessServicePartition1(::windows_core::IUnknown); impl IFabricStatelessServicePartition1 { pub unsafe fn GetPartitionInfo( &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ - .GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) + .GetPartitionInfo)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn ReportLoad( &self, metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportLoad)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.ReportLoad)( + ::windows_core::Interface::as_raw(self), metrics.len() as _, ::core::mem::transmute(metrics.as_ptr()), ) @@ -11812,9 +11902,9 @@ impl IFabricStatelessServicePartition1 { pub unsafe fn ReportFault( &self, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportFault)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).base__.ReportFault)( + ::windows_core::Interface::as_raw(self), faulttype, ) .ok() @@ -11822,24 +11912,19 @@ impl IFabricStatelessServicePartition1 { pub unsafe fn ReportMoveCost( &self, movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportMoveCost)( - ::windows::core::Vtable::as_raw(self), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportMoveCost)( + ::windows_core::Interface::as_raw(self), movecost, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricStatelessServicePartition1, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStatelessServicePartition ); -impl ::core::clone::Clone for IFabricStatelessServicePartition1 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricStatelessServicePartition1 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -11853,12 +11938,17 @@ impl ::core::fmt::Debug for IFabricStatelessServicePartition1 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStatelessServicePartition1 { +unsafe impl ::windows_core::Interface for IFabricStatelessServicePartition1 { type Vtable = IFabricStatelessServicePartition1_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStatelessServicePartition1 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xbf6bb505_7bd0_4371_b6c0_cba319a5e50b); +impl ::core::clone::Clone for IFabricStatelessServicePartition1 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStatelessServicePartition1 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xbf6bb505_7bd0_4371_b6c0_cba319a5e50b); } #[repr(C)] #[doc(hidden)] @@ -11867,33 +11957,31 @@ pub struct IFabricStatelessServicePartition1_Vtbl { pub ReportMoveCost: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStatelessServicePartition2(::windows::core::IUnknown); +pub struct IFabricStatelessServicePartition2(::windows_core::IUnknown); impl IFabricStatelessServicePartition2 { pub unsafe fn GetPartitionInfo( &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ - .GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) + .GetPartitionInfo)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn ReportLoad( &self, metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .ReportLoad)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), metrics.len() as _, ::core::mem::transmute(metrics.as_ptr()), ) @@ -11902,55 +11990,53 @@ impl IFabricStatelessServicePartition2 { pub unsafe fn ReportFault( &self, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ - .ReportFault)(::windows::core::Vtable::as_raw(self), faulttype) + .ReportFault)(::windows_core::Interface::as_raw(self), faulttype) .ok() } pub unsafe fn ReportMoveCost( &self, movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).base__.ReportMoveCost)( - ::windows::core::Vtable::as_raw(self), - movecost, - ) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) + .base__ + .ReportMoveCost)(::windows_core::Interface::as_raw(self), movecost) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportInstanceHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportInstanceHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportInstanceHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportPartitionHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportPartitionHealth)( + ::windows_core::Interface::as_raw(self), + healthinfo, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricStatelessServicePartition2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStatelessServicePartition, IFabricStatelessServicePartition1 ); -impl ::core::clone::Clone for IFabricStatelessServicePartition2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricStatelessServicePartition2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -11964,53 +12050,62 @@ impl ::core::fmt::Debug for IFabricStatelessServicePartition2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStatelessServicePartition2 { +unsafe impl ::windows_core::Interface for IFabricStatelessServicePartition2 { type Vtable = IFabricStatelessServicePartition2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStatelessServicePartition2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9ff35b6c_9d97_4312_93ad_7f34cbdb4ca4); +impl ::core::clone::Clone for IFabricStatelessServicePartition2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStatelessServicePartition2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9ff35b6c_9d97_4312_93ad_7f34cbdb4ca4); } #[repr(C)] #[doc(hidden)] pub struct IFabricStatelessServicePartition2_Vtbl { pub base__: IFabricStatelessServicePartition1_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub ReportInstanceHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportInstanceHealth: usize, + #[cfg(feature = "Win32_Foundation")] pub ReportPartitionHealth: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportPartitionHealth: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStatelessServicePartition3(::windows::core::IUnknown); +pub struct IFabricStatelessServicePartition3(::windows_core::IUnknown); impl IFabricStatelessServicePartition3 { pub unsafe fn GetPartitionInfo( &self, - ) -> ::windows::core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION> { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .GetPartitionInfo)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), - ) - .from_abi::<*mut super::super::FABRIC_SERVICE_PARTITION_INFORMATION>(result__) + .GetPartitionInfo)(::windows_core::Interface::as_raw(self), &mut result__) + .from_abi(result__) } pub unsafe fn ReportLoad( &self, metrics: &[super::super::FABRIC_LOAD_METRIC], - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ .ReportLoad)( - ::windows::core::Vtable::as_raw(self), + ::windows_core::Interface::as_raw(self), metrics.len() as _, ::core::mem::transmute(metrics.as_ptr()), ) @@ -12019,85 +12114,82 @@ impl IFabricStatelessServicePartition3 { pub unsafe fn ReportFault( &self, faulttype: super::super::FABRIC_FAULT_TYPE, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ .base__ - .ReportFault)(::windows::core::Vtable::as_raw(self), faulttype) + .ReportFault)(::windows_core::Interface::as_raw(self), faulttype) .ok() } pub unsafe fn ReportMoveCost( &self, movecost: super::super::FABRIC_MOVE_COST, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ .base__ - .ReportMoveCost)(::windows::core::Vtable::as_raw(self), movecost) + .ReportMoveCost)(::windows_core::Interface::as_raw(self), movecost) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportInstanceHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ - .ReportInstanceHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) + .ReportInstanceHealth)(::windows_core::Interface::as_raw(self), healthinfo) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportPartitionHealth( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self) + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self) .base__ - .ReportPartitionHealth)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ) + .ReportPartitionHealth)(::windows_core::Interface::as_raw(self), healthinfo) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportInstanceHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportInstanceHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportInstanceHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn ReportPartitionHealth2( &self, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).ReportPartitionHealth2)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(healthinfo), - ::core::mem::transmute(sendoptions), + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).ReportPartitionHealth2)( + ::windows_core::Interface::as_raw(self), + healthinfo, + sendoptions, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricStatelessServicePartition3, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStatelessServicePartition, IFabricStatelessServicePartition1, IFabricStatelessServicePartition2 ); -impl ::core::clone::Clone for IFabricStatelessServicePartition3 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricStatelessServicePartition3 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -12111,41 +12203,50 @@ impl ::core::fmt::Debug for IFabricStatelessServicePartition3 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStatelessServicePartition3 { +unsafe impl ::windows_core::Interface for IFabricStatelessServicePartition3 { type Vtable = IFabricStatelessServicePartition3_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStatelessServicePartition3 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xf2fa2000_70a7_4ed5_9d3e_0b7deca2433f); +impl ::core::clone::Clone for IFabricStatelessServicePartition3 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStatelessServicePartition3 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xf2fa2000_70a7_4ed5_9d3e_0b7deca2433f); } #[repr(C)] #[doc(hidden)] pub struct IFabricStatelessServicePartition3_Vtbl { pub base__: IFabricStatelessServicePartition2_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub ReportInstanceHealth2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportInstanceHealth2: usize, + #[cfg(feature = "Win32_Foundation")] pub ReportPartitionHealth2: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, healthinfo: *const super::super::FABRIC_HEALTH_INFORMATION, sendoptions: *const super::super::FABRIC_HEALTH_REPORT_SEND_OPTIONS, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, + #[cfg(not(feature = "Win32_Foundation"))] + ReportPartitionHealth2: usize, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStoreEventHandler(::windows::core::IUnknown); +pub struct IFabricStoreEventHandler(::windows_core::IUnknown); impl IFabricStoreEventHandler { pub unsafe fn OnDataLoss(&self) { - (::windows::core::Vtable::vtable(self).OnDataLoss)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricStoreEventHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStoreEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).OnDataLoss)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!(IFabricStoreEventHandler, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricStoreEventHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -12159,67 +12260,66 @@ impl ::core::fmt::Debug for IFabricStoreEventHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStoreEventHandler { +unsafe impl ::windows_core::Interface for IFabricStoreEventHandler { type Vtable = IFabricStoreEventHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStoreEventHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x220e6da4_985b_4dee_8fe9_77521b838795); +impl ::core::clone::Clone for IFabricStoreEventHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStoreEventHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x220e6da4_985b_4dee_8fe9_77521b838795); } #[repr(C)] #[doc(hidden)] pub struct IFabricStoreEventHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub OnDataLoss: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStoreEventHandler2(::windows::core::IUnknown); +pub struct IFabricStoreEventHandler2(::windows_core::IUnknown); impl IFabricStoreEventHandler2 { pub unsafe fn OnDataLoss(&self) { - (::windows::core::Vtable::vtable(self).base__.OnDataLoss)(::windows::core::Vtable::as_raw( - self, - )) + (::windows_core::Interface::vtable(self).base__.OnDataLoss)( + ::windows_core::Interface::as_raw(self), + ) } - pub unsafe fn BeginOnDataLoss<'a, P0>( + pub unsafe fn BeginOnDataLoss( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOnDataLoss)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOnDataLoss)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOnDataLoss<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndOnDataLoss(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOnDataLoss)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOnDataLoss)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricStoreEventHandler2, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricStoreEventHandler ); -impl ::core::clone::Clone for IFabricStoreEventHandler2 { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricStoreEventHandler2 { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -12233,12 +12333,17 @@ impl ::core::fmt::Debug for IFabricStoreEventHandler2 { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStoreEventHandler2 { +unsafe impl ::windows_core::Interface for IFabricStoreEventHandler2 { type Vtable = IFabricStoreEventHandler2_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStoreEventHandler2 { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcce4523f_614b_4d6a_98a3_1e197c0213ea); +impl ::core::clone::Clone for IFabricStoreEventHandler2 { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStoreEventHandler2 { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcce4523f_614b_4d6a_98a3_1e197c0213ea); } #[repr(C)] #[doc(hidden)] @@ -12248,54 +12353,48 @@ pub struct IFabricStoreEventHandler2_Vtbl { this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndOnDataLoss: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, isstatechanged: *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricStorePostBackupHandler(::windows::core::IUnknown); +pub struct IFabricStorePostBackupHandler(::windows_core::IUnknown); impl IFabricStorePostBackupHandler { - pub unsafe fn BeginPostBackup<'a, P0>( + pub unsafe fn BeginPostBackup( &self, info: *const super::super::FABRIC_STORE_BACKUP_INFO, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginPostBackup)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(info), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginPostBackup)( + ::windows_core::Interface::as_raw(self), + info, + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndPostBackup<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndPostBackup(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndPostBackup)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndPostBackup)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) - } -} -::windows::core::interface_hierarchy!(IFabricStorePostBackupHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStorePostBackupHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) + .from_abi(result__) } } +::windows_core::imp::interface_hierarchy!(IFabricStorePostBackupHandler, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricStorePostBackupHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -12309,85 +12408,86 @@ impl ::core::fmt::Debug for IFabricStorePostBackupHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStorePostBackupHandler { +unsafe impl ::windows_core::Interface for IFabricStorePostBackupHandler { type Vtable = IFabricStorePostBackupHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStorePostBackupHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x2af2e8a6_41df_4e32_9d2a_d73a711e652a); +impl ::core::clone::Clone for IFabricStorePostBackupHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStorePostBackupHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x2af2e8a6_41df_4e32_9d2a_d73a711e652a); } #[repr(C)] #[doc(hidden)] pub struct IFabricStorePostBackupHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginPostBackup: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, info: *const super::super::FABRIC_STORE_BACKUP_INFO, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndPostBackup: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, status: *mut u8, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricTransaction(::windows::core::IUnknown); +pub struct IFabricTransaction(::windows_core::IUnknown); impl IFabricTransaction { - pub unsafe fn get_Id(&self) -> *mut ::windows::core::GUID { - (::windows::core::Vtable::vtable(self).base__.get_Id)(::windows::core::Vtable::as_raw(self)) + pub unsafe fn get_Id(&self) -> *mut ::windows_core::GUID { + (::windows_core::Interface::vtable(self).base__.get_Id)(::windows_core::Interface::as_raw( + self, + )) } pub unsafe fn get_IsolationLevel(&self) -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL { - (::windows::core::Vtable::vtable(self) + (::windows_core::Interface::vtable(self) .base__ - .get_IsolationLevel)(::windows::core::Vtable::as_raw(self)) + .get_IsolationLevel)(::windows_core::Interface::as_raw(self)) } - pub unsafe fn BeginCommit<'a, P0>( + pub unsafe fn BeginCommit( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginCommit)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginCommit)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndCommit<'a, P0>(&self, context: P0) -> ::windows::core::Result + pub unsafe fn EndCommit(&self, context: P0) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndCommit)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndCommit)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } pub unsafe fn Rollback(&self) { - (::windows::core::Vtable::vtable(self).Rollback)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).Rollback)(::windows_core::Interface::as_raw(self)) } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricTransaction, - ::windows::core::IUnknown, + ::windows_core::IUnknown, IFabricTransactionBase ); -impl ::core::clone::Clone for IFabricTransaction { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricTransaction { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -12399,12 +12499,17 @@ impl ::core::fmt::Debug for IFabricTransaction { f.debug_tuple("IFabricTransaction").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricTransaction { +unsafe impl ::windows_core::Interface for IFabricTransaction { type Vtable = IFabricTransaction_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTransaction { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x19ee48b4_6d4d_470b_ac1e_2d3996a173c8); +impl ::core::clone::Clone for IFabricTransaction { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTransaction { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x19ee48b4_6d4d_470b_ac1e_2d3996a173c8); } #[repr(C)] #[doc(hidden)] @@ -12415,32 +12520,28 @@ pub struct IFabricTransaction_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndCommit: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, commitsequencenumber: *mut i64, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Rollback: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] #[repr(transparent)] -pub struct IFabricTransactionBase(::windows::core::IUnknown); +pub struct IFabricTransactionBase(::windows_core::IUnknown); impl IFabricTransactionBase { - pub unsafe fn get_Id(&self) -> *mut ::windows::core::GUID { - (::windows::core::Vtable::vtable(self).get_Id)(::windows::core::Vtable::as_raw(self)) + 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::super::FABRIC_TRANSACTION_ISOLATION_LEVEL { - (::windows::core::Vtable::vtable(self).get_IsolationLevel)(::windows::core::Vtable::as_raw( - self, - )) - } -} -::windows::core::interface_hierarchy!(IFabricTransactionBase, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransactionBase { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_IsolationLevel)( + ::windows_core::Interface::as_raw(self), + ) } } +::windows_core::imp::interface_hierarchy!(IFabricTransactionBase, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricTransactionBase { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -12454,31 +12555,38 @@ impl ::core::fmt::Debug for IFabricTransactionBase { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTransactionBase { +unsafe impl ::windows_core::Interface for IFabricTransactionBase { type Vtable = IFabricTransactionBase_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTransactionBase { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x32d656a1_7ad5_47b8_bd66_a2e302626b7e); +impl ::core::clone::Clone for IFabricTransactionBase { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTransactionBase { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x32d656a1_7ad5_47b8_bd66_a2e302626b7e); } #[repr(C)] #[doc(hidden)] pub struct IFabricTransactionBase_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_Id: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut ::windows::core::GUID, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut ::windows_core::GUID, pub get_IsolationLevel: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> super::super::FABRIC_TRANSACTION_ISOLATION_LEVEL, } -pub const FabricRuntime: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xcc53af8c_74cd_11df_ac3e_0024811e3892); +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] +pub const FabricRuntime: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xcc53af8c_74cd_11df_ac3e_0024811e3892); +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricRuntime\"`*"] pub type FnFabricMain = ::core::option::Option< unsafe extern "system" fn( runtime: ::core::option::Option, activationcontext: ::core::option::Option, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, >; #[cfg(feature = "implement")] ::core::include!("impl.rs"); diff --git a/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/impl.rs b/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/impl.rs index c700c38d..42740d6e 100644 --- a/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/impl.rs +++ b/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/impl.rs @@ -1,81 +1,84 @@ +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`, `\"implement\"`*"] pub trait IFabricTransportCallbackMessageHandler_Impl: Sized { fn HandleOneWay( &self, - message: &::core::option::Option, - ) -> ::windows::core::Result<()>; + message: ::core::option::Option<&IFabricTransportMessage>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricTransportCallbackMessageHandler {} +impl ::windows_core::RuntimeName for IFabricTransportCallbackMessageHandler {} impl IFabricTransportCallbackMessageHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportCallbackMessageHandler_Impl, const OFFSET: isize, >() -> IFabricTransportCallbackMessageHandler_Vtbl { unsafe extern "system" fn HandleOneWay< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportCallbackMessageHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.HandleOneWay(::core::mem::transmute(&message)).into() + this.HandleOneWay(::windows_core::from_raw_borrowed(&message)) + .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), HandleOneWay: HandleOneWay::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`, `\"implement\"`*"] pub trait IFabricTransportClient_Impl: Sized { fn BeginRequest( &self, - message: &::core::option::Option, + message: ::core::option::Option<&IFabricTransportMessage>, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndRequest( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn Send( &self, - message: &::core::option::Option, - ) -> ::windows::core::Result<()>; + message: ::core::option::Option<&IFabricTransportMessage>, + ) -> ::windows_core::Result<()>; fn BeginOpen( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndOpen( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginClose( &self, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndClose( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn Abort(&self); } -impl ::windows::core::RuntimeName for IFabricTransportClient {} +impl ::windows_core::RuntimeName for IFabricTransportClient {} impl IFabricTransportClient_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClient_Impl, const OFFSET: isize, >() -> IFabricTransportClient_Vtbl { unsafe extern "system" fn BeginRequest< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClient_Impl, const OFFSET: isize, >( @@ -84,54 +87,55 @@ impl IFabricTransportClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginRequest( - ::core::mem::transmute(&message), + ::windows_core::from_raw_borrowed(&message), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndRequest< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, reply: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndRequest(::core::mem::transmute(&context)) { + match this.EndRequest(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(reply, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn Send< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.Send(::core::mem::transmute(&message)).into() + this.Send(::windows_core::from_raw_borrowed(&message)) + .into() } unsafe extern "system" fn BeginOpen< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClient_Impl, const OFFSET: isize, >( @@ -139,34 +143,35 @@ impl IFabricTransportClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginOpen( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndOpen< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndOpen(::core::mem::transmute(&context)).into() + this.EndOpen(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn BeginClose< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClient_Impl, const OFFSET: isize, >( @@ -174,34 +179,35 @@ impl IFabricTransportClient_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginClose( ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndClose< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClient_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndClose(::core::mem::transmute(&context)).into() + this.EndClose(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn Abort< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClient_Impl, const OFFSET: isize, >( @@ -212,7 +218,7 @@ impl IFabricTransportClient_Vtbl { this.Abort() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginRequest: BeginRequest::, EndRequest: EndRequest::, Send: Send::, @@ -223,38 +229,40 @@ impl IFabricTransportClient_Vtbl { Abort: Abort::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`, `\"implement\"`*"] pub trait IFabricTransportClientConnection_Impl: Sized { fn Send( &self, - message: &::core::option::Option, - ) -> ::windows::core::Result<()>; + message: ::core::option::Option<&IFabricTransportMessage>, + ) -> ::windows_core::Result<()>; fn get_ClientId(&self) -> *mut u16; } -impl ::windows::core::RuntimeName for IFabricTransportClientConnection {} +impl ::windows_core::RuntimeName for IFabricTransportClientConnection {} impl IFabricTransportClientConnection_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClientConnection_Impl, const OFFSET: isize, >() -> IFabricTransportClientConnection_Vtbl { unsafe extern "system" fn Send< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClientConnection_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.Send(::core::mem::transmute(&message)).into() + this.Send(::windows_core::from_raw_borrowed(&message)) + .into() } unsafe extern "system" fn get_ClientId< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClientConnection_Impl, const OFFSET: isize, >( @@ -265,55 +273,54 @@ impl IFabricTransportClientConnection_Vtbl { this.get_ClientId() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), Send: Send::, get_ClientId: get_ClientId::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`, `\"implement\"`*"] pub trait IFabricTransportClientEventHandler_Impl: Sized { - fn OnConnected( - &self, - connectionaddress: &::windows::core::PCWSTR, - ) -> ::windows::core::Result<()>; + fn OnConnected(&self, connectionaddress: &::windows_core::PCWSTR) + -> ::windows_core::Result<()>; fn OnDisconnected( &self, - connectionaddress: &::windows::core::PCWSTR, - error: ::windows::core::HRESULT, - ) -> ::windows::core::Result<()>; + connectionaddress: &::windows_core::PCWSTR, + error: ::windows_core::HRESULT, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricTransportClientEventHandler {} +impl ::windows_core::RuntimeName for IFabricTransportClientEventHandler {} impl IFabricTransportClientEventHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClientEventHandler_Impl, const OFFSET: isize, >() -> IFabricTransportClientEventHandler_Vtbl { unsafe extern "system" fn OnConnected< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClientEventHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - connectionaddress: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT { + connectionaddress: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnConnected(::core::mem::transmute(&connectionaddress)) .into() } unsafe extern "system" fn OnDisconnected< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportClientEventHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - connectionaddress: ::windows::core::PCWSTR, - error: ::windows::core::HRESULT, - ) -> ::windows::core::HRESULT { + connectionaddress: ::windows_core::PCWSTR, + error: ::windows_core::HRESULT, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.OnDisconnected( @@ -323,46 +330,47 @@ impl IFabricTransportClientEventHandler_Vtbl { .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), OnConnected: OnConnected::, OnDisconnected: OnDisconnected::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`, `\"implement\"`*"] pub trait IFabricTransportConnectionHandler_Impl: Sized { fn BeginProcessConnect( &self, - clientconnection: &::core::option::Option, + clientconnection: ::core::option::Option<&IFabricTransportClientConnection>, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndProcessConnect( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn BeginProcessDisconnect( &self, clientid: *const u16, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndProcessDisconnect( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricTransportConnectionHandler {} +impl ::windows_core::RuntimeName for IFabricTransportConnectionHandler {} impl IFabricTransportConnectionHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportConnectionHandler_Impl, const OFFSET: isize, >() -> IFabricTransportConnectionHandler_Vtbl { unsafe extern "system" fn BeginProcessConnect< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportConnectionHandler_Impl, const OFFSET: isize, >( @@ -371,36 +379,36 @@ impl IFabricTransportConnectionHandler_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginProcessConnect( - ::core::mem::transmute(&clientconnection), + ::windows_core::from_raw_borrowed(&clientconnection), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndProcessConnect< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportConnectionHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndProcessConnect(::core::mem::transmute(&context)) + this.EndProcessConnect(::windows_core::from_raw_borrowed(&context)) .into() } unsafe extern "system" fn BeginProcessDisconnect< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportConnectionHandler_Impl, const OFFSET: isize, >( @@ -409,143 +417,145 @@ impl IFabricTransportConnectionHandler_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginProcessDisconnect( ::core::mem::transmute_copy(&clientid), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndProcessDisconnect< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportConnectionHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndProcessDisconnect(::core::mem::transmute(&context)) + this.EndProcessDisconnect(::windows_core::from_raw_borrowed(&context)) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginProcessConnect: BeginProcessConnect::, EndProcessConnect: EndProcessConnect::, BeginProcessDisconnect: BeginProcessDisconnect::, EndProcessDisconnect: EndProcessDisconnect::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`, `\"implement\"`*"] pub trait IFabricTransportListener_Impl: Sized { fn BeginOpen( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndOpen( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn BeginClose( &self, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndClose( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result<()>; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result<()>; fn Abort(&self); } -impl ::windows::core::RuntimeName for IFabricTransportListener {} +impl ::windows_core::RuntimeName for IFabricTransportListener {} impl IFabricTransportListener_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportListener_Impl, const OFFSET: isize, >() -> IFabricTransportListener_Vtbl { unsafe extern "system" fn BeginOpen< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportListener_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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.BeginOpen(::core::mem::transmute(&callback)) { + match this.BeginOpen(::windows_core::from_raw_borrowed(&callback)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndOpen< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportListener_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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndOpen(::core::mem::transmute(&context)) { + match this.EndOpen(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(serviceaddress, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn BeginClose< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportListener_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 { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.BeginClose(::core::mem::transmute(&callback)) { + match this.BeginClose(::windows_core::from_raw_borrowed(&callback)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndClose< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportListener_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.EndClose(::core::mem::transmute(&context)).into() + this.EndClose(::windows_core::from_raw_borrowed(&context)) + .into() } unsafe extern "system" fn Abort< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportListener_Impl, const OFFSET: isize, >( @@ -556,7 +566,7 @@ impl IFabricTransportListener_Vtbl { this.Abort() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginOpen: BeginOpen::, EndOpen: EndOpen::, BeginClose: BeginClose::, @@ -564,10 +574,11 @@ impl IFabricTransportListener_Vtbl { Abort: Abort::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`, `\"implement\"`*"] pub trait IFabricTransportMessage_Impl: Sized { fn GetHeaderAndBodyBuffer( &self, @@ -577,15 +588,15 @@ pub trait IFabricTransportMessage_Impl: Sized { ); fn Dispose(&self); } -impl ::windows::core::RuntimeName for IFabricTransportMessage {} +impl ::windows_core::RuntimeName for IFabricTransportMessage {} impl IFabricTransportMessage_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportMessage_Impl, const OFFSET: isize, >() -> IFabricTransportMessage_Vtbl { unsafe extern "system" fn GetHeaderAndBodyBuffer< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportMessage_Impl, const OFFSET: isize, >( @@ -603,7 +614,7 @@ impl IFabricTransportMessage_Vtbl { ) } unsafe extern "system" fn Dispose< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportMessage_Impl, const OFFSET: isize, >( @@ -614,27 +625,28 @@ impl IFabricTransportMessage_Vtbl { this.Dispose() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), GetHeaderAndBodyBuffer: GetHeaderAndBodyBuffer::, Dispose: Dispose::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`, `\"implement\"`*"] pub trait IFabricTransportMessageDisposer_Impl: Sized { fn Dispose(&self, count: u32, messages: *const ::core::option::Option); } -impl ::windows::core::RuntimeName for IFabricTransportMessageDisposer {} +impl ::windows_core::RuntimeName for IFabricTransportMessageDisposer {} impl IFabricTransportMessageDisposer_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportMessageDisposer_Impl, const OFFSET: isize, >() -> IFabricTransportMessageDisposer_Vtbl { unsafe extern "system" fn Dispose< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportMessageDisposer_Impl, const OFFSET: isize, >( @@ -650,41 +662,42 @@ impl IFabricTransportMessageDisposer_Vtbl { ) } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), Dispose: Dispose::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`, `\"implement\"`*"] pub trait IFabricTransportMessageHandler_Impl: Sized { fn BeginProcessRequest( &self, clientid: *const u16, - message: &::core::option::Option, + message: ::core::option::Option<&IFabricTransportMessage>, timeoutmilliseconds: u32, - callback: &::core::option::Option, - ) -> ::windows::core::Result; + callback: ::core::option::Option<&super::IFabricAsyncOperationCallback>, + ) -> ::windows_core::Result; fn EndProcessRequest( &self, - context: &::core::option::Option, - ) -> ::windows::core::Result; + context: ::core::option::Option<&super::IFabricAsyncOperationContext>, + ) -> ::windows_core::Result; fn HandleOneWay( &self, clientid: *const u16, - message: &::core::option::Option, - ) -> ::windows::core::Result<()>; + message: ::core::option::Option<&IFabricTransportMessage>, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricTransportMessageHandler {} +impl ::windows_core::RuntimeName for IFabricTransportMessageHandler {} impl IFabricTransportMessageHandler_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportMessageHandler_Impl, const OFFSET: isize, >() -> IFabricTransportMessageHandler_Vtbl { unsafe extern "system" fn BeginProcessRequest< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportMessageHandler_Impl, const OFFSET: isize, >( @@ -694,66 +707,66 @@ impl IFabricTransportMessageHandler_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.BeginProcessRequest( ::core::mem::transmute_copy(&clientid), - ::core::mem::transmute(&message), + ::windows_core::from_raw_borrowed(&message), ::core::mem::transmute_copy(&timeoutmilliseconds), - ::core::mem::transmute(&callback), + ::windows_core::from_raw_borrowed(&callback), ) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(context, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn EndProcessRequest< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportMessageHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, reply: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - match this.EndProcessRequest(::core::mem::transmute(&context)) { + match this.EndProcessRequest(::windows_core::from_raw_borrowed(&context)) { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(reply, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn HandleOneWay< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricTransportMessageHandler_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, clientid: *const u16, message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.HandleOneWay( ::core::mem::transmute_copy(&clientid), - ::core::mem::transmute(&message), + ::windows_core::from_raw_borrowed(&message), ) .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), BeginProcessRequest: BeginProcessRequest::, EndProcessRequest: EndProcessRequest::, HandleOneWay: HandleOneWay::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } diff --git a/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/mod.rs b/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/mod.rs index 2c6e9ffc..0c0e7c0a 100644 --- a/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/mod.rs +++ b/src/Microsoft/ServiceFabric/FabricCommon/FabricTransport/mod.rs @@ -1,103 +1,101 @@ +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] #[inline] -pub unsafe fn CreateFabricTransportClient<'a, P0, P1, P2, P3>( - interfaceid: *const ::windows::core::GUID, +pub unsafe fn CreateFabricTransportClient( + interfaceid: *const ::windows_core::GUID, settings: *const FABRIC_TRANSPORT_SETTINGS, connectionaddress: P0, notificationhandler: P1, clienteventhandler: P2, messagedisposer: P3, -) -> ::windows::core::Result +) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::PCWSTR>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportCallbackMessageHandler>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportClientEventHandler>>, - P3: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessageDisposer>>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, + P3: ::windows_core::IntoParam, { #[link(name = "fabrictransport")] extern "system" { - fn CreateFabricTransportClient( - interfaceid: *const ::windows::core::GUID, + pub fn CreateFabricTransportClient( + interfaceid: *const ::windows_core::GUID, settings: *const FABRIC_TRANSPORT_SETTINGS, - connectionaddress: ::windows::core::PCWSTR, + connectionaddress: ::windows_core::PCWSTR, notificationhandler: *mut ::core::ffi::c_void, clienteventhandler: *mut ::core::ffi::c_void, messagedisposer: *mut ::core::ffi::c_void, client: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); CreateFabricTransportClient( - ::core::mem::transmute(interfaceid), - ::core::mem::transmute(settings), - connectionaddress.into(), - notificationhandler.into().abi(), - clienteventhandler.into().abi(), - messagedisposer.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + interfaceid, + settings, + connectionaddress.into_param().abi(), + notificationhandler.into_param().abi(), + clienteventhandler.into_param().abi(), + messagedisposer.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] #[inline] -pub unsafe fn CreateFabricTransportListener<'a, P0, P1, P2>( - interfaceid: *const ::windows::core::GUID, +pub unsafe fn CreateFabricTransportListener( + interfaceid: *const ::windows_core::GUID, settings: *const FABRIC_TRANSPORT_SETTINGS, address: *const FABRIC_TRANSPORT_LISTEN_ADDRESS, requesthandler: P0, connectionhandler: P1, disposeprocessor: P2, -) -> ::windows::core::Result +) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessageHandler>>, - P1: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportConnectionHandler>>, - P2: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessageDisposer>>, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, + P2: ::windows_core::IntoParam, { #[link(name = "fabrictransport")] extern "system" { - fn CreateFabricTransportListener( - interfaceid: *const ::windows::core::GUID, + pub fn CreateFabricTransportListener( + interfaceid: *const ::windows_core::GUID, settings: *const FABRIC_TRANSPORT_SETTINGS, address: *const FABRIC_TRANSPORT_LISTEN_ADDRESS, requesthandler: *mut ::core::ffi::c_void, connectionhandler: *mut ::core::ffi::c_void, disposeprocessor: *mut ::core::ffi::c_void, listener: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT; + ) -> ::windows_core::HRESULT; } - let mut result__ = ::core::mem::MaybeUninit::zeroed(); + let mut result__ = ::std::mem::zeroed(); CreateFabricTransportListener( - ::core::mem::transmute(interfaceid), - ::core::mem::transmute(settings), - ::core::mem::transmute(address), - requesthandler.into().abi(), - connectionhandler.into().abi(), - disposeprocessor.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + interfaceid, + settings, + address, + requesthandler.into_param().abi(), + connectionhandler.into_param().abi(), + disposeprocessor.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] #[repr(transparent)] -pub struct IFabricTransportCallbackMessageHandler(::windows::core::IUnknown); +pub struct IFabricTransportCallbackMessageHandler(::windows_core::IUnknown); impl IFabricTransportCallbackMessageHandler { - pub unsafe fn HandleOneWay<'a, P0>(&self, message: P0) -> ::windows::core::Result<()> + pub unsafe fn HandleOneWay(&self, message: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessage>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).HandleOneWay)( - ::windows::core::Vtable::as_raw(self), - message.into().abi(), + (::windows_core::Interface::vtable(self).HandleOneWay)( + ::windows_core::Interface::as_raw(self), + message.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricTransportCallbackMessageHandler, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricTransportCallbackMessageHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricTransportCallbackMessageHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -111,140 +109,135 @@ impl ::core::fmt::Debug for IFabricTransportCallbackMessageHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTransportCallbackMessageHandler { +unsafe impl ::windows_core::Interface for IFabricTransportCallbackMessageHandler { type Vtable = IFabricTransportCallbackMessageHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTransportCallbackMessageHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x9ba8ac7a_3464_4774_b9b9_1d7f0f1920ba); +impl ::core::clone::Clone for IFabricTransportCallbackMessageHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTransportCallbackMessageHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x9ba8ac7a_3464_4774_b9b9_1d7f0f1920ba); } #[repr(C)] #[doc(hidden)] pub struct IFabricTransportCallbackMessageHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub HandleOneWay: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] #[repr(transparent)] -pub struct IFabricTransportClient(::windows::core::IUnknown); +pub struct IFabricTransportClient(::windows_core::IUnknown); impl IFabricTransportClient { - pub unsafe fn BeginRequest<'a, P0, P1>( + pub unsafe fn BeginRequest( &self, message: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessage>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginRequest)( - ::windows::core::Vtable::as_raw(self), - message.into().abi(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginRequest)( + ::windows_core::Interface::as_raw(self), + message.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndRequest<'a, P0>( + pub unsafe fn EndRequest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndRequest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndRequest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Send<'a, P0>(&self, message: P0) -> ::windows::core::Result<()> + pub unsafe fn Send(&self, message: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessage>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).Send)( - ::windows::core::Vtable::as_raw(self), - message.into().abi(), + (::windows_core::Interface::vtable(self).Send)( + ::windows_core::Interface::as_raw(self), + message.into_param().abi(), ) .ok() } - pub unsafe fn BeginOpen<'a, P0>( + pub unsafe fn BeginOpen( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOpen)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOpen)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOpen<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndOpen(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginClose<'a, P0>( + pub unsafe fn BeginClose( &self, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginClose)( - ::windows::core::Vtable::as_raw(self), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginClose)( + ::windows_core::Interface::as_raw(self), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).Abort)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricTransportClient, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportClient { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).Abort)(::windows_core::Interface::as_raw(self)) } } +::windows_core::imp::interface_hierarchy!(IFabricTransportClient, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricTransportClient { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -258,78 +251,84 @@ impl ::core::fmt::Debug for IFabricTransportClient { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTransportClient { +unsafe impl ::windows_core::Interface for IFabricTransportClient { type Vtable = IFabricTransportClient_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTransportClient { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x5b0634fe_6a52_4bd9_8059_892c72c1d73a); +impl ::core::clone::Clone for IFabricTransportClient { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTransportClient { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x5b0634fe_6a52_4bd9_8059_892c72c1d73a); } #[repr(C)] #[doc(hidden)] pub struct IFabricTransportClient_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginRequest: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndRequest: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, reply: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Send: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginOpen: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndOpen: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginClose: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndClose: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] #[repr(transparent)] -pub struct IFabricTransportClientConnection(::windows::core::IUnknown); +pub struct IFabricTransportClientConnection(::windows_core::IUnknown); impl IFabricTransportClientConnection { - pub unsafe fn Send<'a, P0>(&self, message: P0) -> ::windows::core::Result<()> + pub unsafe fn Send(&self, message: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessage>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).Send)( - ::windows::core::Vtable::as_raw(self), - message.into().abi(), + (::windows_core::Interface::vtable(self).Send)( + ::windows_core::Interface::as_raw(self), + message.into_param().abi(), ) .ok() } pub unsafe fn get_ClientId(&self) -> *mut u16 { - (::windows::core::Vtable::vtable(self).get_ClientId)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricTransportClientConnection, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportClientConnection { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).get_ClientId)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!( + IFabricTransportClientConnection, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricTransportClientConnection { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -343,61 +342,62 @@ impl ::core::fmt::Debug for IFabricTransportClientConnection { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTransportClientConnection { +unsafe impl ::windows_core::Interface for IFabricTransportClientConnection { type Vtable = IFabricTransportClientConnection_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTransportClientConnection { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xa54c17f7_fe94_4838_b14d_e9b5c258e2d0); +impl ::core::clone::Clone for IFabricTransportClientConnection { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTransportClientConnection { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xa54c17f7_fe94_4838_b14d_e9b5c258e2d0); } #[repr(C)] #[doc(hidden)] pub struct IFabricTransportClientConnection_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub Send: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub get_ClientId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> *mut u16, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] #[repr(transparent)] -pub struct IFabricTransportClientEventHandler(::windows::core::IUnknown); +pub struct IFabricTransportClientEventHandler(::windows_core::IUnknown); impl IFabricTransportClientEventHandler { - pub unsafe fn OnConnected<'a, P0>(&self, connectionaddress: P0) -> ::windows::core::Result<()> + pub unsafe fn OnConnected(&self, connectionaddress: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).OnConnected)( - ::windows::core::Vtable::as_raw(self), - connectionaddress.into(), + (::windows_core::Interface::vtable(self).OnConnected)( + ::windows_core::Interface::as_raw(self), + connectionaddress.into_param().abi(), ) .ok() } - pub unsafe fn OnDisconnected<'a, P0>( + pub unsafe fn OnDisconnected( &self, connectionaddress: P0, - error: ::windows::core::HRESULT, - ) -> ::windows::core::Result<()> + error: ::windows_core::HRESULT, + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::PCWSTR>, + P0: ::windows_core::IntoParam<::windows_core::PCWSTR>, { - (::windows::core::Vtable::vtable(self).OnDisconnected)( - ::windows::core::Vtable::as_raw(self), - connectionaddress.into(), + (::windows_core::Interface::vtable(self).OnDisconnected)( + ::windows_core::Interface::as_raw(self), + connectionaddress.into_param().abi(), error, ) .ok() } } -::windows::core::interface_hierarchy!( +::windows_core::imp::interface_hierarchy!( IFabricTransportClientEventHandler, - ::windows::core::IUnknown + ::windows_core::IUnknown ); -impl ::core::clone::Clone for IFabricTransportClientEventHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} impl ::core::cmp::PartialEq for IFabricTransportClientEventHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -411,100 +411,100 @@ impl ::core::fmt::Debug for IFabricTransportClientEventHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTransportClientEventHandler { +unsafe impl ::windows_core::Interface for IFabricTransportClientEventHandler { type Vtable = IFabricTransportClientEventHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTransportClientEventHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4935ab6f_a8bc_4b10_a69e_7a3ba3324892); +impl ::core::clone::Clone for IFabricTransportClientEventHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTransportClientEventHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4935ab6f_a8bc_4b10_a69e_7a3ba3324892); } #[repr(C)] #[doc(hidden)] pub struct IFabricTransportClientEventHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub OnConnected: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - connectionaddress: ::windows::core::PCWSTR, - ) -> ::windows::core::HRESULT, + connectionaddress: ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT, pub OnDisconnected: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, - connectionaddress: ::windows::core::PCWSTR, - error: ::windows::core::HRESULT, - ) -> ::windows::core::HRESULT, + connectionaddress: ::windows_core::PCWSTR, + error: ::windows_core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] #[repr(transparent)] -pub struct IFabricTransportConnectionHandler(::windows::core::IUnknown); +pub struct IFabricTransportConnectionHandler(::windows_core::IUnknown); impl IFabricTransportConnectionHandler { - pub unsafe fn BeginProcessConnect<'a, P0, P1>( + pub unsafe fn BeginProcessConnect( &self, clientconnection: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportClientConnection>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProcessConnect)( - ::windows::core::Vtable::as_raw(self), - clientconnection.into().abi(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProcessConnect)( + ::windows_core::Interface::as_raw(self), + clientconnection.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProcessConnect<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndProcessConnect(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndProcessConnect)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndProcessConnect)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } - pub unsafe fn BeginProcessDisconnect<'a, P0>( + pub unsafe fn BeginProcessDisconnect( &self, clientid: *const u16, timeoutmilliseconds: u32, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProcessDisconnect)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(clientid), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProcessDisconnect)( + ::windows_core::Interface::as_raw(self), + clientid, timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProcessDisconnect<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndProcessDisconnect(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndProcessDisconnect)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndProcessDisconnect)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!(IFabricTransportConnectionHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportConnectionHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricTransportConnectionHandler, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricTransportConnectionHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -518,112 +518,109 @@ impl ::core::fmt::Debug for IFabricTransportConnectionHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTransportConnectionHandler { +unsafe impl ::windows_core::Interface for IFabricTransportConnectionHandler { type Vtable = IFabricTransportConnectionHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTransportConnectionHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb069692d_e8f0_4f25_a3b6_b2992598a64c); +impl ::core::clone::Clone for IFabricTransportConnectionHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTransportConnectionHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb069692d_e8f0_4f25_a3b6_b2992598a64c); } #[repr(C)] #[doc(hidden)] pub struct IFabricTransportConnectionHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginProcessConnect: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, clientconnection: *mut ::core::ffi::c_void, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndProcessConnect: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginProcessDisconnect: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, clientid: *const u16, timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndProcessDisconnect: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] #[repr(transparent)] -pub struct IFabricTransportListener(::windows::core::IUnknown); +pub struct IFabricTransportListener(::windows_core::IUnknown); impl IFabricTransportListener { - pub unsafe fn BeginOpen<'a, P0>( + pub unsafe fn BeginOpen( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginOpen)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginOpen)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndOpen<'a, P0>( + pub unsafe fn EndOpen( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndOpen)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndOpen)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn BeginClose<'a, P0>( + pub unsafe fn BeginClose( &self, callback: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginClose)( - ::windows::core::Vtable::as_raw(self), - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginClose)( + ::windows_core::Interface::as_raw(self), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndClose<'a, P0>(&self, context: P0) -> ::windows::core::Result<()> + pub unsafe fn EndClose(&self, context: P0) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).EndClose)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).EndClose)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) .ok() } pub unsafe fn Abort(&self) { - (::windows::core::Vtable::vtable(self).Abort)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricTransportListener, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportListener { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).Abort)(::windows_core::Interface::as_raw(self)) } } +::windows_core::imp::interface_hierarchy!(IFabricTransportListener, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricTransportListener { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -637,40 +634,46 @@ impl ::core::fmt::Debug for IFabricTransportListener { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTransportListener { +unsafe impl ::windows_core::Interface for IFabricTransportListener { type Vtable = IFabricTransportListener_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTransportListener { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x1b63a266_1eeb_4f3e_8886_521458980d10); +impl ::core::clone::Clone for IFabricTransportListener { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTransportListener { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x1b63a266_1eeb_4f3e_8886_521458980d10); } #[repr(C)] #[doc(hidden)] pub struct IFabricTransportListener_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginOpen: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndOpen: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, serviceaddress: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub BeginClose: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndClose: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Abort: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] #[repr(transparent)] -pub struct IFabricTransportMessage(::windows::core::IUnknown); +pub struct IFabricTransportMessage(::windows_core::IUnknown); impl IFabricTransportMessage { pub unsafe fn GetHeaderAndBodyBuffer( &self, @@ -678,23 +681,18 @@ impl IFabricTransportMessage { msgbuffercount: *mut u32, msgbuffers: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, ) { - (::windows::core::Vtable::vtable(self).GetHeaderAndBodyBuffer)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(headerbuffer), - ::core::mem::transmute(msgbuffercount), - ::core::mem::transmute(msgbuffers), + (::windows_core::Interface::vtable(self).GetHeaderAndBodyBuffer)( + ::windows_core::Interface::as_raw(self), + headerbuffer, + msgbuffercount, + msgbuffers, ) } pub unsafe fn Dispose(&self) { - (::windows::core::Vtable::vtable(self).Dispose)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricTransportMessage, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportMessage { - fn clone(&self) -> Self { - Self(self.0.clone()) + (::windows_core::Interface::vtable(self).Dispose)(::windows_core::Interface::as_raw(self)) } } +::windows_core::imp::interface_hierarchy!(IFabricTransportMessage, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricTransportMessage { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -708,17 +706,22 @@ impl ::core::fmt::Debug for IFabricTransportMessage { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTransportMessage { +unsafe impl ::windows_core::Interface for IFabricTransportMessage { type Vtable = IFabricTransportMessage_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTransportMessage { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xb4357dab_ef06_465f_b453_938f3b0ad4b5); +impl ::core::clone::Clone for IFabricTransportMessage { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTransportMessage { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xb4357dab_ef06_465f_b453_938f3b0ad4b5); } #[repr(C)] #[doc(hidden)] pub struct IFabricTransportMessage_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub GetHeaderAndBodyBuffer: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, headerbuffer: *mut *mut FABRIC_TRANSPORT_MESSAGE_BUFFER, @@ -727,23 +730,22 @@ pub struct IFabricTransportMessage_Vtbl { ), pub Dispose: unsafe extern "system" fn(this: *mut ::core::ffi::c_void), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] #[repr(transparent)] -pub struct IFabricTransportMessageDisposer(::windows::core::IUnknown); +pub struct IFabricTransportMessageDisposer(::windows_core::IUnknown); impl IFabricTransportMessageDisposer { pub unsafe fn Dispose(&self, messages: &[::core::option::Option]) { - (::windows::core::Vtable::vtable(self).Dispose)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).Dispose)( + ::windows_core::Interface::as_raw(self), messages.len() as _, ::core::mem::transmute(messages.as_ptr()), ) } } -::windows::core::interface_hierarchy!(IFabricTransportMessageDisposer, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportMessageDisposer { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricTransportMessageDisposer, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricTransportMessageDisposer { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -757,87 +759,86 @@ impl ::core::fmt::Debug for IFabricTransportMessageDisposer { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTransportMessageDisposer { +unsafe impl ::windows_core::Interface for IFabricTransportMessageDisposer { type Vtable = IFabricTransportMessageDisposer_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTransportMessageDisposer { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x914097f3_a821_46ea_b3d9_feafe5f7c4a9); +impl ::core::clone::Clone for IFabricTransportMessageDisposer { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTransportMessageDisposer { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x914097f3_a821_46ea_b3d9_feafe5f7c4a9); } #[repr(C)] #[doc(hidden)] pub struct IFabricTransportMessageDisposer_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub Dispose: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, count: u32, messages: *const *mut ::core::ffi::c_void, ), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] #[repr(transparent)] -pub struct IFabricTransportMessageHandler(::windows::core::IUnknown); +pub struct IFabricTransportMessageHandler(::windows_core::IUnknown); impl IFabricTransportMessageHandler { - pub unsafe fn BeginProcessRequest<'a, P0, P1>( + pub unsafe fn BeginProcessRequest( &self, clientid: *const u16, message: P0, timeoutmilliseconds: u32, callback: P1, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessage>>, - P1: ::std::convert::Into< - ::windows::core::InParam<'a, super::IFabricAsyncOperationCallback>, - >, + P0: ::windows_core::IntoParam, + P1: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).BeginProcessRequest)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(clientid), - message.into().abi(), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).BeginProcessRequest)( + ::windows_core::Interface::as_raw(self), + clientid, + message.into_param().abi(), timeoutmilliseconds, - callback.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + callback.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn EndProcessRequest<'a, P0>( + pub unsafe fn EndProcessRequest( &self, context: P0, - ) -> ::windows::core::Result + ) -> ::windows_core::Result where - P0: ::std::convert::Into<::windows::core::InParam<'a, super::IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - let mut result__ = ::core::mem::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).EndProcessRequest)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), - ::core::mem::transmute(result__.as_mut_ptr()), + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).EndProcessRequest)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn HandleOneWay<'a, P0>( + pub unsafe fn HandleOneWay( &self, clientid: *const u16, message: P0, - ) -> ::windows::core::Result<()> + ) -> ::windows_core::Result<()> where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricTransportMessage>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).HandleOneWay)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(clientid), - message.into().abi(), + (::windows_core::Interface::vtable(self).HandleOneWay)( + ::windows_core::Interface::as_raw(self), + clientid, + message.into_param().abi(), ) .ok() } } -::windows::core::interface_hierarchy!(IFabricTransportMessageHandler, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricTransportMessageHandler { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricTransportMessageHandler, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricTransportMessageHandler { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -851,17 +852,22 @@ impl ::core::fmt::Debug for IFabricTransportMessageHandler { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricTransportMessageHandler { +unsafe impl ::windows_core::Interface for IFabricTransportMessageHandler { type Vtable = IFabricTransportMessageHandler_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricTransportMessageHandler { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x6815bdb4_1479_4c44_8b9d_57d6d0cc9d64); +impl ::core::clone::Clone for IFabricTransportMessageHandler { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricTransportMessageHandler { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x6815bdb4_1479_4c44_8b9d_57d6d0cc9d64); } #[repr(C)] #[doc(hidden)] pub struct IFabricTransportMessageHandler_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub BeginProcessRequest: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, clientid: *const u16, @@ -869,23 +875,24 @@ pub struct IFabricTransportMessageHandler_Vtbl { timeoutmilliseconds: u32, callback: *mut ::core::ffi::c_void, context: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub EndProcessRequest: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, reply: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub HandleOneWay: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, clientid: *const u16, message: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] pub struct FABRIC_TRANSPORT_LISTEN_ADDRESS { - pub IPAddressOrFQDN: ::windows::core::PCWSTR, + pub IPAddressOrFQDN: ::windows_core::PCWSTR, pub Port: u32, - pub Path: ::windows::core::PCWSTR, + pub Path: ::windows_core::PCWSTR, } impl ::core::marker::Copy for FABRIC_TRANSPORT_LISTEN_ADDRESS {} impl ::core::clone::Clone for FABRIC_TRANSPORT_LISTEN_ADDRESS { @@ -902,18 +909,14 @@ impl ::core::fmt::Debug for FABRIC_TRANSPORT_LISTEN_ADDRESS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_TRANSPORT_LISTEN_ADDRESS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_TRANSPORT_LISTEN_ADDRESS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_TRANSPORT_LISTEN_ADDRESS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.IPAddressOrFQDN == other.IPAddressOrFQDN + && self.Port == other.Port + && self.Path == other.Path } } impl ::core::cmp::Eq for FABRIC_TRANSPORT_LISTEN_ADDRESS {} @@ -923,6 +926,7 @@ impl ::core::default::Default for FABRIC_TRANSPORT_LISTEN_ADDRESS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] pub struct FABRIC_TRANSPORT_MESSAGE_BUFFER { pub BufferSize: u32, pub Buffer: *mut u8, @@ -941,18 +945,12 @@ impl ::core::fmt::Debug for FABRIC_TRANSPORT_MESSAGE_BUFFER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_TRANSPORT_MESSAGE_BUFFER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_TRANSPORT_MESSAGE_BUFFER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_TRANSPORT_MESSAGE_BUFFER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.BufferSize == other.BufferSize && self.Buffer == other.Buffer } } impl ::core::cmp::Eq for FABRIC_TRANSPORT_MESSAGE_BUFFER {} @@ -962,6 +960,7 @@ impl ::core::default::Default for FABRIC_TRANSPORT_MESSAGE_BUFFER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric_FabricCommon_FabricTransport\"`*"] pub struct FABRIC_TRANSPORT_SETTINGS { pub OperationTimeoutInSeconds: u32, pub KeepAliveTimeoutInSeconds: u32, @@ -990,18 +989,18 @@ impl ::core::fmt::Debug for FABRIC_TRANSPORT_SETTINGS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_TRANSPORT_SETTINGS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_TRANSPORT_SETTINGS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_TRANSPORT_SETTINGS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.OperationTimeoutInSeconds == other.OperationTimeoutInSeconds + && self.KeepAliveTimeoutInSeconds == other.KeepAliveTimeoutInSeconds + && self.MaxMessageSize == other.MaxMessageSize + && self.MaxConcurrentCalls == other.MaxConcurrentCalls + && self.MaxQueueSize == other.MaxQueueSize + && self.SecurityCredentials == other.SecurityCredentials + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_TRANSPORT_SETTINGS {} diff --git a/src/Microsoft/ServiceFabric/FabricCommon/impl.rs b/src/Microsoft/ServiceFabric/FabricCommon/impl.rs index 3feb5bda..368c3ef0 100644 --- a/src/Microsoft/ServiceFabric/FabricCommon/impl.rs +++ b/src/Microsoft/ServiceFabric/FabricCommon/impl.rs @@ -1,15 +1,16 @@ +#[doc = "*Required features: `\"ServiceFabric_FabricCommon\"`, `\"implement\"`*"] pub trait IFabricAsyncOperationCallback_Impl: Sized { - fn Invoke(&self, context: &::core::option::Option); + fn Invoke(&self, context: ::core::option::Option<&IFabricAsyncOperationContext>); } -impl ::windows::core::RuntimeName for IFabricAsyncOperationCallback {} +impl ::windows_core::RuntimeName for IFabricAsyncOperationCallback {} impl IFabricAsyncOperationCallback_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAsyncOperationCallback_Impl, const OFFSET: isize, >() -> IFabricAsyncOperationCallback_Vtbl { unsafe extern "system" fn Invoke< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAsyncOperationCallback_Impl, const OFFSET: isize, >( @@ -18,32 +19,36 @@ impl IFabricAsyncOperationCallback_Vtbl { ) { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); - this.Invoke(::core::mem::transmute(&context)) + this.Invoke(::windows_core::from_raw_borrowed(&context)) } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), Invoke: Invoke::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] pub trait IFabricAsyncOperationContext_Impl: Sized { fn IsCompleted(&self) -> ::windows::Win32::Foundation::BOOLEAN; fn CompletedSynchronously(&self) -> ::windows::Win32::Foundation::BOOLEAN; - fn Callback(&self) -> ::windows::core::Result; - fn Cancel(&self) -> ::windows::core::Result<()>; + fn Callback(&self) -> ::windows_core::Result; + fn Cancel(&self) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricAsyncOperationContext {} +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::RuntimeName for IFabricAsyncOperationContext {} +#[cfg(feature = "Win32_Foundation")] impl IFabricAsyncOperationContext_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAsyncOperationContext_Impl, const OFFSET: isize, >() -> IFabricAsyncOperationContext_Vtbl { unsafe extern "system" fn IsCompleted< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAsyncOperationContext_Impl, const OFFSET: isize, >( @@ -54,7 +59,7 @@ impl IFabricAsyncOperationContext_Vtbl { this.IsCompleted() } unsafe extern "system" fn CompletedSynchronously< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAsyncOperationContext_Impl, const OFFSET: isize, >( @@ -65,58 +70,59 @@ impl IFabricAsyncOperationContext_Vtbl { this.CompletedSynchronously() } unsafe extern "system" fn Callback< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAsyncOperationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, callback: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); match this.Callback() { ::core::result::Result::Ok(ok__) => { ::core::ptr::write(callback, ::core::mem::transmute(ok__)); - ::windows::core::HRESULT(0) + ::windows_core::HRESULT(0) } ::core::result::Result::Err(err) => err.into(), } } unsafe extern "system" fn Cancel< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricAsyncOperationContext_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT { + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.Cancel().into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), IsCompleted: IsCompleted::, CompletedSynchronously: CompletedSynchronously::, Callback: Callback::, Cancel: Cancel::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon\"`, `\"implement\"`*"] pub trait IFabricGetReplicatorStatusResult_Impl: Sized { fn get_ReplicatorStatus(&self) -> *mut super::FABRIC_REPLICATOR_STATUS_QUERY_RESULT; } -impl ::windows::core::RuntimeName for IFabricGetReplicatorStatusResult {} +impl ::windows_core::RuntimeName for IFabricGetReplicatorStatusResult {} impl IFabricGetReplicatorStatusResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetReplicatorStatusResult_Impl, const OFFSET: isize, >() -> IFabricGetReplicatorStatusResult_Vtbl { unsafe extern "system" fn get_ReplicatorStatus< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricGetReplicatorStatusResult_Impl, const OFFSET: isize, >( @@ -127,37 +133,38 @@ impl IFabricGetReplicatorStatusResult_Vtbl { this.get_ReplicatorStatus() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_ReplicatorStatus: get_ReplicatorStatus::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon\"`, `\"implement\"`*"] pub trait IFabricStringListResult_Impl: Sized { fn GetStrings( &self, itemcount: *mut u32, - buffereditems: *mut *mut ::windows::core::PWSTR, - ) -> ::windows::core::Result<()>; + buffereditems: *mut *mut ::windows_core::PCWSTR, + ) -> ::windows_core::Result<()>; } -impl ::windows::core::RuntimeName for IFabricStringListResult {} +impl ::windows_core::RuntimeName for IFabricStringListResult {} impl IFabricStringListResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStringListResult_Impl, const OFFSET: isize, >() -> IFabricStringListResult_Vtbl { unsafe extern "system" fn GetStrings< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStringListResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, itemcount: *mut u32, - buffereditems: *mut *mut ::windows::core::PWSTR, - ) -> ::windows::core::HRESULT { + buffereditems: *mut *mut ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.GetStrings( @@ -167,41 +174,42 @@ impl IFabricStringListResult_Vtbl { .into() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), GetStrings: GetStrings::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon\"`, `\"implement\"`*"] pub trait IFabricStringResult_Impl: Sized { - fn get_String(&self) -> ::windows::core::PWSTR; + fn get_String(&self) -> ::windows_core::PCWSTR; } -impl ::windows::core::RuntimeName for IFabricStringResult {} +impl ::windows_core::RuntimeName for IFabricStringResult {} impl IFabricStringResult_Vtbl { pub const fn new< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStringResult_Impl, const OFFSET: isize, >() -> IFabricStringResult_Vtbl { unsafe extern "system" fn get_String< - Identity: ::windows::core::IUnknownImpl, + Identity: ::windows_core::IUnknownImpl, Impl: IFabricStringResult_Impl, const OFFSET: isize, >( this: *mut ::core::ffi::c_void, - ) -> ::windows::core::PWSTR { + ) -> ::windows_core::PCWSTR { let this = (this as *const *const ()).offset(OFFSET) as *const Identity; let this = (*this).get_impl(); this.get_String() } Self { - base__: ::windows::core::IUnknown_Vtbl::new::(), + base__: ::windows_core::IUnknown_Vtbl::new::(), get_String: get_String::, } } - pub fn matches(iid: &windows::core::GUID) -> bool { - iid == &::IID + pub fn matches(iid: &::windows_core::GUID) -> bool { + iid == &::IID } } diff --git a/src/Microsoft/ServiceFabric/FabricCommon/mod.rs b/src/Microsoft/ServiceFabric/FabricCommon/mod.rs index 4e765d3d..1b57c71c 100644 --- a/src/Microsoft/ServiceFabric/FabricCommon/mod.rs +++ b/src/Microsoft/ServiceFabric/FabricCommon/mod.rs @@ -1,25 +1,24 @@ +#[cfg(feature = "ServiceFabric_FabricCommon_FabricClient")] pub mod FabricClient; +#[cfg(feature = "ServiceFabric_FabricCommon_FabricRuntime")] pub mod FabricRuntime; +#[cfg(feature = "ServiceFabric_FabricCommon_FabricTransport")] pub mod FabricTransport; +#[doc = "*Required features: `\"ServiceFabric_FabricCommon\"`*"] #[repr(transparent)] -pub struct IFabricAsyncOperationCallback(::windows::core::IUnknown); +pub struct IFabricAsyncOperationCallback(::windows_core::IUnknown); impl IFabricAsyncOperationCallback { - pub unsafe fn Invoke<'a, P0>(&self, context: P0) + pub unsafe fn Invoke(&self, context: P0) where - P0: ::std::convert::Into<::windows::core::InParam<'a, IFabricAsyncOperationContext>>, + P0: ::windows_core::IntoParam, { - (::windows::core::Vtable::vtable(self).Invoke)( - ::windows::core::Vtable::as_raw(self), - context.into().abi(), + (::windows_core::Interface::vtable(self).Invoke)( + ::windows_core::Interface::as_raw(self), + context.into_param().abi(), ) } } -::windows::core::interface_hierarchy!(IFabricAsyncOperationCallback, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricAsyncOperationCallback { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricAsyncOperationCallback, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricAsyncOperationCallback { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -33,51 +32,59 @@ impl ::core::fmt::Debug for IFabricAsyncOperationCallback { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricAsyncOperationCallback { +unsafe impl ::windows_core::Interface for IFabricAsyncOperationCallback { type Vtable = IFabricAsyncOperationCallback_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricAsyncOperationCallback { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x86f08d7e_14dd_4575_8489_b1d5d679029c); +impl ::core::clone::Clone for IFabricAsyncOperationCallback { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricAsyncOperationCallback { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x86f08d7e_14dd_4575_8489_b1d5d679029c); } #[repr(C)] #[doc(hidden)] pub struct IFabricAsyncOperationCallback_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub Invoke: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, context: *mut ::core::ffi::c_void, ), } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon\"`*"] #[repr(transparent)] -pub struct IFabricAsyncOperationContext(::windows::core::IUnknown); +pub struct IFabricAsyncOperationContext(::windows_core::IUnknown); impl IFabricAsyncOperationContext { + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn IsCompleted(&self) -> ::windows::Win32::Foundation::BOOLEAN { - (::windows::core::Vtable::vtable(self).IsCompleted)(::windows::core::Vtable::as_raw(self)) + (::windows_core::Interface::vtable(self).IsCompleted)(::windows_core::Interface::as_raw( + self, + )) } + #[doc = "*Required features: `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] pub unsafe fn CompletedSynchronously(&self) -> ::windows::Win32::Foundation::BOOLEAN { - (::windows::core::Vtable::vtable(self).CompletedSynchronously)( - ::windows::core::Vtable::as_raw(self), + (::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::MaybeUninit::zeroed(); - (::windows::core::Vtable::vtable(self).Callback)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(result__.as_mut_ptr()), + pub unsafe fn Callback(&self) -> ::windows_core::Result { + let mut result__ = ::std::mem::zeroed(); + (::windows_core::Interface::vtable(self).Callback)( + ::windows_core::Interface::as_raw(self), + &mut result__, ) - .from_abi::(result__) + .from_abi(result__) } - pub unsafe fn Cancel(&self) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).Cancel)(::windows::core::Vtable::as_raw(self)).ok() - } -} -::windows::core::interface_hierarchy!(IFabricAsyncOperationContext, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricAsyncOperationContext { - fn clone(&self) -> Self { - Self(self.0.clone()) + pub unsafe fn Cancel(&self) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).Cancel)(::windows_core::Interface::as_raw(self)) + .ok() } } +::windows_core::imp::interface_hierarchy!(IFabricAsyncOperationContext, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricAsyncOperationContext { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -91,46 +98,56 @@ impl ::core::fmt::Debug for IFabricAsyncOperationContext { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricAsyncOperationContext { +unsafe impl ::windows_core::Interface for IFabricAsyncOperationContext { type Vtable = IFabricAsyncOperationContext_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricAsyncOperationContext { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x841720bf_c9e8_4e6f_9c3f_6b7f4ac73bcd); +impl ::core::clone::Clone for IFabricAsyncOperationContext { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricAsyncOperationContext { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x841720bf_c9e8_4e6f_9c3f_6b7f4ac73bcd); } #[repr(C)] #[doc(hidden)] pub struct IFabricAsyncOperationContext_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, + #[cfg(feature = "Win32_Foundation")] pub IsCompleted: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> ::windows::Win32::Foundation::BOOLEAN, + #[cfg(not(feature = "Win32_Foundation"))] + IsCompleted: usize, + #[cfg(feature = "Win32_Foundation")] pub CompletedSynchronously: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> ::windows::Win32::Foundation::BOOLEAN, + #[cfg(not(feature = "Win32_Foundation"))] + CompletedSynchronously: usize, pub Callback: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, callback: *mut *mut ::core::ffi::c_void, - ) -> ::windows::core::HRESULT, + ) -> ::windows_core::HRESULT, pub Cancel: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon\"`*"] #[repr(transparent)] -pub struct IFabricGetReplicatorStatusResult(::windows::core::IUnknown); +pub struct IFabricGetReplicatorStatusResult(::windows_core::IUnknown); impl IFabricGetReplicatorStatusResult { pub unsafe fn get_ReplicatorStatus(&self) -> *mut super::FABRIC_REPLICATOR_STATUS_QUERY_RESULT { - (::windows::core::Vtable::vtable(self).get_ReplicatorStatus)( - ::windows::core::Vtable::as_raw(self), + (::windows_core::Interface::vtable(self).get_ReplicatorStatus)( + ::windows_core::Interface::as_raw(self), ) } } -::windows::core::interface_hierarchy!(IFabricGetReplicatorStatusResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricGetReplicatorStatusResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!( + IFabricGetReplicatorStatusResult, + ::windows_core::IUnknown +); impl ::core::cmp::PartialEq for IFabricGetReplicatorStatusResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -144,44 +161,45 @@ impl ::core::fmt::Debug for IFabricGetReplicatorStatusResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricGetReplicatorStatusResult { +unsafe impl ::windows_core::Interface for IFabricGetReplicatorStatusResult { type Vtable = IFabricGetReplicatorStatusResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricGetReplicatorStatusResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x30e10c61_a710_4f99_a623_bb1403265186); +impl ::core::clone::Clone for IFabricGetReplicatorStatusResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricGetReplicatorStatusResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x30e10c61_a710_4f99_a623_bb1403265186); } #[repr(C)] #[doc(hidden)] pub struct IFabricGetReplicatorStatusResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_ReplicatorStatus: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, ) -> *mut super::FABRIC_REPLICATOR_STATUS_QUERY_RESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon\"`*"] #[repr(transparent)] -pub struct IFabricStringListResult(::windows::core::IUnknown); +pub struct IFabricStringListResult(::windows_core::IUnknown); impl IFabricStringListResult { pub unsafe fn GetStrings( &self, itemcount: *mut u32, - buffereditems: *mut *mut ::windows::core::PWSTR, - ) -> ::windows::core::Result<()> { - (::windows::core::Vtable::vtable(self).GetStrings)( - ::windows::core::Vtable::as_raw(self), - ::core::mem::transmute(itemcount), - ::core::mem::transmute(buffereditems), + buffereditems: *mut *mut ::windows_core::PCWSTR, + ) -> ::windows_core::Result<()> { + (::windows_core::Interface::vtable(self).GetStrings)( + ::windows_core::Interface::as_raw(self), + itemcount, + buffereditems, ) .ok() } } -::windows::core::interface_hierarchy!(IFabricStringListResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStringListResult { - fn clone(&self) -> Self { - Self(self.0.clone()) - } -} +::windows_core::imp::interface_hierarchy!(IFabricStringListResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricStringListResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -195,36 +213,39 @@ impl ::core::fmt::Debug for IFabricStringListResult { .finish() } } -unsafe impl ::windows::core::Vtable for IFabricStringListResult { +unsafe impl ::windows_core::Interface for IFabricStringListResult { type Vtable = IFabricStringListResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStringListResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0xafab1c53_757b_4b0e_8b7e_237aeee6bfe9); +impl ::core::clone::Clone for IFabricStringListResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStringListResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0xafab1c53_757b_4b0e_8b7e_237aeee6bfe9); } #[repr(C)] #[doc(hidden)] pub struct IFabricStringListResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub GetStrings: unsafe extern "system" fn( this: *mut ::core::ffi::c_void, itemcount: *mut u32, - buffereditems: *mut *mut ::windows::core::PWSTR, - ) -> ::windows::core::HRESULT, + buffereditems: *mut *mut ::windows_core::PCWSTR, + ) -> ::windows_core::HRESULT, } +#[doc = "*Required features: `\"ServiceFabric_FabricCommon\"`*"] #[repr(transparent)] -pub struct IFabricStringResult(::windows::core::IUnknown); +pub struct IFabricStringResult(::windows_core::IUnknown); impl IFabricStringResult { - pub unsafe fn get_String(&self) -> ::windows::core::PWSTR { - (::windows::core::Vtable::vtable(self).get_String)(::windows::core::Vtable::as_raw(self)) - } -} -::windows::core::interface_hierarchy!(IFabricStringResult, ::windows::core::IUnknown); -impl ::core::clone::Clone for IFabricStringResult { - fn clone(&self) -> Self { - Self(self.0.clone()) + pub unsafe fn get_String(&self) -> ::windows_core::PCWSTR { + (::windows_core::Interface::vtable(self).get_String)(::windows_core::Interface::as_raw( + self, + )) } } +::windows_core::imp::interface_hierarchy!(IFabricStringResult, ::windows_core::IUnknown); impl ::core::cmp::PartialEq for IFabricStringResult { fn eq(&self, other: &Self) -> bool { self.0 == other.0 @@ -236,19 +257,24 @@ impl ::core::fmt::Debug for IFabricStringResult { f.debug_tuple("IFabricStringResult").field(&self.0).finish() } } -unsafe impl ::windows::core::Vtable for IFabricStringResult { +unsafe impl ::windows_core::Interface for IFabricStringResult { type Vtable = IFabricStringResult_Vtbl; } -unsafe impl ::windows::core::Interface for IFabricStringResult { - const IID: ::windows::core::GUID = - ::windows::core::GUID::from_u128(0x4ae69614_7d0f_4cd4_b836_23017000d132); +impl ::core::clone::Clone for IFabricStringResult { + fn clone(&self) -> Self { + Self(self.0.clone()) + } +} +unsafe impl ::windows_core::ComInterface for IFabricStringResult { + const IID: ::windows_core::GUID = + ::windows_core::GUID::from_u128(0x4ae69614_7d0f_4cd4_b836_23017000d132); } #[repr(C)] #[doc(hidden)] pub struct IFabricStringResult_Vtbl { - pub base__: ::windows::core::IUnknown_Vtbl, + pub base__: ::windows_core::IUnknown_Vtbl, pub get_String: - unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::PWSTR, + unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows_core::PCWSTR, } #[cfg(feature = "implement")] ::core::include!("impl.rs"); diff --git a/src/Microsoft/ServiceFabric/impl.rs b/src/Microsoft/ServiceFabric/impl.rs deleted file mode 100644 index 8b137891..00000000 --- a/src/Microsoft/ServiceFabric/impl.rs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/Microsoft/ServiceFabric/mod.rs b/src/Microsoft/ServiceFabric/mod.rs index 02b3e90a..fdd69928 100644 --- a/src/Microsoft/ServiceFabric/mod.rs +++ b/src/Microsoft/ServiceFabric/mod.rs @@ -1,1272 +1,3122 @@ +#[cfg(feature = "ServiceFabric_FabricCommon")] pub mod FabricCommon; -pub const FABRIC_AUTO_SEQUENCE_NUMBER: u32 = 0u32; -pub const FABRIC_HEALTH_REPORT_INFINITE_TTL: u32 = 0u32; -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; -#[repr(transparent)] -#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_DEFINITION_KIND(pub i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_INVALID: FABRIC_APPLICATION_DEFINITION_KIND = - FABRIC_APPLICATION_DEFINITION_KIND(65535i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_SERVICE_FABRIC_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_DEFINITION_KIND_COMPOSE: FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(1i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_MESH_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(2i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_DEFINITION_KIND {} -impl ::core::clone::Clone for FABRIC_APPLICATION_DEFINITION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_DEFINITION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_DEFINITION_KIND { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_DEFINITION_KIND_FILTER(pub i32); -pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_DEFAULT: - FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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_SERVICE_FABRIC_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_COMPOSE: FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_DEFAULT: + FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_MESH_APPLICATION_DESCRIPTION: FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(4i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_DEFINITION_KIND_FILTER {} -impl ::core::clone::Clone for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(pub i32); -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_DEFAULT: - FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_DEFINITION_KIND_FILTER_SERVICE_FABRIC_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_DEFINITION_KIND_FILTER(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_DEFINITION_KIND_INVALID: FABRIC_APPLICATION_DEFINITION_KIND = + FABRIC_APPLICATION_DEFINITION_KIND(65535i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_DEFINITION_KIND_MESH_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_DEFINITION_KIND_SERVICE_FABRIC_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_DEFINITION_KIND = FABRIC_APPLICATION_DEFINITION_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_AUTOMATIC: FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_DEFAULT: + FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_INVALID: + FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY_MANUAL: FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY = FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(3i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY {} -impl ::core::clone::Clone for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_STATUS(pub i32); -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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_STATUS_CREATING: FABRIC_APPLICATION_STATUS = FABRIC_APPLICATION_STATUS(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_STATUS_DELETING: FABRIC_APPLICATION_STATUS = FABRIC_APPLICATION_STATUS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_STATUS_FAILED: FABRIC_APPLICATION_STATUS = FABRIC_APPLICATION_STATUS(5i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_STATUS {} -impl ::core::clone::Clone for FABRIC_APPLICATION_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_STATUS { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_TYPE_DEFINITION_KIND(pub i32); -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_SERVICE_FABRIC_APPLICATION_PACKAGE: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_STATUS_INVALID: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_STATUS_READY: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_STATUS_UPGRADING: FABRIC_APPLICATION_STATUS = + FABRIC_APPLICATION_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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_MESH_APPLICATION_DESCRIPTION: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(3i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_DEFINITION_KIND {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(pub i32); -pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_DEFAULT: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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_SERVICE_FABRIC_APPLICATION_PACKAGE: - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = - FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_COMPOSE: FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_DEFAULT: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER_MESH_APPLICATION_DESCRIPTION: FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER = FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(4i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_TYPE_STATUS(pub i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_INVALID: FABRIC_APPLICATION_TYPE_DEFINITION_KIND = + FABRIC_APPLICATION_TYPE_DEFINITION_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_MESH_APPLICATION_DESCRIPTION: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_TYPE_DEFINITION_KIND_SERVICE_FABRIC_APPLICATION_PACKAGE: + FABRIC_APPLICATION_TYPE_DEFINITION_KIND = FABRIC_APPLICATION_TYPE_DEFINITION_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_TYPE_STATUS_AVAILABLE: FABRIC_APPLICATION_TYPE_STATUS = + FABRIC_APPLICATION_TYPE_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_TYPE_STATUS_FAILED: FABRIC_APPLICATION_TYPE_STATUS = + FABRIC_APPLICATION_TYPE_STATUS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_TYPE_STATUS_INVALID: FABRIC_APPLICATION_TYPE_STATUS = FABRIC_APPLICATION_TYPE_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_TYPE_STATUS_PROVISIONING: FABRIC_APPLICATION_TYPE_STATUS = FABRIC_APPLICATION_TYPE_STATUS(1i32); -pub const FABRIC_APPLICATION_TYPE_STATUS_AVAILABLE: FABRIC_APPLICATION_TYPE_STATUS = - FABRIC_APPLICATION_TYPE_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_TYPE_STATUS_UNPROVISIONING: FABRIC_APPLICATION_TYPE_STATUS = FABRIC_APPLICATION_TYPE_STATUS(3i32); -pub const FABRIC_APPLICATION_TYPE_STATUS_FAILED: FABRIC_APPLICATION_TYPE_STATUS = - FABRIC_APPLICATION_TYPE_STATUS(4i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_STATUS {} -impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_TYPE_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_STATUS { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(pub i32); -pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_NONE: - FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(0i32); -pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_MINNODES: - FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_MAXNODES: FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_METRICS: FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(4i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS {} -impl ::core::clone::Clone for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_UPGRADE_KIND(pub i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_MINNODES: + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS_NONE: + FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS = FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_UPGRADE_KIND_INVALID: FABRIC_APPLICATION_UPGRADE_KIND = FABRIC_APPLICATION_UPGRADE_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_UPGRADE_KIND_ROLLING: FABRIC_APPLICATION_UPGRADE_KIND = FABRIC_APPLICATION_UPGRADE_KIND(1i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_KIND {} -impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_KIND { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_APPLICATION_UPGRADE_STATE(pub i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_UPGRADE_STATE_FAILED: FABRIC_APPLICATION_UPGRADE_STATE = + FABRIC_APPLICATION_UPGRADE_STATE(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_UPGRADE_STATE_INVALID: FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(0i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_IN_PROGRESS: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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_FORWARD_PENDING: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(3i32); -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_COMPLETED: - FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(5i32); -pub const FABRIC_APPLICATION_UPGRADE_STATE_FAILED: FABRIC_APPLICATION_UPGRADE_STATE = - FABRIC_APPLICATION_UPGRADE_STATE(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_IN_PROGRESS: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_BACK_PENDING: FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(7i32); -impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_STATE {} -impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_STATE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_STATE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_STATE { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CHAOS_EVENT_KIND(pub i32); -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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_COMPLETED: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_IN_PROGRESS: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_APPLICATION_UPGRADE_STATE_ROLLING_FORWARD_PENDING: + FABRIC_APPLICATION_UPGRADE_STATE = FABRIC_APPLICATION_UPGRADE_STATE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_AUTO_SEQUENCE_NUMBER: u32 = 0u32; +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CHAOS_EVENT_KIND_EXECUTING_FAULTS: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(2i32); -pub const FABRIC_CHAOS_EVENT_KIND_WAITING: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(3i32); -pub const FABRIC_CHAOS_EVENT_KIND_VALIDATION_FAILED: FABRIC_CHAOS_EVENT_KIND = - FABRIC_CHAOS_EVENT_KIND(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CHAOS_EVENT_KIND_INVALID: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CHAOS_EVENT_KIND_STARTED: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CHAOS_EVENT_KIND_STOPPED: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CHAOS_EVENT_KIND_TEST_ERROR: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(5i32); -pub const FABRIC_CHAOS_EVENT_KIND_STOPPED: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(6i32); -impl ::core::marker::Copy for FABRIC_CHAOS_EVENT_KIND {} -impl ::core::clone::Clone for FABRIC_CHAOS_EVENT_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CHAOS_EVENT_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_EVENT_KIND { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CHAOS_SCHEDULE_STATUS(pub i32); -pub const FABRIC_CHAOS_SCHEDULE_STATUS_INVALID: FABRIC_CHAOS_SCHEDULE_STATUS = - FABRIC_CHAOS_SCHEDULE_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CHAOS_EVENT_KIND_VALIDATION_FAILED: FABRIC_CHAOS_EVENT_KIND = + FABRIC_CHAOS_EVENT_KIND(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CHAOS_EVENT_KIND_WAITING: FABRIC_CHAOS_EVENT_KIND = FABRIC_CHAOS_EVENT_KIND(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CHAOS_SCHEDULE_STATUS_ACTIVE: FABRIC_CHAOS_SCHEDULE_STATUS = FABRIC_CHAOS_SCHEDULE_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CHAOS_SCHEDULE_STATUS_EXPIRED: FABRIC_CHAOS_SCHEDULE_STATUS = FABRIC_CHAOS_SCHEDULE_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CHAOS_SCHEDULE_STATUS_INVALID: FABRIC_CHAOS_SCHEDULE_STATUS = + FABRIC_CHAOS_SCHEDULE_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CHAOS_SCHEDULE_STATUS_PENDING: FABRIC_CHAOS_SCHEDULE_STATUS = FABRIC_CHAOS_SCHEDULE_STATUS(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CHAOS_SCHEDULE_STATUS_STOPPED: FABRIC_CHAOS_SCHEDULE_STATUS = FABRIC_CHAOS_SCHEDULE_STATUS(4i32); -impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_STATUS {} -impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_STATUS { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CHAOS_STATUS(pub i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CHAOS_STATUS_INVALID: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CHAOS_STATUS_RUNNING: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CHAOS_STATUS_STOPPED: FABRIC_CHAOS_STATUS = FABRIC_CHAOS_STATUS(2i32); -impl ::core::marker::Copy for FABRIC_CHAOS_STATUS {} -impl ::core::clone::Clone for FABRIC_CHAOS_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CHAOS_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_STATUS { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(pub i32); -pub const FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND_NONE: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND = - FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND_AAD: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND = FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(1i32); -impl ::core::marker::Copy for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND {} -impl ::core::clone::Clone for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CLIENT_ROLE(pub i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND_NONE: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND = + FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CLIENT_ROLE_ADMIN: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CLIENT_ROLE_UNKNOWN: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CLIENT_ROLE_USER: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(1i32); -pub const FABRIC_CLIENT_ROLE_ADMIN: FABRIC_CLIENT_ROLE = FABRIC_CLIENT_ROLE(2i32); -impl ::core::marker::Copy for FABRIC_CLIENT_ROLE {} -impl ::core::clone::Clone for FABRIC_CLIENT_ROLE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CLIENT_ROLE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CLIENT_ROLE { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(pub i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_CONTAINERHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_DLLHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_EXEHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = + FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_INVALID: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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_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_DLLHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = - FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(3i32); -pub const FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND_CONTAINERHOST: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND = - FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(4i32); -impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND {} -impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_CODE_PACKAGE_EVENT_TYPE(pub i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_HEALTH: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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_START_FAILED: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(1i32); -pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_STARTED: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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_HEALTH: FABRIC_CODE_PACKAGE_EVENT_TYPE = - FABRIC_CODE_PACKAGE_EVENT_TYPE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_STARTED: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_START_FAILED: FABRIC_CODE_PACKAGE_EVENT_TYPE = + FABRIC_CODE_PACKAGE_EVENT_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_STOPPED: FABRIC_CODE_PACKAGE_EVENT_TYPE = FABRIC_CODE_PACKAGE_EVENT_TYPE(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_CODE_PACKAGE_EVENT_TYPE_TERMINATED: FABRIC_CODE_PACKAGE_EVENT_TYPE = FABRIC_CODE_PACKAGE_EVENT_TYPE(6i32); -impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_EVENT_TYPE {} -impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_EVENT_TYPE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_CODE_PACKAGE_EVENT_TYPE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_EVENT_TYPE { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_DATA_LOSS_MODE(pub i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_DATA_LOSS_MODE_FULL: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_DATA_LOSS_MODE_INVALID: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_DATA_LOSS_MODE_PARTIAL: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(1i32); -pub const FABRIC_DATA_LOSS_MODE_FULL: FABRIC_DATA_LOSS_MODE = FABRIC_DATA_LOSS_MODE(2i32); -impl ::core::marker::Copy for FABRIC_DATA_LOSS_MODE {} -impl ::core::clone::Clone for FABRIC_DATA_LOSS_MODE { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_DATA_LOSS_MODE { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_DATA_LOSS_MODE { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_DEPLOYMENT_STATUS(pub i32); -pub const FABRIC_DEPLOYMENT_STATUS_INVALID: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(0i32); -pub const FABRIC_DEPLOYMENT_STATUS_DOWNLOADING: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_DEPLOYMENT_STATUS_ACTIVATING: FABRIC_DEPLOYMENT_STATUS = FABRIC_DEPLOYMENT_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_DEPLOYMENT_STATUS_ACTIVE: FABRIC_DEPLOYMENT_STATUS = FABRIC_DEPLOYMENT_STATUS(3i32); -pub const FABRIC_DEPLOYMENT_STATUS_UPGRADING: FABRIC_DEPLOYMENT_STATUS = - FABRIC_DEPLOYMENT_STATUS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_DEPLOYMENT_STATUS_DEACTIVATING: FABRIC_DEPLOYMENT_STATUS = FABRIC_DEPLOYMENT_STATUS(5i32); -impl ::core::marker::Copy for FABRIC_DEPLOYMENT_STATUS {} -impl ::core::clone::Clone for FABRIC_DEPLOYMENT_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_DEPLOYMENT_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYMENT_STATUS { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_DIAGNOSTICS_SINKS_KIND(pub i32); -pub const FABRIC_DIAGNOSTICS_SINKS_KIND_INVALID: FABRIC_DIAGNOSTICS_SINKS_KIND = - FABRIC_DIAGNOSTICS_SINKS_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_DEPLOYMENT_STATUS_DOWNLOADING: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_DEPLOYMENT_STATUS_INVALID: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_DEPLOYMENT_STATUS_UPGRADING: FABRIC_DEPLOYMENT_STATUS = + FABRIC_DEPLOYMENT_STATUS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_DIAGNOSTICS_SINKS_KIND_AZUREINTERNAL: FABRIC_DIAGNOSTICS_SINKS_KIND = FABRIC_DIAGNOSTICS_SINKS_KIND(1i32); -impl ::core::marker::Copy for FABRIC_DIAGNOSTICS_SINKS_KIND {} -impl ::core::clone::Clone for FABRIC_DIAGNOSTICS_SINKS_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_DIAGNOSTICS_SINKS_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_DIAGNOSTICS_SINKS_KIND { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_DLLHOST_HOSTED_DLL_KIND(pub i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_DIAGNOSTICS_SINKS_KIND_INVALID: FABRIC_DIAGNOSTICS_SINKS_KIND = + FABRIC_DIAGNOSTICS_SINKS_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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_UNMANAGED: FABRIC_DLLHOST_HOSTED_DLL_KIND = - FABRIC_DLLHOST_HOSTED_DLL_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_MANAGED: FABRIC_DLLHOST_HOSTED_DLL_KIND = FABRIC_DLLHOST_HOSTED_DLL_KIND(2i32); -impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_DLL_KIND {} -impl ::core::clone::Clone for FABRIC_DLLHOST_HOSTED_DLL_KIND { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_DLL_KIND { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_HOSTED_DLL_KIND { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_DLLHOST_ISOLATION_POLICY(pub i32); -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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_DLLHOST_HOSTED_DLL_KIND_UNMANAGED: FABRIC_DLLHOST_HOSTED_DLL_KIND = + FABRIC_DLLHOST_HOSTED_DLL_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_DLLHOST_ISOLATION_POLICY_DEDICATED_DOMAIN: FABRIC_DLLHOST_ISOLATION_POLICY = FABRIC_DLLHOST_ISOLATION_POLICY(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_DLLHOST_ISOLATION_POLICY_DEDICATED_PROCESS: FABRIC_DLLHOST_ISOLATION_POLICY = FABRIC_DLLHOST_ISOLATION_POLICY(3i32); -impl ::core::marker::Copy for FABRIC_DLLHOST_ISOLATION_POLICY {} -impl ::core::clone::Clone for FABRIC_DLLHOST_ISOLATION_POLICY { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_DLLHOST_ISOLATION_POLICY { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_ISOLATION_POLICY { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_ENTRY_POINT_STATUS(pub i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_DLLHOST_ISOLATION_POLICY_INVALID: FABRIC_DLLHOST_ISOLATION_POLICY = + FABRIC_DLLHOST_ISOLATION_POLICY(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_DLLHOST_ISOLATION_POLICY_SHARED_DOMAIN: FABRIC_DLLHOST_ISOLATION_POLICY = + FABRIC_DLLHOST_ISOLATION_POLICY(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_ENTRY_POINT_STATUS_INVALID: FABRIC_ENTRY_POINT_STATUS = FABRIC_ENTRY_POINT_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_ENTRY_POINT_STATUS_PENDING: FABRIC_ENTRY_POINT_STATUS = FABRIC_ENTRY_POINT_STATUS(1i32); -pub const FABRIC_ENTRY_POINT_STATUS_STARTING: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_ENTRY_POINT_STATUS_STARTED: FABRIC_ENTRY_POINT_STATUS = FABRIC_ENTRY_POINT_STATUS(3i32); -pub const FABRIC_ENTRY_POINT_STATUS_STOPPING: FABRIC_ENTRY_POINT_STATUS = - FABRIC_ENTRY_POINT_STATUS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ENTRY_POINT_STATUS_STARTING: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_ENTRY_POINT_STATUS_STOPPED: FABRIC_ENTRY_POINT_STATUS = FABRIC_ENTRY_POINT_STATUS(5i32); -impl ::core::marker::Copy for FABRIC_ENTRY_POINT_STATUS {} -impl ::core::clone::Clone for FABRIC_ENTRY_POINT_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_ENTRY_POINT_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_ENTRY_POINT_STATUS { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_ENUMERATION_STATUS(pub i32); -pub const FABRIC_ENUMERATION_INVALID: FABRIC_ENUMERATION_STATUS = FABRIC_ENUMERATION_STATUS(0i32); -pub const FABRIC_ENUMERATION_BEST_EFFORT_MORE_DATA: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(1i32); -pub const FABRIC_ENUMERATION_CONSISTENT_MORE_DATA: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ENTRY_POINT_STATUS_STOPPING: FABRIC_ENTRY_POINT_STATUS = + FABRIC_ENTRY_POINT_STATUS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_ENUMERATION_BEST_EFFORT_FINISHED: FABRIC_ENUMERATION_STATUS = FABRIC_ENUMERATION_STATUS(4i32); -pub const FABRIC_ENUMERATION_CONSISTENT_FINISHED: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(8i32); -pub const FABRIC_ENUMERATION_VALID_MASK: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(15i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_ENUMERATION_BEST_EFFORT_MASK: FABRIC_ENUMERATION_STATUS = FABRIC_ENUMERATION_STATUS(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ENUMERATION_BEST_EFFORT_MORE_DATA: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ENUMERATION_CONSISTENT_FINISHED: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_ENUMERATION_CONSISTENT_MASK: FABRIC_ENUMERATION_STATUS = FABRIC_ENUMERATION_STATUS(10i32); -pub const FABRIC_ENUMERATION_MORE_DATA_MASK: FABRIC_ENUMERATION_STATUS = - FABRIC_ENUMERATION_STATUS(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ENUMERATION_CONSISTENT_MORE_DATA: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_ENUMERATION_FINISHED_MASK: FABRIC_ENUMERATION_STATUS = FABRIC_ENUMERATION_STATUS(12i32); -impl ::core::marker::Copy for FABRIC_ENUMERATION_STATUS {} -impl ::core::clone::Clone for FABRIC_ENUMERATION_STATUS { - fn clone(&self) -> Self { - *self - } -} -impl ::core::default::Default for FABRIC_ENUMERATION_STATUS { - fn default() -> Self { - Self(0) - } -} -unsafe impl ::windows::core::Abi for FABRIC_ENUMERATION_STATUS { - type Abi = Self; -} -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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_ERROR_CODE(pub i32); -pub const FABRIC_E_FIRST_RESERVED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017796i32); -pub const FABRIC_E_LAST_RESERVED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017397i32); -pub const FABRIC_E_COMMUNICATION_ERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017796i32); -pub const FABRIC_E_INVALID_ADDRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017795i32); -pub const FABRIC_E_INVALID_NAME_URI: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017794i32); -pub const FABRIC_E_INVALID_PARTITION_KEY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017793i32); -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_NODE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017789i32); -pub const FABRIC_E_NODE_IS_UP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017788i32); -pub const FABRIC_E_NO_WRITE_QUORUM: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017787i32); -pub const FABRIC_E_NOT_PRIMARY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017786i32); -pub const FABRIC_E_NOT_READY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017785i32); -pub const FABRIC_E_OPERATION_NOT_COMPLETE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017784i32); -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_REPLICATION_QUEUE_FULL: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017781i32); -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_OFFLINE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017778i32); -pub const FABRIC_E_SERVICE_METADATA_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017777i32); -pub const FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017776i32); -pub const FABRIC_E_SERVICE_TYPE_ALREADY_REGISTERED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017775i32); -pub const FABRIC_E_SERVICE_TYPE_NOT_REGISTERED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017774i32); -pub const FABRIC_E_VALUE_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017773i32); -pub const FABRIC_E_VALUE_EMPTY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017772i32); -pub const FABRIC_E_PROPERTY_CHECK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017771i32); -pub const FABRIC_E_WRITE_CONFLICT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017770i32); -pub const FABRIC_E_ENUMERATION_COMPLETED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017769i32); -pub const FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017768i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ENUMERATION_INVALID: FABRIC_ENUMERATION_STATUS = FABRIC_ENUMERATION_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ENUMERATION_MORE_DATA_MASK: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ENUMERATION_VALID_MASK: FABRIC_ENUMERATION_STATUS = + FABRIC_ENUMERATION_STATUS(15i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_EXEHOST_WORKING_FOLDER_CODE_BASE: FABRIC_EXEHOST_WORKING_FOLDER = + FABRIC_EXEHOST_WORKING_FOLDER(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_EXEHOST_WORKING_FOLDER_CODE_PACKAGE: FABRIC_EXEHOST_WORKING_FOLDER = + FABRIC_EXEHOST_WORKING_FOLDER(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_EXEHOST_WORKING_FOLDER_INVALID: FABRIC_EXEHOST_WORKING_FOLDER = + FABRIC_EXEHOST_WORKING_FOLDER(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_EXEHOST_WORKING_FOLDER_WORK: FABRIC_EXEHOST_WORKING_FOLDER = + FABRIC_EXEHOST_WORKING_FOLDER(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_ACQUIRE_FILE_LOCK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017662i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_ALREADY_STOPPED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017634i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_APPLICATION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017764i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017721i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_APPLICATION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017763i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_APPLICATION_NOT_UPGRADING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017722i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017767i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_APPLICATION_TYPE_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017765i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_APPLICATION_TYPE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017766i32); -pub const FABRIC_E_APPLICATION_TYPE_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017765i32); -pub const FABRIC_E_APPLICATION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017764i32); -pub const FABRIC_E_APPLICATION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017763i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017768i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_APPLICATION_UPDATE_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017648i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017762i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017761i32); -pub const FABRIC_E_SERVICE_TYPE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017760i32); -pub const FABRIC_E_SERVICE_TYPE_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017759i32); -pub const FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017758i32); -pub const FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017757i32); -pub const FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017756i32); -pub const FABRIC_E_INVALID_CONFIGURATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017755i32); -pub const FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017754i32); -pub const FABRIC_E_PARTITION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017753i32); -pub const FABRIC_E_REPLICA_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017752i32); -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_PROCESS_DEACTIVATED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017749i32); -pub const FABRIC_E_PROCESS_ABORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017748i32); -pub const FABRIC_E_UPGRADE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017747i32); -pub const FABRIC_E_INVALID_CREDENTIAL_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017746i32); -pub const FABRIC_E_INVALID_X509_FIND_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017745i32); -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_INVALID_PROTECTION_LEVEL: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017741i32); -pub const FABRIC_E_INVALID_X509_STORE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017740i32); -pub const FABRIC_E_INVALID_SUBJECT_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017739i32); -pub const FABRIC_E_INVALID_ALLOWED_COMMON_NAME_LIST: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017738i32); -pub const FABRIC_E_INVALID_CREDENTIALS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017737i32); -pub const FABRIC_E_DECRYPTION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017736i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_BACKUPCOPIER_ACCESS_DENIED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017601i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_BACKUPCOPIER_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017602i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_BACKUPCOPIER_UNEXPECTED_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017603i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_BACKUP_DIRECTORY_NOT_EMPTY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017664i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_BACKUP_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017672i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_BACKUP_IS_ENABLED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017612i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_BACKUP_NOT_ENABLED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017613i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_BACKUP_POLICY_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017610i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_BACKUP_POLICY_DOES_NOT_EXIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017611i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CANNOT_CONNECT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017652i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CENTRAL_SECRET_SERVICE_GENERIC: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017594i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CERTIFICATE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017641i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CHAOS_ALREADY_RUNNING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017640i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CM_OPERATION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017643i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CODE_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017733i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_COMMUNICATION_ERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017796i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_COMPOSE_DEPLOYMENT_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017619i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_COMPOSE_DEPLOYMENT_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017618i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_COMPOSE_DEPLOYMENT_NOT_UPGRADING: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017589i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_CONFIGURATION_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017735i32); -pub const FABRIC_E_DATA_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017734i32); -pub const FABRIC_E_CODE_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017733i32); -pub const FABRIC_E_SERVICE_ENDPOINT_RESOURCE_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017732i32); -pub const FABRIC_E_INVALID_OPERATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017731i32); -pub const FABRIC_E_OBJECT_CLOSED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017730i32); -pub const FABRIC_E_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017729i32); -pub const FABRIC_E_FILE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017728i32); -pub const FABRIC_E_DIRECTORY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017727i32); -pub const FABRIC_E_INVALID_DIRECTORY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017726i32); -pub const FABRIC_E_PATH_TOO_LONG: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017725i32); -pub const FABRIC_E_IMAGESTORE_IOERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017724i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017756i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017757i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CONFIG_UPGRADE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017627i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CONNECTION_CLOSED_BY_REMOTE_END: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017646i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CONNECTION_DENIED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017661i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CONSTRAINT_KEY_UNDEFINED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017659i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CONSTRAINT_NOT_SATISFIED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017650i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_CONTAINER_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017606i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_CORRUPTED_IMAGE_STORE_OBJECT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017723i32); -pub const FABRIC_E_APPLICATION_NOT_UPGRADING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017722i32); -pub const FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017721i32); -pub const FABRIC_E_IMAGEBUILDER_UNEXPECTED_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017720i32); -pub const FABRIC_E_FABRIC_VERSION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017719i32); -pub const FABRIC_E_FABRIC_VERSION_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017718i32); -pub const FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017717i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_DATABASE_MIGRATION_IN_PROGRESS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017595i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_DATA_PACKAGE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017734i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_DECRYPTION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017736i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_DELETE_BACKUP_FILE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017647i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_DIRECTORY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017727i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_DNS_NAME_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017620i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_DNS_SERVICE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017622i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_DUPLICATE_BACKUPS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017637i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_DUPLICATE_SERVICE_NOTIFICATION_FILTER_NAME: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017671i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_ENCRYPTION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017707i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_ENDPOINT_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017649i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_ENDPOINT_NOT_REFERENCED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017585i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_ENUMERATION_COMPLETED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017769i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017716i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_FABRIC_DATA_ROOT_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017639i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_FABRIC_NOT_UPGRADING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017715i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017714i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017713i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017717i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_FABRIC_VERSION_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017718i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_FABRIC_VERSION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017719i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_ENABLED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017607i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_FILE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017728i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_FIRST_RESERVED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017796i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_FORCE_NOT_SUPPORTED_FOR_REPLICA_OPERATION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017663i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_GATEWAY_NOT_REACHABLE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017655i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_HEALTH_ENTITY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017705i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_HEALTH_MAX_REPORTS_REACHED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017712i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_HEALTH_STALE_REPORT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017711i32); -pub const FABRIC_E_KEY_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017710i32); -pub const FABRIC_E_KEY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017709i32); -pub const FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017708i32); -pub const FABRIC_E_ENCRYPTION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017707i32); -pub const FABRIC_E_INVALID_ATOMIC_GROUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017706i32); -pub const FABRIC_E_HEALTH_ENTITY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017705i32); -pub const FABRIC_E_SERVICE_MANIFEST_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017704i32); -pub const FABRIC_E_RELIABLE_SESSION_TRANSPORT_STARTUP_FAILURE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017703i32); -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_MANAGER_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017700i32); -pub const FABRIC_E_RELIABLE_SESSION_REJECTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017699i32); -pub const FABRIC_E_RELIABLE_SESSION_MANAGER_ALREADY_LISTENING: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017698i32); -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_INVALID_SERVICE_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017695i32); -pub const FABRIC_E_IMAGEBUILDER_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017694i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_IMAGEBUILDER_ACCESS_DENIED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017693i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_IMAGEBUILDER_INVALID_MSI_FILE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017692i32); -pub const FABRIC_E_SERVICE_TOO_BUSY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017691i32); -pub const FABRIC_E_TRANSACTION_NOT_ACTIVE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017690i32); -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_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_SERVICE_FAULTED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017684i32); -pub const FABRIC_E_RELIABLE_SESSION_INVALID_TARGET_PARTITION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017683i32); -pub const FABRIC_E_TRANSACTION_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017682i32); -pub const FABRIC_E_REPLICATION_OPERATION_TOO_LARGE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017681i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017642i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_IMAGEBUILDER_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017694i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_IMAGEBUILDER_UNEXPECTED_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017720i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017754i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_IMAGESTORE_IOERROR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017724i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_INSTANCE_ID_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017680i32); -pub const FABRIC_E_UPGRADE_DOMAIN_ALREADY_COMPLETED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017679i32); -pub const FABRIC_E_NODE_HAS_NOT_STOPPED_YET: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017678i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_INSUFFICIENT_CLUSTER_CAPACITY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017677i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_ADDRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017795i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_ALLOWED_COMMON_NAME_LIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017738i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_ATOMIC_GROUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017706i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_BACKUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017631i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_BACKUP_CHAIN: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017636i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_BACKUP_SETTING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017674i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_CONFIGURATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017755i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_CREDENTIALS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017737i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_CREDENTIAL_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017746i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_DIRECTORY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017726i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_DNS_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017621i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_DURATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017629i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_FOR_STATEFUL_SERVICES: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017617i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_FOR_STATELESS_SERVICES: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017616i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_INSTANCE_ID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017630i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_NAME_URI: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017794i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_OPERATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017731i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_INVALID_PACKAGE_SHARING_POLICY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017676i32); -pub const FABRIC_E_PREDEPLOYMENT_NOT_ALLOWED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017675i32); -pub const FABRIC_E_INVALID_BACKUP_SETTING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017674i32); -pub const FABRIC_E_MISSING_FULL_BACKUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017673i32); -pub const FABRIC_E_BACKUP_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017672i32); -pub const FABRIC_E_DUPLICATE_SERVICE_NOTIFICATION_FILTER_NAME: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017671i32); -pub const FABRIC_E_INVALID_REPLICA_OPERATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017670i32); -pub const FABRIC_E_INVALID_REPLICA_STATE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017669i32); -pub const FABRIC_E_LOADBALANCER_NOT_READY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017668i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_PARTITION_KEY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017793i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_INVALID_PARTITION_OPERATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017667i32); -pub const FABRIC_E_PRIMARY_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017666i32); -pub const FABRIC_E_SECONDARY_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017665i32); -pub const FABRIC_E_BACKUP_DIRECTORY_NOT_EMPTY: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017664i32); -pub const FABRIC_E_FORCE_NOT_SUPPORTED_FOR_REPLICA_OPERATION: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017663i32); -pub const FABRIC_E_ACQUIRE_FILE_LOCK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017662i32); -pub const FABRIC_E_CONNECTION_DENIED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017661i32); -pub const FABRIC_E_SERVER_AUTHENTICATION_FAILED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017660i32); -pub const FABRIC_E_CONSTRAINT_KEY_UNDEFINED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017659i32); -pub const FABRIC_E_MULTITHREADED_TRANSACTIONS_NOT_ALLOWED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017658i32); -pub const FABRIC_E_INVALID_X509_NAME_LIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017657i32); -pub const FABRIC_E_VERBOSE_FM_PLACEMENT_HEALTH_REPORTING_REQUIRED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017656i32); -pub const FABRIC_E_GATEWAY_NOT_REACHABLE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017655i32); -pub const FABRIC_E_USER_ROLE_CLIENT_CERTIFICATE_NOT_CONFIGURED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017654i32); -pub const FABRIC_E_TRANSACTION_ABORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017653i32); -pub const FABRIC_E_CANNOT_CONNECT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017652i32); -pub const FABRIC_E_MESSAGE_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017651i32); -pub const FABRIC_E_CONSTRAINT_NOT_SATISFIED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017650i32); -pub const FABRIC_E_ENDPOINT_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017649i32); -pub const FABRIC_E_APPLICATION_UPDATE_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017648i32); -pub const FABRIC_E_DELETE_BACKUP_FILE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017647i32); -pub const FABRIC_E_CONNECTION_CLOSED_BY_REMOTE_END: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017646i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_PARTITION_SELECTOR: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017624i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_PROTECTION_LEVEL: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017741i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_REPLICA_OPERATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017670i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_REPLICA_SELECTOR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017623i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_REPLICA_STATE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017669i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_RESTORE_DATA: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017638i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_SERVICE_SCALING_POLICY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017600i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_SERVICE_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017695i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_SUBJECT_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017739i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_INVALID_TEST_COMMAND_STATE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017645i32); -pub const FABRIC_E_TEST_COMMAND_OPERATION_ID_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017644i32); -pub const FABRIC_E_CM_OPERATION_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017643i32); -pub const FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017642i32); -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_FABRIC_DATA_ROOT_NOT_FOUND: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017639i32); -pub const FABRIC_E_INVALID_RESTORE_DATA: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017638i32); -pub const FABRIC_E_DUPLICATE_BACKUPS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017637i32); -pub const FABRIC_E_INVALID_BACKUP_CHAIN: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017636i32); -pub const FABRIC_E_STOP_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017635i32); -pub const FABRIC_E_ALREADY_STOPPED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017634i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_UPLOAD_SESSION_ID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017614i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_X509_FIND_TYPE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017745i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_X509_NAME_LIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017657i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_X509_STORE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017740i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_X509_STORE_LOCATION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017744i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_X509_STORE_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017743i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_INVALID_X509_THUMBPRINT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017742i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_KEY_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017709i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_KEY_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017710i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_LAST_RESERVED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017397i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_LAST_USED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017585i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_LOADBALANCER_NOT_READY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017668i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_MESSAGE_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017651i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_MISSING_FULL_BACKUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017673i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_MULTITHREADED_TRANSACTIONS_NOT_ALLOWED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017658i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_NAME_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017792i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_NAME_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017791i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_NAME_NOT_EMPTY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017790i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_NETWORK_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017586i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_NETWORK_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017587i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_NODE_HAS_NOT_STOPPED_YET: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017678i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_NODE_IS_DOWN: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017633i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_NODE_IS_UP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017788i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_NODE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017789i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_NODE_TRANSITION_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017632i32); -pub const FABRIC_E_INVALID_BACKUP: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017631i32); -pub const FABRIC_E_INVALID_INSTANCE_ID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017630i32); -pub const FABRIC_E_INVALID_DURATION: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017629i32); -pub const FABRIC_E_RESTORE_SAFE_CHECK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017628i32); -pub const FABRIC_E_CONFIG_UPGRADE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017627i32); -pub const FABRIC_E_UPLOAD_SESSION_RANGE_NOT_SATISFIABLE: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017626i32); -pub const FABRIC_E_UPLOAD_SESSION_ID_CONFLICT: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017625i32); -pub const FABRIC_E_INVALID_PARTITION_SELECTOR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017624i32); -pub const FABRIC_E_INVALID_REPLICA_SELECTOR: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017623i32); -pub const FABRIC_E_DNS_SERVICE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017622i32); -pub const FABRIC_E_INVALID_DNS_NAME: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017621i32); -pub const FABRIC_E_DNS_NAME_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017620i32); -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_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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_NOT_PRIMARY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017786i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_NOT_READABLE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017604i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_NOT_READY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017785i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_NO_WRITE_QUORUM: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017787i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_OBJECT_CLOSED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017730i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_OBJECT_DISPOSED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017605i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_ONLY_VALID_FOR_STATEFUL_PERSISTENT_SERVICES: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017615i32); -pub const FABRIC_E_INVALID_UPLOAD_SESSION_ID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017614i32); -pub const FABRIC_E_BACKUP_NOT_ENABLED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017613i32); -pub const FABRIC_E_BACKUP_IS_ENABLED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017612i32); -pub const FABRIC_E_BACKUP_POLICY_DOES_NOT_EXIST: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017611i32); -pub const FABRIC_E_BACKUP_POLICY_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017610i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_OPERATION_NOT_COMPLETE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017784i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_OPERATION_NOT_SUPPORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017590i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_PARTITION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017753i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_PATH_TOO_LONG: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017725i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_PREDEPLOYMENT_NOT_ALLOWED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017675i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_PRIMARY_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017666i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_PROCESS_ABORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017748i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_PROCESS_DEACTIVATED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017749i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_PROPERTY_CHECK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017771i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_PROPERTY_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017783i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RECONFIGURATION_PENDING: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017782i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017702i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_CANNOT_CONNECT: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017701i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_INVALID_TARGET_PARTITION: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017683i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_MANAGER_ALREADY_LISTENING: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017698i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_MANAGER_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017700i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_MANAGER_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017697i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_MANAGER_NOT_LISTENING: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017696i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017687i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_QUEUE_EMPTY: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017686i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_QUOTA_EXCEEDED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017685i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_REJECTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017699i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_SERVICE_FAULTED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017684i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RELIABLE_SESSION_TRANSPORT_STARTUP_FAILURE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017703i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_REPAIR_TASK_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017689i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_REPAIR_TASK_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017688i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_REPLICATION_OPERATION_TOO_LARGE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017681i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_REPLICATION_QUEUE_FULL: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017781i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_REPLICA_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017752i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_RESTORE_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017609i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_RESTORE_SAFE_CHECK_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017628i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017608i32); -pub const FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_ENABLED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017607i32); -pub const FABRIC_E_CONTAINER_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017606i32); -pub const FABRIC_E_OBJECT_DISPOSED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017605i32); -pub const FABRIC_E_NOT_READABLE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017604i32); -pub const FABRIC_E_BACKUPCOPIER_UNEXPECTED_ERROR: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017603i32); -pub const FABRIC_E_BACKUPCOPIER_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017602i32); -pub const FABRIC_E_BACKUPCOPIER_ACCESS_DENIED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017601i32); -pub const FABRIC_E_INVALID_SERVICE_SCALING_POLICY: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017600i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SECONDARY_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017665i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SECRET_INVALID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017593i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SECRET_TYPE_CANNOT_BE_CHANGED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017588i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SECRET_VERSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017592i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017708i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVER_AUTHENTICATION_FAILED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017660i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017776i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017780i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_DOES_NOT_EXIST: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017779i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_ENDPOINT_RESOURCE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017732i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017751i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017750i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_MANIFEST_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017704i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_METADATA_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017777i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_OFFLINE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017778i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_TOO_BUSY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017691i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_TYPE_ALREADY_REGISTERED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017775i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_TYPE_MISMATCH: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017759i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_TYPE_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017760i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_TYPE_NOT_REGISTERED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017774i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017758i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017599i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017598i32); -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_DATABASE_MIGRATION_IN_PROGRESS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017595i32); -pub const FABRIC_E_CENTRAL_SECRET_SERVICE_GENERIC: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017594i32); -pub const FABRIC_E_SECRET_INVALID: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017593i32); -pub const FABRIC_E_SECRET_VERSION_ALREADY_EXISTS: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017592i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub const FABRIC_E_SINGLE_INSTANCE_APPLICATION_UPGRADE_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017591i32); -pub const FABRIC_E_OPERATION_NOT_SUPPORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017590i32); -pub const FABRIC_E_COMPOSE_DEPLOYMENT_NOT_UPGRADING: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017589i32); -pub const FABRIC_E_SECRET_TYPE_CANNOT_BE_CHANGED: FABRIC_ERROR_CODE = - FABRIC_ERROR_CODE(-2147017588i32); -pub const FABRIC_E_NETWORK_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017587i32); -pub const FABRIC_E_NETWORK_IN_USE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017586i32); -pub const FABRIC_E_ENDPOINT_NOT_REFERENCED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017585i32); -pub const FABRIC_E_LAST_USED_HRESULT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017585i32); -impl ::core::marker::Copy for FABRIC_ERROR_CODE {} -impl ::core::clone::Clone for FABRIC_ERROR_CODE { +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_STOP_IN_PROGRESS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017635i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_TEST_COMMAND_OPERATION_ID_ALREADY_EXISTS: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017644i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_TIMEOUT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017729i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_TRANSACTION_ABORTED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017653i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_TRANSACTION_NOT_ACTIVE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017690i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_TRANSACTION_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017682i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_UPGRADE_DOMAIN_ALREADY_COMPLETED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017679i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_UPGRADE_FAILED: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017747i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_UPLOAD_SESSION_ID_CONFLICT: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017625i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_UPLOAD_SESSION_RANGE_NOT_SATISFIABLE: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017626i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_USER_ROLE_CLIENT_CERTIFICATE_NOT_CONFIGURED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017654i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_VALUE_EMPTY: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017772i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_VALUE_TOO_LARGE: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017773i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_VERBOSE_FM_PLACEMENT_HEALTH_REPORTING_REQUIRED: FABRIC_ERROR_CODE = + FABRIC_ERROR_CODE(-2147017656i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_VOLUME_ALREADY_EXISTS: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017597i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_VOLUME_NOT_FOUND: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017596i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_E_WRITE_CONFLICT: FABRIC_ERROR_CODE = FABRIC_ERROR_CODE(-2147017770i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_FAULT_TYPE_INVALID: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_FAULT_TYPE_PERMANENT: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_FAULT_TYPE_TRANSIENT: FABRIC_FAULT_TYPE = FABRIC_FAULT_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_ENTITY_KIND_APPLICATION: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_ENTITY_KIND_CLUSTER: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_ENTITY_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_ENTITY_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(7i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_ENTITY_KIND_INVALID: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_ENTITY_KIND_NODE: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_ENTITY_KIND_PARTITION: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_ENTITY_KIND_REPLICA: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_ENTITY_KIND_SERVICE: FABRIC_HEALTH_ENTITY_KIND = + FABRIC_HEALTH_ENTITY_KIND(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(18i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATIONS: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATION_TYPE_APPLICATIONS: + FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(21i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_DELTA_NODES_CHECK: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(19i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(17i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_APPLICATIONS: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_SERVICE_PACKAGES: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_EVENT: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_INVALID: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_NODE: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(12i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_NODES: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(7i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_PARTITION: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(14i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_PARTITIONS: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_REPLICA: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(13i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_REPLICAS: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_SERVICE: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(15i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_SERVICES: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_SYSTEM_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(9i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_DELTA_NODES_CHECK: + FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(20i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS: + FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(10i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_EVALUATION_KIND_UPGRADE_DOMAIN_NODES: FABRIC_HEALTH_EVALUATION_KIND = + FABRIC_HEALTH_EVALUATION_KIND(11i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_REPORT_INFINITE_TTL: u32 = 0u32; +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_REPORT_KIND_APPLICATION: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_REPORT_KIND_CLUSTER: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(9i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_REPORT_KIND_DEPLOYED_APPLICATION: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(7i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_REPORT_KIND_DEPLOYED_SERVICE_PACKAGE: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_REPORT_KIND_INVALID: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_REPORT_KIND_NODE: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_REPORT_KIND_PARTITION: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_REPORT_KIND_SERVICE: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_REPORT_KIND_STATEFUL_SERVICE_REPLICA: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_REPORT_KIND_STATELESS_SERVICE_INSTANCE: FABRIC_HEALTH_REPORT_KIND = + FABRIC_HEALTH_REPORT_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_STATE_ERROR: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_STATE_FILTER_ALL: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(65535i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_STATE_FILTER_DEFAULT: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_STATE_FILTER_ERROR: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_STATE_FILTER_NONE: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_STATE_FILTER_OK: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_STATE_FILTER_WARNING: FABRIC_HEALTH_STATE_FILTER = + FABRIC_HEALTH_STATE_FILTER(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_STATE_INVALID: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_STATE_OK: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_STATE_UNKNOWN: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(65535i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HEALTH_STATE_WARNING: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HOST_ISOLATION_MODE_HYPER_V: FABRIC_HOST_ISOLATION_MODE = + FABRIC_HOST_ISOLATION_MODE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HOST_ISOLATION_MODE_NONE: FABRIC_HOST_ISOLATION_MODE = + FABRIC_HOST_ISOLATION_MODE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HOST_ISOLATION_MODE_PROCESS: FABRIC_HOST_ISOLATION_MODE = + FABRIC_HOST_ISOLATION_MODE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HOST_TYPE_CONTAINER_HOST: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HOST_TYPE_EXE_HOST: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_HOST_TYPE_INVALID: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_IGNORE_SEQUENCE_NUMBER_CHECK: u32 = 0u32; +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_INFINITE_DURATION: u32 = 4294967295u32; +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_INVALID_ATOMIC_GROUP_ID: i32 = -1i32; +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_INVALID_INSTANCE_ID: i32 = -1i32; +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_INVALID_NODE_INSTANCE_ID: u32 = 0u32; +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_INVALID_OPERATION_INDEX: u32 = 4294967295u32; +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_INVALID_REPLICA_ID: i32 = -1i32; +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_INVALID_SEQUENCE_NUMBER: i32 = -1i32; +#[doc = "*Required features: `\"ServiceFabric\"`*"] +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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_INACTIVE: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_MIGRATION: FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_RESTORE_SOURCE_BACKUP: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_SOURCE_DATABASE_CLEANUP: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_ACTIVE: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_CLEANUP: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE_TARGET_DATABASE_SWAP: + FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_CANCELED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_COMPLETED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_FAILED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_INACTIVE: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_MIGRATION_STATE_PROCESSING: + FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_BLOCK_SECONDARY_ACK: + FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_INVALID: + FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE_NONE: FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = + FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_ESE: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = + FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_TSTORE: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = + FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_KEY_VALUE_STORE_PROVIDER_KIND_UNKNOWN: FABRIC_KEY_VALUE_STORE_PROVIDER_KIND = + FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_LOCAL_STORE_KIND_ESE: FABRIC_LOCAL_STORE_KIND = FABRIC_LOCAL_STORE_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_LOCAL_STORE_KIND_INVALID: FABRIC_LOCAL_STORE_KIND = FABRIC_LOCAL_STORE_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_INVALID: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = + FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_MANUAL: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = + FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_ROLLBACK: + FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MOVE_COST_HIGH: FABRIC_MOVE_COST = FABRIC_MOVE_COST(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MOVE_COST_LOW: FABRIC_MOVE_COST = FABRIC_MOVE_COST(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MOVE_COST_MEDIUM: FABRIC_MOVE_COST = FABRIC_MOVE_COST(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MOVE_COST_ZERO: FABRIC_MOVE_COST = FABRIC_MOVE_COST(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_INVALID: FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = + FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_USING_NODE_NAME: + FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND_USING_REPLICA_SELECTOR: + FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND = FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_INVALID: FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = + FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_USING_NODE_NAME: + FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND_USING_REPLICA_SELECTOR: + FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND = FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_CREATING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_DELETING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_FAILED: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_FILTER_ALL: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(65535i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_FILTER_CREATING: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_FILTER_DEFAULT: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_FILTER_DELETING: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_FILTER_FAILED: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_FILTER_READY: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_FILTER_UPDATING: FABRIC_NETWORK_STATUS_FILTER = + FABRIC_NETWORK_STATUS_FILTER(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_INVALID: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_READY: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_STATUS_UPDATING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_TYPE_FEDERATED: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_TYPE_INVALID: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NETWORK_TYPE_LOCAL: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_INTENT_INVALID: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_INTENT_PAUSE: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_INTENT_REMOVE_DATA: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_INTENT_REMOVE_NODE: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_INTENT_RESTART: FABRIC_NODE_DEACTIVATION_INTENT = + FABRIC_NODE_DEACTIVATION_INTENT(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_STATUS_COMPLETED: FABRIC_NODE_DEACTIVATION_STATUS = + FABRIC_NODE_DEACTIVATION_STATUS(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_STATUS_NONE: FABRIC_NODE_DEACTIVATION_STATUS = + FABRIC_NODE_DEACTIVATION_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_STATUS_SAFETY_CHECK_COMPLETE: FABRIC_NODE_DEACTIVATION_STATUS = + FABRIC_NODE_DEACTIVATION_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_STATUS_SAFETY_CHECK_IN_PROGRESS: + FABRIC_NODE_DEACTIVATION_STATUS = FABRIC_NODE_DEACTIVATION_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_CLIENT: FABRIC_NODE_DEACTIVATION_TASK_TYPE = + FABRIC_NODE_DEACTIVATION_TASK_TYPE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_INFRASTRUCTURE: FABRIC_NODE_DEACTIVATION_TASK_TYPE = + FABRIC_NODE_DEACTIVATION_TASK_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_INVALID: FABRIC_NODE_DEACTIVATION_TASK_TYPE = + FABRIC_NODE_DEACTIVATION_TASK_TYPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_REPAIR: FABRIC_NODE_DEACTIVATION_TASK_TYPE = + FABRIC_NODE_DEACTIVATION_TASK_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_TRANSITION_TYPE_INVALID: FABRIC_NODE_TRANSITION_TYPE = + FABRIC_NODE_TRANSITION_TYPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_TRANSITION_TYPE_START: FABRIC_NODE_TRANSITION_TYPE = + FABRIC_NODE_TRANSITION_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_TRANSITION_TYPE_STOP: FABRIC_NODE_TRANSITION_TYPE = + FABRIC_NODE_TRANSITION_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_UPGRADE_PHASE_INVALID: FABRIC_NODE_UPGRADE_PHASE = + FABRIC_NODE_UPGRADE_PHASE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_UPGRADE_PHASE_POST_UPGRADE_SAFETY_CHECK: FABRIC_NODE_UPGRADE_PHASE = + FABRIC_NODE_UPGRADE_PHASE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_UPGRADE_PHASE_PRE_UPGRADE_SAFETY_CHECK: FABRIC_NODE_UPGRADE_PHASE = + FABRIC_NODE_UPGRADE_PHASE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_NODE_UPGRADE_PHASE_UPGRADING: FABRIC_NODE_UPGRADE_PHASE = + FABRIC_NODE_UPGRADE_PHASE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_OPERATION_TYPE_ATOMIC_GROUP_OPERATION: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(32i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_OPERATION_TYPE_COMMIT_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(64i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_OPERATION_TYPE_CREATE_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_OPERATION_TYPE_END_OF_STREAM: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_OPERATION_TYPE_HAS_ATOMIC_GROUP_MASK: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(240i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_OPERATION_TYPE_INVALID: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_OPERATION_TYPE_NORMAL: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_OPERATION_TYPE_ROLLBACK_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = + FABRIC_OPERATION_TYPE(128i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_ALL: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_CODE: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_CONFIG: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_DATA: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_NONE: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = + FABRIC_PACKAGE_SHARING_POLICY_SCOPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_KEY_TYPE_INT64: FABRIC_PARTITION_KEY_TYPE = + FABRIC_PARTITION_KEY_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_KEY_TYPE_INVALID: FABRIC_PARTITION_KEY_TYPE = + FABRIC_PARTITION_KEY_TYPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_KEY_TYPE_NONE: FABRIC_PARTITION_KEY_TYPE = + FABRIC_PARTITION_KEY_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_KEY_TYPE_STRING: FABRIC_PARTITION_KEY_TYPE = + FABRIC_PARTITION_KEY_TYPE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_ENSURE_AVAILABILITY: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(7i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_ENSURE_QUORUM: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_INBUILD_REPLICA: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_PLACEMENT: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_SWAP: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RECONFIGURATION: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SCHEME_INVALID: FABRIC_PARTITION_SCHEME = FABRIC_PARTITION_SCHEME(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SCHEME_NAMED: FABRIC_PARTITION_SCHEME = FABRIC_PARTITION_SCHEME(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SCHEME_SINGLETON: FABRIC_PARTITION_SCHEME = + FABRIC_PARTITION_SCHEME(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SCHEME_UNIFORM_INT64_RANGE: FABRIC_PARTITION_SCHEME = + FABRIC_PARTITION_SCHEME(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SELECTOR_TYPE_NAMED: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SELECTOR_TYPE_NONE: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SELECTOR_TYPE_PARTITION_ID: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SELECTOR_TYPE_RANDOM: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SELECTOR_TYPE_SINGLETON: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PARTITION_SELECTOR_TYPE_UNIFORM_INT64: FABRIC_PARTITION_SELECTOR_TYPE = + FABRIC_PARTITION_SELECTOR_TYPE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PLACEMENT_POLICY_INVALID: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION: FABRIC_PLACEMENT_POLICY_TYPE = + FABRIC_PLACEMENT_POLICY_TYPE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_EXISTS: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_SEQUENCE: + FABRIC_PROPERTY_BATCH_OPERATION_KIND = FABRIC_PROPERTY_BATCH_OPERATION_KIND(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_VALUE: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(7i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_DELETE: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_GET: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_INVALID: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_PUT: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_PUT_CUSTOM: FABRIC_PROPERTY_BATCH_OPERATION_KIND = + FABRIC_PROPERTY_BATCH_OPERATION_KIND(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_TYPE_BINARY: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_TYPE_DOUBLE: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_TYPE_GUID: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_TYPE_INT64: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_TYPE_INVALID: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROPERTY_TYPE_WSTRING: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROTECTION_LEVEL_ENCRYPTANDSIGN: FABRIC_PROTECTION_LEVEL = + FABRIC_PROTECTION_LEVEL(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROTECTION_LEVEL_NONE: FABRIC_PROTECTION_LEVEL = FABRIC_PROTECTION_LEVEL(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROTECTION_LEVEL_SIGN: FABRIC_PROTECTION_LEVEL = FABRIC_PROTECTION_LEVEL(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_EXTERNAL_STORE: + FABRIC_PROVISION_APPLICATION_TYPE_KIND = FABRIC_PROVISION_APPLICATION_TYPE_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_IMAGE_STORE_PATH: + FABRIC_PROVISION_APPLICATION_TYPE_KIND = FABRIC_PROVISION_APPLICATION_TYPE_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_INVALID: FABRIC_PROVISION_APPLICATION_TYPE_KIND = + FABRIC_PROVISION_APPLICATION_TYPE_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_DISABLED: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_DISABLING: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_DOWN: FABRIC_QUERY_NODE_STATUS = FABRIC_QUERY_NODE_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_ENABLING: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_FILTER_ALL: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(65535i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_FILTER_DEFAULT: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_FILTER_DISABLED: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_FILTER_DISABLING: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_FILTER_DOWN: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_FILTER_ENABLING: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_FILTER_REMOVED: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(64i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_FILTER_UNKNOWN: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(32i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_FILTER_UP: FABRIC_QUERY_NODE_STATUS_FILTER = + FABRIC_QUERY_NODE_STATUS_FILTER(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_INVALID: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_REMOVED: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(7i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_UNKNOWN: FABRIC_QUERY_NODE_STATUS = + FABRIC_QUERY_NODE_STATUS(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_NODE_STATUS_UP: FABRIC_QUERY_NODE_STATUS = FABRIC_QUERY_NODE_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_ABORT: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(32i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_BUILD: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(256i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_CHANGEROLE: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_CLOSE: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_INVALID: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_NONE: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_ONDATALOSS: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(64i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_OPEN: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = + FABRIC_QUERY_REPLICATOR_OPERATION_NAME(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_UPDATEEPOCH: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_WAITFORCATCHUP: + FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(128i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_ABORT: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_CHANGEROLE: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_CLOSE: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_INVALID: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_NONE: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_OPERATION_NAME_OPEN: FABRIC_QUERY_SERVICE_OPERATION_NAME = + FABRIC_QUERY_SERVICE_OPERATION_NAME(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_DELETING: FABRIC_QUERY_SERVICE_PARTITION_STATUS = + FABRIC_QUERY_SERVICE_PARTITION_STATUS(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_INVALID: FABRIC_QUERY_SERVICE_PARTITION_STATUS = + FABRIC_QUERY_SERVICE_PARTITION_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_IN_QUORUM_LOSS: + FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_NOT_READY: FABRIC_QUERY_SERVICE_PARTITION_STATUS = + FABRIC_QUERY_SERVICE_PARTITION_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_READY: FABRIC_QUERY_SERVICE_PARTITION_STATUS = + FABRIC_QUERY_SERVICE_PARTITION_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_RECONFIGURING: + FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_DOWN: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_DROPPED: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_ALL: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(65535i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DEFAULT: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DOWN: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_DROPPED: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_INBUILD: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_READY: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER_STANDBY: + FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_INBUILD: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_INVALID: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_READY: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_STANDBY: FABRIC_QUERY_SERVICE_REPLICA_STATUS = + FABRIC_QUERY_SERVICE_REPLICA_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_STATUS_ACTIVE: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_STATUS_CREATING: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_STATUS_DELETING: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_STATUS_FAILED: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_STATUS_UNKNOWN: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUERY_SERVICE_STATUS_UPGRADING: FABRIC_QUERY_SERVICE_STATUS = + FABRIC_QUERY_SERVICE_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUORUM_LOSS_MODE_ALL_REPLICAS: FABRIC_QUORUM_LOSS_MODE = + FABRIC_QUORUM_LOSS_MODE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUORUM_LOSS_MODE_INVALID: FABRIC_QUORUM_LOSS_MODE = FABRIC_QUORUM_LOSS_MODE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_QUORUM_LOSS_MODE_QUORUM_REPLICAS: FABRIC_QUORUM_LOSS_MODE = + FABRIC_QUORUM_LOSS_MODE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_ABORT_PHASE_ZERO: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(7i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_PHASE_FOUR: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_PHASE_INVALID: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_PHASE_NONE: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_PHASE_ONE: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_PHASE_THREE: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_PHASE_TWO: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_PHASE_ZERO: FABRIC_RECONFIGURATION_PHASE = + FABRIC_RECONFIGURATION_PHASE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_TYPE_FAILOVER: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_TYPE_INVALID: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_TYPE_NONE: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_TYPE_OTHER: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RECONFIGURATION_TYPE_SWAPPRIMARY: FABRIC_RECONFIGURATION_TYPE = + FABRIC_RECONFIGURATION_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_IMPACT_KIND_INVALID: FABRIC_REPAIR_IMPACT_KIND = + FABRIC_REPAIR_IMPACT_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_IMPACT_KIND_NODE: FABRIC_REPAIR_IMPACT_KIND = + FABRIC_REPAIR_IMPACT_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_INVALID: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_NONE: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_REMOVE_DATA: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_REMOVE_NODE: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_NODE_IMPACT_LEVEL_RESTART: FABRIC_REPAIR_NODE_IMPACT_LEVEL = + FABRIC_REPAIR_NODE_IMPACT_LEVEL(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND_CLUSTER: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND = + FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND_INVALID: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND = + FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TARGET_KIND_INVALID: FABRIC_REPAIR_TARGET_KIND = + FABRIC_REPAIR_TARGET_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TARGET_KIND_NODE: FABRIC_REPAIR_TARGET_KIND = + FABRIC_REPAIR_TARGET_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_FLAGS_ABORT_REQUESTED: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_FLAGS_CANCEL_REQUESTED: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_FLAGS_FORCED_APPROVAL: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_FLAGS_NONE: FABRIC_REPAIR_TASK_FLAGS = FABRIC_REPAIR_TASK_FLAGS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_FLAGS_VALID_MASK: FABRIC_REPAIR_TASK_FLAGS = + FABRIC_REPAIR_TASK_FLAGS(7i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_IN_PROGRESS: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_NOT_STARTED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_SKIPPED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_SUCCEEDED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_TIMEDOUT: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = + FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_RESULT_CANCELLED: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_RESULT_FAILED: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_RESULT_INTERRUPTED: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_RESULT_INVALID: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_RESULT_PENDING: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_RESULT_SUCCEEDED: FABRIC_REPAIR_TASK_RESULT = + FABRIC_REPAIR_TASK_RESULT(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_APPROVED: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_CLAIMED: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_COMPLETED: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(64i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_CREATED: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_EXECUTING: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_FILTER_ACTIVE: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(63i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_FILTER_ALL: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(127i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_FILTER_APPROVED: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_FILTER_CLAIMED: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_FILTER_COMPLETED: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(64i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_FILTER_CREATED: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_FILTER_DEFAULT: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_FILTER_EXECUTING: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_FILTER_PREPARING: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_FILTER_READY_TO_EXECUTE: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(24i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_FILTER_RESTORING: FABRIC_REPAIR_TASK_STATE_FILTER = + FABRIC_REPAIR_TASK_STATE_FILTER(32i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_INVALID: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_PREPARING: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPAIR_TASK_STATE_RESTORING: FABRIC_REPAIR_TASK_STATE = + FABRIC_REPAIR_TASK_STATE(32i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_BATCH_ACKNOWLEDGEMENT_INTERVAL: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_COPY_QUEUE_INITIAL_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(128i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_COPY_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(256i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_LISTEN_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(1048576i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_INITIAL_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(65536i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_MAX_MEMORY_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(262144i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(131072i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_PRIMARY_WAIT_FOR_PENDING_QUORUMS_TIMEOUT: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(524288i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_PUBLISH_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(2097152i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_REPLICATION_MESSAGE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(2048i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_INITIAL_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(32i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_MAX_MEMORY_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(512i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(64i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_REQUIRE_SERVICE_ACK: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_RETRY_INTERVAL: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_SECONDARY_CLEAR_ACKNOWLEDGED_OPERATIONS: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(1024i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_INITIAL_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(8192i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_MAX_MEMORY_SIZE: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(32768i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(16384i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_SECURITY: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_SETTINGS_NONE: FABRIC_REPLICATOR_SETTINGS_FLAGS = + FABRIC_REPLICATOR_SETTINGS_FLAGS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICATOR_USE_STREAMFAULTS_AND_ENDOFSTREAM_OPERATIONACK: + FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(4096i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_OPEN_MODE_EXISTING: FABRIC_REPLICA_OPEN_MODE = + FABRIC_REPLICA_OPEN_MODE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_OPEN_MODE_INVALID: FABRIC_REPLICA_OPEN_MODE = + FABRIC_REPLICA_OPEN_MODE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_OPEN_MODE_NEW: FABRIC_REPLICA_OPEN_MODE = FABRIC_REPLICA_OPEN_MODE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_ROLE_ACTIVE_SECONDARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_ROLE_IDLE_SECONDARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_ROLE_NONE: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_ROLE_PRIMARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_ROLE_UNKNOWN: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_SET_QUORUM_ALL: FABRIC_REPLICA_SET_QUORUM_MODE = + FABRIC_REPLICA_SET_QUORUM_MODE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_SET_QUORUM_INVALID: FABRIC_REPLICA_SET_QUORUM_MODE = + FABRIC_REPLICA_SET_QUORUM_MODE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_SET_WRITE_QUORUM: FABRIC_REPLICA_SET_QUORUM_MODE = + FABRIC_REPLICA_SET_QUORUM_MODE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_STATUS_DOWN: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_STATUS_INVALID: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_REPLICA_STATUS_UP: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +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); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RESTART_NODE_DESCRIPTION_KIND_INVALID: FABRIC_RESTART_NODE_DESCRIPTION_KIND = + FABRIC_RESTART_NODE_DESCRIPTION_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RESTART_NODE_DESCRIPTION_KIND_USING_NODE_NAME: + FABRIC_RESTART_NODE_DESCRIPTION_KIND = FABRIC_RESTART_NODE_DESCRIPTION_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RESTART_PARTITION_MODE_ALL_REPLICAS_OR_INSTANCES: FABRIC_RESTART_PARTITION_MODE = + FABRIC_RESTART_PARTITION_MODE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RESTART_PARTITION_MODE_INVALID: FABRIC_RESTART_PARTITION_MODE = + FABRIC_RESTART_PARTITION_MODE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_RESTART_PARTITION_MODE_ONLY_ACTIVE_SECONDARIES: FABRIC_RESTART_PARTITION_MODE = + FABRIC_RESTART_PARTITION_MODE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_MODE_INVALID: FABRIC_ROLLING_UPGRADE_MODE = + FABRIC_ROLLING_UPGRADE_MODE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_MODE_MONITORED: FABRIC_ROLLING_UPGRADE_MODE = + FABRIC_ROLLING_UPGRADE_MODE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_MODE_UNMONITORED_AUTO: FABRIC_ROLLING_UPGRADE_MODE = + FABRIC_ROLLING_UPGRADE_MODE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_MODE_UNMONITORED_MANUAL: FABRIC_ROLLING_UPGRADE_MODE = + FABRIC_ROLLING_UPGRADE_MODE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_ENABLE_DELTAS: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(1024i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_FAILURE_ACTION: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_FORCE_RESTART: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_RETRY: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(64i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_STABLE: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(32i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_CHECK_WAIT: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_HEALTH_POLICY: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(512i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_NONE: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_REPLICA_SET_CHECK_TIMEOUT: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_APPLICATION_HEALTH_POLICY_MAP: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(4096i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_DOMAIN_TIMEOUT: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(256i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_HEALTH_POLICY: + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(2048i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_MODE: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_TIMEOUT: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = + FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(128i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SAFETY_CHECK_KIND_INVALID: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SCALING_MECHANISM_INVALID: FABRIC_SCALING_MECHANISM_KIND = + FABRIC_SCALING_MECHANISM_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SCALING_MECHANISM_KIND_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION: + FABRIC_SCALING_MECHANISM_KIND = FABRIC_SCALING_MECHANISM_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SCALING_MECHANISM_KIND_SCALE_PARTITION_INSTANCE_COUNT: + FABRIC_SCALING_MECHANISM_KIND = FABRIC_SCALING_MECHANISM_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SCALING_TRIGGER_KIND_AVERAGE_PARTITION_LOAD: FABRIC_SCALING_TRIGGER_KIND = + FABRIC_SCALING_TRIGGER_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SCALING_TRIGGER_KIND_AVERAGE_SERVICE_LOAD: FABRIC_SCALING_TRIGGER_KIND = + FABRIC_SCALING_TRIGGER_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SCALING_TRIGGER_KIND_INVALID: FABRIC_SCALING_TRIGGER_KIND = + FABRIC_SCALING_TRIGGER_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SECURITY_CREDENTIAL_KIND_CLAIMS: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SECURITY_CREDENTIAL_KIND_INVALID: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(255i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SECURITY_CREDENTIAL_KIND_NONE: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SECURITY_CREDENTIAL_KIND_WINDOWS: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SECURITY_CREDENTIAL_KIND_X509: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SECURITY_CREDENTIAL_KIND_X509_2: FABRIC_SECURITY_CREDENTIAL_KIND = + FABRIC_SECURITY_CREDENTIAL_KIND(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SEED_NODE_SAFETY_CHECK_KIND_ENSURE_QUORUM: FABRIC_SAFETY_CHECK_KIND = + FABRIC_SAFETY_CHECK_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_CORRELATION_SCHEME_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = + FABRIC_SERVICE_CORRELATION_SCHEME(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_CORRELATION_SCHEME_ALIGNED_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = + FABRIC_SERVICE_CORRELATION_SCHEME(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_CORRELATION_SCHEME_INVALID: FABRIC_SERVICE_CORRELATION_SCHEME = + FABRIC_SERVICE_CORRELATION_SCHEME(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_CORRELATION_SCHEME_NONALIGNED_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = + FABRIC_SERVICE_CORRELATION_SCHEME(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_DESCRIPTION_KIND_INVALID: FABRIC_SERVICE_DESCRIPTION_KIND = + FABRIC_SERVICE_DESCRIPTION_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_DESCRIPTION_KIND_STATEFUL: FABRIC_SERVICE_DESCRIPTION_KIND = + FABRIC_SERVICE_DESCRIPTION_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_DESCRIPTION_KIND_STATELESS: FABRIC_SERVICE_DESCRIPTION_KIND = + FABRIC_SERVICE_DESCRIPTION_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_KIND_INVALID: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_KIND_STATEFUL: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_KIND_STATELESS: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_HIGH: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = + FABRIC_SERVICE_LOAD_METRIC_WEIGHT(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_LOW: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = + FABRIC_SERVICE_LOAD_METRIC_WEIGHT(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_MEDIUM: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = + FABRIC_SERVICE_LOAD_METRIC_WEIGHT(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_ZERO: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = + FABRIC_SERVICE_LOAD_METRIC_WEIGHT(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_NAME_PREFIX: + FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_NONE: FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = + FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_PRIMARY_ONLY: + FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE_EXCLUSIVE_PROCESS: + FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE = FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE_SHARED_PROCESS: + FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE = FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_GRANTED: FABRIC_SERVICE_PARTITION_ACCESS_STATUS = + FABRIC_SERVICE_PARTITION_ACCESS_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_INVALID: FABRIC_SERVICE_PARTITION_ACCESS_STATUS = + FABRIC_SERVICE_PARTITION_ACCESS_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_NOT_PRIMARY: + FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_NO_WRITE_QUORUM: + FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_PARTITION_ACCESS_STATUS_RECONFIGURATION_PENDING: + FABRIC_SERVICE_PARTITION_ACCESS_STATUS = FABRIC_SERVICE_PARTITION_ACCESS_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_PARTITION_KIND_INT64_RANGE: FABRIC_SERVICE_PARTITION_KIND = + FABRIC_SERVICE_PARTITION_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_PARTITION_KIND_INVALID: FABRIC_SERVICE_PARTITION_KIND = + FABRIC_SERVICE_PARTITION_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_PARTITION_KIND_NAMED: FABRIC_SERVICE_PARTITION_KIND = + FABRIC_SERVICE_PARTITION_KIND(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_PARTITION_KIND_SINGLETON: FABRIC_SERVICE_PARTITION_KIND = + FABRIC_SERVICE_PARTITION_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_REPLICA_KIND_INVALID: FABRIC_SERVICE_REPLICA_KIND = + FABRIC_SERVICE_REPLICA_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_REPLICA_KIND_KEY_VALUE_STORE: FABRIC_SERVICE_REPLICA_KIND = + FABRIC_SERVICE_REPLICA_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_ROLE_INVALID: FABRIC_SERVICE_ENDPOINT_ROLE = + FABRIC_SERVICE_ENDPOINT_ROLE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_ROLE_STATEFUL_PRIMARY: FABRIC_SERVICE_ENDPOINT_ROLE = + FABRIC_SERVICE_ENDPOINT_ROLE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_ROLE_STATEFUL_SECONDARY: FABRIC_SERVICE_ENDPOINT_ROLE = + FABRIC_SERVICE_ENDPOINT_ROLE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_ROLE_STATELESS: FABRIC_SERVICE_ENDPOINT_ROLE = + FABRIC_SERVICE_ENDPOINT_ROLE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_DISABLED: + FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_INVALID: FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = + FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_NOT_REGISTERED: + FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_SERVICE_TYPE_REGISTRATION_STATUS_REGISTERED: + FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_START_NODE_DESCRIPTION_KIND_INVALID: FABRIC_START_NODE_DESCRIPTION_KIND = + FABRIC_START_NODE_DESCRIPTION_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_START_NODE_DESCRIPTION_KIND_USING_NODE_NAME: FABRIC_START_NODE_DESCRIPTION_KIND = + FABRIC_START_NODE_DESCRIPTION_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_CORRELATIONS: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(128i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_METRICS: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(256i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_MIN_REPLICA_SET_SIZE: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_MOVE_COST: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(512i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_NONE: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_PLACEMENT_CONSTRAINTS: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(32i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_POLICY_LIST: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(64i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_QUORUM_LOSS_WAIT_DURATION: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_REPLICA_RESTART_WAIT_DURATION: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_SCALING_POLICY: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(1024i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_SETTINGS_NONE: FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_SETTINGS_QUORUM_LOSS_WAIT_DURATION: + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_SETTINGS_REPLICA_RESTART_WAIT_DURATION: + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_SETTINGS_STANDBY_REPLICA_KEEP_DURATION: + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = + FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_STANDBY_REPLICA_KEEP_DURATION: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATEFUL_SERVICE_TARGET_REPLICA_SET_SIZE: + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATELESS_SERVICE_CORRELATIONS: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATELESS_SERVICE_INSTANCE_COUNT: + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATELESS_SERVICE_METRICS: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATELESS_SERVICE_MOVE_COST: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(32i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATELESS_SERVICE_NONE: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATELESS_SERVICE_PLACEMENT_CONSTRAINTS: + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATELESS_SERVICE_POLICY_LIST: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STATELESS_SERVICE_SCALING_POLICY: + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = + FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(64i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STOP_NODE_DESCRIPTION_KIND_INVALID: FABRIC_STOP_NODE_DESCRIPTION_KIND = + FABRIC_STOP_NODE_DESCRIPTION_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STOP_NODE_DESCRIPTION_KIND_USING_NODE_NAME: FABRIC_STOP_NODE_DESCRIPTION_KIND = + FABRIC_STOP_NODE_DESCRIPTION_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STORE_BACKUP_OPTION_FULL: FABRIC_STORE_BACKUP_OPTION = + FABRIC_STORE_BACKUP_OPTION(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STORE_BACKUP_OPTION_INCREMENTAL: FABRIC_STORE_BACKUP_OPTION = + FABRIC_STORE_BACKUP_OPTION(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_STORE_BACKUP_OPTION_TRUNCATE_LOGS_ONLY: FABRIC_STORE_BACKUP_OPTION = + FABRIC_STORE_BACKUP_OPTION(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_CANCELLED: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_COMPLETED: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_FAULTED: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_FORCE_CANCELLED: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_INVALID: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_ROLLING_BACK: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_RUNNING: FABRIC_TEST_COMMAND_PROGRESS_STATE = + FABRIC_TEST_COMMAND_PROGRESS_STATE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_STATE_FILTER_ALL: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(65535i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_STATE_FILTER_CANCELLED: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(32i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_STATE_FILTER_COMPLETED_SUCCESSFULLY: + FABRIC_TEST_COMMAND_STATE_FILTER = FABRIC_TEST_COMMAND_STATE_FILTER(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_STATE_FILTER_DEFAULT: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_STATE_FILTER_FAILED: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(16i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_STATE_FILTER_FORCE_CANCELLED: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(64i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_STATE_FILTER_ROLLING_BACK: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_STATE_FILTER_RUNNING: FABRIC_TEST_COMMAND_STATE_FILTER = + FABRIC_TEST_COMMAND_STATE_FILTER(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_TYPE_DEFAULT: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_TYPE_FILTER_ALL: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(65535i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_TYPE_FILTER_DEFAULT: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_DATA_LOSS: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_QUORUM_LOSS: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_TYPE_FILTER_PARTITION_RESTART: FABRIC_TEST_COMMAND_TYPE_FILTER = + FABRIC_TEST_COMMAND_TYPE_FILTER(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_DATA_LOSS: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_QUORUM_LOSS: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_TYPE_INVOKE_RESTART_PARTITION: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TEST_COMMAND_TYPE_START_NODE_TRANSITION: FABRIC_TEST_COMMAND_TYPE = + FABRIC_TEST_COMMAND_TYPE(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_DEFAULT: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_READ_COMMITTED: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_READ_UNCOMMITTED: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_REPEATABLE_READ: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_SERIALIZABLE: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_SNAPSHOT: FABRIC_TRANSACTION_ISOLATION_LEVEL = + FABRIC_TRANSACTION_ISOLATION_LEVEL(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_DOMAIN_STATE_COMPLETED: FABRIC_UPGRADE_DOMAIN_STATE = + FABRIC_UPGRADE_DOMAIN_STATE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_DOMAIN_STATE_INVALID: FABRIC_UPGRADE_DOMAIN_STATE = + FABRIC_UPGRADE_DOMAIN_STATE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_DOMAIN_STATE_IN_PROGRESS: FABRIC_UPGRADE_DOMAIN_STATE = + FABRIC_UPGRADE_DOMAIN_STATE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_DOMAIN_STATE_PENDING: FABRIC_UPGRADE_DOMAIN_STATE = + FABRIC_UPGRADE_DOMAIN_STATE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_FAILURE_REASON_HEALTH_CHECK: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_FAILURE_REASON_INTERRUPTED: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_FAILURE_REASON_NONE: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_FAILURE_REASON_OVERALL_UPGRADE_TIMEOUT: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_FAILURE_REASON_PROCESSING_FAILURE: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_FAILURE_REASON_UPGRADE_DOMAIN_TIMEOUT: FABRIC_UPGRADE_FAILURE_REASON = + FABRIC_UPGRADE_FAILURE_REASON(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_KIND_INVALID: FABRIC_UPGRADE_KIND = FABRIC_UPGRADE_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_KIND_ROLLING: FABRIC_UPGRADE_KIND = FABRIC_UPGRADE_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_ENSURE_AVAILABILITY: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(7i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_ENSURE_QUORUM: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_INBUILD_REPLICA: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_PLACEMENT: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_PRIMARY_SWAP: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RECONFIGURATION: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_PARTITION_SAFETY_CHECK_KIND_WAIT_FOR_RESOURCE_AVAILABILITY: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(8i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_SAFETY_CHECK_KIND_INVALID: FABRIC_UPGRADE_SAFETY_CHECK_KIND = + FABRIC_UPGRADE_SAFETY_CHECK_KIND(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK_KIND_ENSURE_QUORUM: + FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_STATE_FAILED: FABRIC_UPGRADE_STATE = FABRIC_UPGRADE_STATE(6i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_STATE_INVALID: FABRIC_UPGRADE_STATE = FABRIC_UPGRADE_STATE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_COMPLETED: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_IN_PROGRESS: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_PENDING: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(7i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_COMPLETED: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(5i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_IN_PROGRESS: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(4i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_PENDING: FABRIC_UPGRADE_STATE = + FABRIC_UPGRADE_STATE(3i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_X509_FIND_TYPE_FINDBYEXTENSION: FABRIC_X509_FIND_TYPE = + FABRIC_X509_FIND_TYPE(12i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_X509_FIND_TYPE_FINDBYSUBJECTNAME: FABRIC_X509_FIND_TYPE = + FABRIC_X509_FIND_TYPE(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_X509_FIND_TYPE_FINDBYTHUMBPRINT: FABRIC_X509_FIND_TYPE = + FABRIC_X509_FIND_TYPE(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_X509_STORE_LOCATION_CURRENTUSER: FABRIC_X509_STORE_LOCATION = + FABRIC_X509_STORE_LOCATION(1i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_X509_STORE_LOCATION_INVALID: FABRIC_X509_STORE_LOCATION = + FABRIC_X509_STORE_LOCATION(0i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +pub const FABRIC_X509_STORE_LOCATION_LOCALMACHINE: FABRIC_X509_STORE_LOCATION = + FABRIC_X509_STORE_LOCATION(2i32); +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_APPLICATION_DEFINITION_KIND(pub i32); +impl ::core::marker::Copy for FABRIC_APPLICATION_DEFINITION_KIND {} +impl ::core::clone::Clone for FABRIC_APPLICATION_DEFINITION_KIND { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_APPLICATION_DEFINITION_KIND { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_APPLICATION_DEFINITION_KIND_FILTER(pub i32); +impl ::core::marker::Copy for FABRIC_APPLICATION_DEFINITION_KIND_FILTER {} +impl ::core::clone::Clone for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_APPLICATION_DEFINITION_KIND_FILTER { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY(pub i32); +impl ::core::marker::Copy for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY {} +impl ::core::clone::Clone for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_APPLICATION_STATUS(pub i32); +impl ::core::marker::Copy for FABRIC_APPLICATION_STATUS {} +impl ::core::clone::Clone for FABRIC_APPLICATION_STATUS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_APPLICATION_STATUS { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_APPLICATION_TYPE_DEFINITION_KIND(pub i32); +impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_DEFINITION_KIND {} +impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_APPLICATION_TYPE_DEFINITION_KIND { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER(pub i32); +impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER {} +impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_APPLICATION_TYPE_DEFINITION_KIND_FILTER { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_APPLICATION_TYPE_STATUS(pub i32); +impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_STATUS {} +impl ::core::clone::Clone for FABRIC_APPLICATION_TYPE_STATUS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_APPLICATION_TYPE_STATUS { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS(pub i32); +impl ::core::marker::Copy for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS {} +impl ::core::clone::Clone for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_APPLICATION_UPDATE_DESCRIPTION_FLAGS { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_APPLICATION_UPGRADE_KIND(pub i32); +impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_KIND {} +impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_KIND { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_KIND { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_APPLICATION_UPGRADE_STATE(pub i32); +impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_STATE {} +impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_STATE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_STATE { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_CHAOS_EVENT_KIND(pub i32); +impl ::core::marker::Copy for FABRIC_CHAOS_EVENT_KIND {} +impl ::core::clone::Clone for FABRIC_CHAOS_EVENT_KIND { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_CHAOS_EVENT_KIND { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_CHAOS_SCHEDULE_STATUS(pub i32); +impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_STATUS {} +impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_STATUS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_STATUS { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_CHAOS_STATUS(pub i32); +impl ::core::marker::Copy for FABRIC_CHAOS_STATUS {} +impl ::core::clone::Clone for FABRIC_CHAOS_STATUS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_CHAOS_STATUS { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND(pub i32); +impl ::core::marker::Copy for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND {} +impl ::core::clone::Clone for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_CLIENT_ROLE(pub i32); +impl ::core::marker::Copy for FABRIC_CLIENT_ROLE {} +impl ::core::clone::Clone for FABRIC_CLIENT_ROLE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_CLIENT_ROLE { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND(pub i32); +impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND {} +impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_CODE_PACKAGE_EVENT_TYPE(pub i32); +impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_EVENT_TYPE {} +impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_EVENT_TYPE { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for FABRIC_ERROR_CODE { +impl ::core::default::Default for FABRIC_CODE_PACKAGE_EVENT_TYPE { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_ERROR_CODE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_EVENT_TYPE { + type TypeKind = ::windows_core::CopyType; } -impl ::core::fmt::Debug for FABRIC_ERROR_CODE { +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_ERROR_CODE").field(&self.0).finish() + f.debug_tuple("FABRIC_CODE_PACKAGE_EVENT_TYPE") + .field(&self.0) + .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_EXEHOST_WORKING_FOLDER(pub i32); -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_EXEHOST_WORKING_FOLDER_CODE_PACKAGE: FABRIC_EXEHOST_WORKING_FOLDER = - FABRIC_EXEHOST_WORKING_FOLDER(2i32); -pub const FABRIC_EXEHOST_WORKING_FOLDER_CODE_BASE: FABRIC_EXEHOST_WORKING_FOLDER = - FABRIC_EXEHOST_WORKING_FOLDER(3i32); -impl ::core::marker::Copy for FABRIC_EXEHOST_WORKING_FOLDER {} -impl ::core::clone::Clone for FABRIC_EXEHOST_WORKING_FOLDER { +pub struct FABRIC_DATA_LOSS_MODE(pub i32); +impl ::core::marker::Copy for FABRIC_DATA_LOSS_MODE {} +impl ::core::clone::Clone for FABRIC_DATA_LOSS_MODE { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for FABRIC_EXEHOST_WORKING_FOLDER { +impl ::core::default::Default for FABRIC_DATA_LOSS_MODE { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_EXEHOST_WORKING_FOLDER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DATA_LOSS_MODE { + type TypeKind = ::windows_core::CopyType; } -impl ::core::fmt::Debug for FABRIC_EXEHOST_WORKING_FOLDER { +impl ::core::fmt::Debug for FABRIC_DATA_LOSS_MODE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_EXEHOST_WORKING_FOLDER") + f.debug_tuple("FABRIC_DATA_LOSS_MODE") .field(&self.0) .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -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); -impl ::core::marker::Copy for FABRIC_FAULT_TYPE {} -impl ::core::clone::Clone for FABRIC_FAULT_TYPE { +pub struct FABRIC_DEPLOYMENT_STATUS(pub i32); +impl ::core::marker::Copy for FABRIC_DEPLOYMENT_STATUS {} +impl ::core::clone::Clone for FABRIC_DEPLOYMENT_STATUS { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for FABRIC_FAULT_TYPE { +impl ::core::default::Default for FABRIC_DEPLOYMENT_STATUS { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_FAULT_TYPE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYMENT_STATUS { + type TypeKind = ::windows_core::CopyType; } -impl ::core::fmt::Debug for FABRIC_FAULT_TYPE { +impl ::core::fmt::Debug for FABRIC_DEPLOYMENT_STATUS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_FAULT_TYPE").field(&self.0).finish() + f.debug_tuple("FABRIC_DEPLOYMENT_STATUS") + .field(&self.0) + .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_HEALTH_ENTITY_KIND(pub i32); -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_SERVICE: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(3i32); -pub const FABRIC_HEALTH_ENTITY_KIND_APPLICATION: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(4i32); -pub const FABRIC_HEALTH_ENTITY_KIND_REPLICA: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(5i32); -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_CLUSTER: FABRIC_HEALTH_ENTITY_KIND = - FABRIC_HEALTH_ENTITY_KIND(8i32); -impl ::core::marker::Copy for FABRIC_HEALTH_ENTITY_KIND {} -impl ::core::clone::Clone for FABRIC_HEALTH_ENTITY_KIND { +pub struct FABRIC_DIAGNOSTICS_SINKS_KIND(pub i32); +impl ::core::marker::Copy for FABRIC_DIAGNOSTICS_SINKS_KIND {} +impl ::core::clone::Clone for FABRIC_DIAGNOSTICS_SINKS_KIND { fn clone(&self) -> Self { *self } } -impl ::core::default::Default for FABRIC_HEALTH_ENTITY_KIND { +impl ::core::default::Default for FABRIC_DIAGNOSTICS_SINKS_KIND { fn default() -> Self { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_ENTITY_KIND { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DIAGNOSTICS_SINKS_KIND { + type TypeKind = ::windows_core::CopyType; } -impl ::core::fmt::Debug for FABRIC_HEALTH_ENTITY_KIND { +impl ::core::fmt::Debug for FABRIC_DIAGNOSTICS_SINKS_KIND { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple("FABRIC_HEALTH_ENTITY_KIND") + f.debug_tuple("FABRIC_DIAGNOSTICS_SINKS_KIND") .field(&self.0) .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_HEALTH_EVALUATION_KIND(pub i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_INVALID: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(0i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_EVENT: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(1i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_REPLICAS: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(2i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_PARTITIONS: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(3i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_SERVICE_PACKAGES: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(4i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DEPLOYED_APPLICATIONS: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(5i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_SERVICES: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(6i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_NODES: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(7i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATIONS: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(8i32); -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_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_EVALUATION_KIND_NODE: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(12i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_REPLICA: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(13i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_PARTITION: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(14i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_SERVICE: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(15i32); -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_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(17i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_APPLICATION: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(18i32); -pub const FABRIC_HEALTH_EVALUATION_KIND_DELTA_NODES_CHECK: FABRIC_HEALTH_EVALUATION_KIND = - FABRIC_HEALTH_EVALUATION_KIND(19i32); -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_APPLICATION_TYPE_APPLICATIONS: - FABRIC_HEALTH_EVALUATION_KIND = FABRIC_HEALTH_EVALUATION_KIND(21i32); +pub struct FABRIC_DLLHOST_HOSTED_DLL_KIND(pub i32); +impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_DLL_KIND {} +impl ::core::clone::Clone for FABRIC_DLLHOST_HOSTED_DLL_KIND { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_DLL_KIND { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_DLLHOST_ISOLATION_POLICY(pub i32); +impl ::core::marker::Copy for FABRIC_DLLHOST_ISOLATION_POLICY {} +impl ::core::clone::Clone for FABRIC_DLLHOST_ISOLATION_POLICY { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_DLLHOST_ISOLATION_POLICY { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_ENTRY_POINT_STATUS(pub i32); +impl ::core::marker::Copy for FABRIC_ENTRY_POINT_STATUS {} +impl ::core::clone::Clone for FABRIC_ENTRY_POINT_STATUS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_ENTRY_POINT_STATUS { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_ENUMERATION_STATUS(pub i32); +impl ::core::marker::Copy for FABRIC_ENUMERATION_STATUS {} +impl ::core::clone::Clone for FABRIC_ENUMERATION_STATUS { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_ENUMERATION_STATUS { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_ERROR_CODE(pub i32); +impl ::core::marker::Copy for FABRIC_ERROR_CODE {} +impl ::core::clone::Clone for FABRIC_ERROR_CODE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_ERROR_CODE { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_EXEHOST_WORKING_FOLDER(pub i32); +impl ::core::marker::Copy for FABRIC_EXEHOST_WORKING_FOLDER {} +impl ::core::clone::Clone for FABRIC_EXEHOST_WORKING_FOLDER { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_EXEHOST_WORKING_FOLDER { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_FAULT_TYPE(pub i32); +impl ::core::marker::Copy for FABRIC_FAULT_TYPE {} +impl ::core::clone::Clone for FABRIC_FAULT_TYPE { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_FAULT_TYPE { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_HEALTH_ENTITY_KIND(pub i32); +impl ::core::marker::Copy for FABRIC_HEALTH_ENTITY_KIND {} +impl ::core::clone::Clone for FABRIC_HEALTH_ENTITY_KIND { + fn clone(&self) -> Self { + *self + } +} +impl ::core::default::Default for FABRIC_HEALTH_ENTITY_KIND { + fn default() -> Self { + Self(0) + } +} +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() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_HEALTH_EVALUATION_KIND(pub i32); impl ::core::marker::Copy for FABRIC_HEALTH_EVALUATION_KIND {} impl ::core::clone::Clone for FABRIC_HEALTH_EVALUATION_KIND { fn clone(&self) -> Self { @@ -1278,8 +3128,8 @@ impl ::core::default::Default for FABRIC_HEALTH_EVALUATION_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVALUATION_KIND { - type Abi = Self; +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 { @@ -1288,29 +3138,10 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_EVALUATION_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_HEALTH_REPORT_KIND(pub i32); -pub const FABRIC_HEALTH_REPORT_KIND_INVALID: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(0i32); -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_REPORT_KIND_PARTITION: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(3i32); -pub const FABRIC_HEALTH_REPORT_KIND_NODE: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(4i32); -pub const FABRIC_HEALTH_REPORT_KIND_SERVICE: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(5i32); -pub const FABRIC_HEALTH_REPORT_KIND_APPLICATION: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(6i32); -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_CLUSTER: FABRIC_HEALTH_REPORT_KIND = - FABRIC_HEALTH_REPORT_KIND(9i32); impl ::core::marker::Copy for FABRIC_HEALTH_REPORT_KIND {} impl ::core::clone::Clone for FABRIC_HEALTH_REPORT_KIND { fn clone(&self) -> Self { @@ -1322,8 +3153,8 @@ impl ::core::default::Default for FABRIC_HEALTH_REPORT_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_REPORT_KIND { - type Abi = Self; +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 { @@ -1332,14 +3163,10 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_REPORT_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_HEALTH_STATE(pub i32); -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_WARNING: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(2i32); -pub const FABRIC_HEALTH_STATE_ERROR: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(3i32); -pub const FABRIC_HEALTH_STATE_UNKNOWN: FABRIC_HEALTH_STATE = FABRIC_HEALTH_STATE(65535i32); impl ::core::marker::Copy for FABRIC_HEALTH_STATE {} impl ::core::clone::Clone for FABRIC_HEALTH_STATE { fn clone(&self) -> Self { @@ -1351,29 +3178,18 @@ impl ::core::default::Default for FABRIC_HEALTH_STATE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_STATE { - type Abi = Self; +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() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_HEALTH_STATE_FILTER(pub i32); -pub const FABRIC_HEALTH_STATE_FILTER_DEFAULT: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(0i32); -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_FILTER_ERROR: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(8i32); -pub const FABRIC_HEALTH_STATE_FILTER_ALL: FABRIC_HEALTH_STATE_FILTER = - FABRIC_HEALTH_STATE_FILTER(65535i32); impl ::core::marker::Copy for FABRIC_HEALTH_STATE_FILTER {} impl ::core::clone::Clone for FABRIC_HEALTH_STATE_FILTER { fn clone(&self) -> Self { @@ -1385,8 +3201,8 @@ impl ::core::default::Default for FABRIC_HEALTH_STATE_FILTER { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_STATE_FILTER { - type Abi = Self; +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 { @@ -1395,15 +3211,10 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_STATE_FILTER { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_HOST_ISOLATION_MODE(pub i32); -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_ISOLATION_MODE_HYPER_V: FABRIC_HOST_ISOLATION_MODE = - FABRIC_HOST_ISOLATION_MODE(2i32); impl ::core::marker::Copy for FABRIC_HOST_ISOLATION_MODE {} impl ::core::clone::Clone for FABRIC_HOST_ISOLATION_MODE { fn clone(&self) -> Self { @@ -1415,8 +3226,8 @@ impl ::core::default::Default for FABRIC_HOST_ISOLATION_MODE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_HOST_ISOLATION_MODE { - type Abi = Self; +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 { @@ -1425,12 +3236,10 @@ impl ::core::fmt::Debug for FABRIC_HOST_ISOLATION_MODE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_HOST_TYPE(pub i32); -pub const FABRIC_HOST_TYPE_INVALID: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(0i32); -pub const FABRIC_HOST_TYPE_EXE_HOST: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(1i32); -pub const FABRIC_HOST_TYPE_CONTAINER_HOST: FABRIC_HOST_TYPE = FABRIC_HOST_TYPE(2i32); impl ::core::marker::Copy for FABRIC_HOST_TYPE {} impl ::core::clone::Clone for FABRIC_HOST_TYPE { fn clone(&self) -> Self { @@ -1442,25 +3251,18 @@ impl ::core::default::Default for FABRIC_HOST_TYPE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_HOST_TYPE { - type Abi = Self; +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() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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_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_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_REBUILD: FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE = - FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE(3i32); impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE {} impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { fn clone(&self) -> Self { @@ -1472,8 +3274,8 @@ impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { - type Abi = Self; +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 { @@ -1482,23 +3284,10 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_FULL_COPY_MODE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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_TARGET_DATABASE_SWAP: - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(2i32); -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_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_RESTORE_SOURCE_BACKUP: - FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE = FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE(6i32); impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE {} impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { fn clone(&self) -> Self { @@ -1510,8 +3299,8 @@ impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { - type Abi = Self; +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 { @@ -1520,19 +3309,10 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_MIGRATION_PHASE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(pub i32); -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_MIGRATION_STATE_COMPLETED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = - FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(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_FAILED: FABRIC_KEY_VALUE_STORE_MIGRATION_STATE = - FABRIC_KEY_VALUE_STORE_MIGRATION_STATE(4i32); impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE {} impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { fn clone(&self) -> Self { @@ -1544,8 +3324,8 @@ impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { - type Abi = Self; +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 { @@ -1554,17 +3334,10 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_MIGRATION_STATE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(pub i32); -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_NOTIFICATION_MODE_BLOCK_SECONDARY_ACK: - FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE = FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE(3i32); impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE {} impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { fn clone(&self) -> Self { @@ -1576,8 +3349,8 @@ impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { - type Abi = Self; +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 { @@ -1586,15 +3359,10 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_KEY_VALUE_STORE_PROVIDER_KIND(pub i32); -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_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); impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND {} impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { fn clone(&self) -> Self { @@ -1606,8 +3374,8 @@ impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { - type Abi = Self; +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 { @@ -1616,11 +3384,10 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_PROVIDER_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_LOCAL_STORE_KIND(pub i32); -pub const FABRIC_LOCAL_STORE_KIND_INVALID: FABRIC_LOCAL_STORE_KIND = FABRIC_LOCAL_STORE_KIND(0i32); -pub const FABRIC_LOCAL_STORE_KIND_ESE: FABRIC_LOCAL_STORE_KIND = FABRIC_LOCAL_STORE_KIND(1i32); impl ::core::marker::Copy for FABRIC_LOCAL_STORE_KIND {} impl ::core::clone::Clone for FABRIC_LOCAL_STORE_KIND { fn clone(&self) -> Self { @@ -1632,8 +3399,8 @@ impl ::core::default::Default for FABRIC_LOCAL_STORE_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_LOCAL_STORE_KIND { - type Abi = Self; +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 { @@ -1642,15 +3409,10 @@ impl ::core::fmt::Debug for FABRIC_LOCAL_STORE_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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_ROLLBACK: - FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(1i32); -pub const FABRIC_MONITORED_UPGRADE_FAILURE_ACTION_MANUAL: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION = - FABRIC_MONITORED_UPGRADE_FAILURE_ACTION(2i32); impl ::core::marker::Copy for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION {} impl ::core::clone::Clone for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { fn clone(&self) -> Self { @@ -1662,8 +3424,8 @@ impl ::core::default::Default for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { - type Abi = Self; +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 { @@ -1672,13 +3434,10 @@ impl ::core::fmt::Debug for FABRIC_MONITORED_UPGRADE_FAILURE_ACTION { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_MOVE_COST(pub i32); -pub const FABRIC_MOVE_COST_ZERO: FABRIC_MOVE_COST = FABRIC_MOVE_COST(0i32); -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_HIGH: FABRIC_MOVE_COST = FABRIC_MOVE_COST(3i32); impl ::core::marker::Copy for FABRIC_MOVE_COST {} impl ::core::clone::Clone for FABRIC_MOVE_COST { fn clone(&self) -> Self { @@ -1690,23 +3449,18 @@ impl ::core::default::Default for FABRIC_MOVE_COST { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_MOVE_COST { - type Abi = Self; +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() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); impl ::core::marker::Copy for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND {} impl ::core::clone::Clone for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { fn clone(&self) -> Self { @@ -1718,8 +3472,8 @@ impl ::core::default::Default for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { - type Abi = Self; +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 { @@ -1728,15 +3482,10 @@ impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); impl ::core::marker::Copy for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND {} impl ::core::clone::Clone for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { fn clone(&self) -> Self { @@ -1748,8 +3497,8 @@ impl ::core::default::Default for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { - type Abi = Self; +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 { @@ -1758,15 +3507,10 @@ impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_NETWORK_STATUS(pub i32); -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_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_UPDATING: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(4i32); -pub const FABRIC_NETWORK_STATUS_FAILED: FABRIC_NETWORK_STATUS = FABRIC_NETWORK_STATUS(5i32); impl ::core::marker::Copy for FABRIC_NETWORK_STATUS {} impl ::core::clone::Clone for FABRIC_NETWORK_STATUS { fn clone(&self) -> Self { @@ -1778,8 +3522,8 @@ impl ::core::default::Default for FABRIC_NETWORK_STATUS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_STATUS { - type Abi = Self; +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 { @@ -1788,23 +3532,10 @@ impl ::core::fmt::Debug for FABRIC_NETWORK_STATUS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_NETWORK_STATUS_FILTER(pub i32); -pub const FABRIC_NETWORK_STATUS_FILTER_DEFAULT: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(0i32); -pub const FABRIC_NETWORK_STATUS_FILTER_ALL: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(65535i32); -pub const FABRIC_NETWORK_STATUS_FILTER_READY: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(1i32); -pub const FABRIC_NETWORK_STATUS_FILTER_CREATING: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(2i32); -pub const FABRIC_NETWORK_STATUS_FILTER_DELETING: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(4i32); -pub const FABRIC_NETWORK_STATUS_FILTER_UPDATING: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(8i32); -pub const FABRIC_NETWORK_STATUS_FILTER_FAILED: FABRIC_NETWORK_STATUS_FILTER = - FABRIC_NETWORK_STATUS_FILTER(16i32); impl ::core::marker::Copy for FABRIC_NETWORK_STATUS_FILTER {} impl ::core::clone::Clone for FABRIC_NETWORK_STATUS_FILTER { fn clone(&self) -> Self { @@ -1816,8 +3547,8 @@ impl ::core::default::Default for FABRIC_NETWORK_STATUS_FILTER { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_STATUS_FILTER { - type Abi = Self; +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 { @@ -1826,12 +3557,10 @@ impl ::core::fmt::Debug for FABRIC_NETWORK_STATUS_FILTER { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_NETWORK_TYPE(pub i32); -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_NETWORK_TYPE_FEDERATED: FABRIC_NETWORK_TYPE = FABRIC_NETWORK_TYPE(2i32); impl ::core::marker::Copy for FABRIC_NETWORK_TYPE {} impl ::core::clone::Clone for FABRIC_NETWORK_TYPE { fn clone(&self) -> Self { @@ -1843,27 +3572,18 @@ impl ::core::default::Default for FABRIC_NETWORK_TYPE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_TYPE { - type Abi = Self; +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() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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_RESTART: FABRIC_NODE_DEACTIVATION_INTENT = - FABRIC_NODE_DEACTIVATION_INTENT(2i32); -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); impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_INTENT {} impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_INTENT { fn clone(&self) -> Self { @@ -1875,8 +3595,8 @@ impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_INTENT { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_INTENT { - type Abi = Self; +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 { @@ -1885,17 +3605,10 @@ impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_INTENT { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_NODE_DEACTIVATION_STATUS(pub i32); -pub const FABRIC_NODE_DEACTIVATION_STATUS_NONE: FABRIC_NODE_DEACTIVATION_STATUS = - FABRIC_NODE_DEACTIVATION_STATUS(0i32); -pub const FABRIC_NODE_DEACTIVATION_STATUS_SAFETY_CHECK_IN_PROGRESS: - FABRIC_NODE_DEACTIVATION_STATUS = FABRIC_NODE_DEACTIVATION_STATUS(1i32); -pub const FABRIC_NODE_DEACTIVATION_STATUS_SAFETY_CHECK_COMPLETE: FABRIC_NODE_DEACTIVATION_STATUS = - FABRIC_NODE_DEACTIVATION_STATUS(2i32); -pub const FABRIC_NODE_DEACTIVATION_STATUS_COMPLETED: FABRIC_NODE_DEACTIVATION_STATUS = - FABRIC_NODE_DEACTIVATION_STATUS(3i32); impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_STATUS {} impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_STATUS { fn clone(&self) -> Self { @@ -1907,8 +3620,8 @@ impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_STATUS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_STATUS { - type Abi = Self; +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 { @@ -1917,17 +3630,10 @@ impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_STATUS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_NODE_DEACTIVATION_TASK_TYPE(pub i32); -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_INFRASTRUCTURE: FABRIC_NODE_DEACTIVATION_TASK_TYPE = - FABRIC_NODE_DEACTIVATION_TASK_TYPE(1i32); -pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_REPAIR: FABRIC_NODE_DEACTIVATION_TASK_TYPE = - FABRIC_NODE_DEACTIVATION_TASK_TYPE(2i32); -pub const FABRIC_NODE_DEACTIVATION_TASK_TYPE_CLIENT: FABRIC_NODE_DEACTIVATION_TASK_TYPE = - FABRIC_NODE_DEACTIVATION_TASK_TYPE(3i32); impl ::core::marker::Copy for FABRIC_NODE_DEACTIVATION_TASK_TYPE {} impl ::core::clone::Clone for FABRIC_NODE_DEACTIVATION_TASK_TYPE { fn clone(&self) -> Self { @@ -1939,8 +3645,8 @@ impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_TASK_TYPE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_TASK_TYPE { - type Abi = Self; +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 { @@ -1949,15 +3655,10 @@ impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK_TYPE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); impl ::core::marker::Copy for FABRIC_NODE_TRANSITION_TYPE {} impl ::core::clone::Clone for FABRIC_NODE_TRANSITION_TYPE { fn clone(&self) -> Self { @@ -1969,8 +3670,8 @@ impl ::core::default::Default for FABRIC_NODE_TRANSITION_TYPE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_TRANSITION_TYPE { - type Abi = Self; +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 { @@ -1979,17 +3680,10 @@ impl ::core::fmt::Debug for FABRIC_NODE_TRANSITION_TYPE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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_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_NODE_UPGRADE_PHASE_POST_UPGRADE_SAFETY_CHECK: FABRIC_NODE_UPGRADE_PHASE = - FABRIC_NODE_UPGRADE_PHASE(3i32); impl ::core::marker::Copy for FABRIC_NODE_UPGRADE_PHASE {} impl ::core::clone::Clone for FABRIC_NODE_UPGRADE_PHASE { fn clone(&self) -> Self { @@ -2001,8 +3695,8 @@ impl ::core::default::Default for FABRIC_NODE_UPGRADE_PHASE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_UPGRADE_PHASE { - type Abi = Self; +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 { @@ -2011,22 +3705,10 @@ impl ::core::fmt::Debug for FABRIC_NODE_UPGRADE_PHASE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_OPERATION_TYPE(pub i32); -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_END_OF_STREAM: FABRIC_OPERATION_TYPE = FABRIC_OPERATION_TYPE(2i32); -pub const FABRIC_OPERATION_TYPE_CREATE_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(16i32); -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_ROLLBACK_ATOMIC_GROUP: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(128i32); -pub const FABRIC_OPERATION_TYPE_HAS_ATOMIC_GROUP_MASK: FABRIC_OPERATION_TYPE = - FABRIC_OPERATION_TYPE(240i32); impl ::core::marker::Copy for FABRIC_OPERATION_TYPE {} impl ::core::clone::Clone for FABRIC_OPERATION_TYPE { fn clone(&self) -> Self { @@ -2038,8 +3720,8 @@ impl ::core::default::Default for FABRIC_OPERATION_TYPE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_OPERATION_TYPE { - type Abi = Self; +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 { @@ -2048,19 +3730,10 @@ impl ::core::fmt::Debug for FABRIC_OPERATION_TYPE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_PACKAGE_SHARING_POLICY_SCOPE(pub i32); -pub const FABRIC_PACKAGE_SHARING_POLICY_SCOPE_NONE: FABRIC_PACKAGE_SHARING_POLICY_SCOPE = - FABRIC_PACKAGE_SHARING_POLICY_SCOPE(0i32); -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); impl ::core::marker::Copy for FABRIC_PACKAGE_SHARING_POLICY_SCOPE {} impl ::core::clone::Clone for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { fn clone(&self) -> Self { @@ -2072,27 +3745,20 @@ impl ::core::default::Default for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_PACKAGE_SHARING_POLICY_SCOPE { - type Abi = Self; +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(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_PARTITION_KEY_TYPE(pub i32); -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_INT64: FABRIC_PARTITION_KEY_TYPE = - FABRIC_PARTITION_KEY_TYPE(2i32); -pub const FABRIC_PARTITION_KEY_TYPE_STRING: FABRIC_PARTITION_KEY_TYPE = - FABRIC_PARTITION_KEY_TYPE(3i32); + .finish() + } +} +#[doc = "*Required features: `\"ServiceFabric\"`*"] +#[repr(transparent)] +#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] +pub struct FABRIC_PARTITION_KEY_TYPE(pub i32); impl ::core::marker::Copy for FABRIC_PARTITION_KEY_TYPE {} impl ::core::clone::Clone for FABRIC_PARTITION_KEY_TYPE { fn clone(&self) -> Self { @@ -2104,8 +3770,8 @@ impl ::core::default::Default for FABRIC_PARTITION_KEY_TYPE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_KEY_TYPE { - type Abi = Self; +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 { @@ -2114,15 +3780,10 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_KEY_TYPE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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_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_SCHEME_NAMED: FABRIC_PARTITION_SCHEME = FABRIC_PARTITION_SCHEME(3i32); impl ::core::marker::Copy for FABRIC_PARTITION_SCHEME {} impl ::core::clone::Clone for FABRIC_PARTITION_SCHEME { fn clone(&self) -> Self { @@ -2134,8 +3795,8 @@ impl ::core::default::Default for FABRIC_PARTITION_SCHEME { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_SCHEME { - type Abi = Self; +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 { @@ -2144,21 +3805,10 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_SCHEME { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_PARTITION_SELECTOR_TYPE(pub i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_NONE: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(0i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_SINGLETON: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(1i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_NAMED: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(2i32); -pub const FABRIC_PARTITION_SELECTOR_TYPE_UNIFORM_INT64: FABRIC_PARTITION_SELECTOR_TYPE = - FABRIC_PARTITION_SELECTOR_TYPE(3i32); -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); impl ::core::marker::Copy for FABRIC_PARTITION_SELECTOR_TYPE {} impl ::core::clone::Clone for FABRIC_PARTITION_SELECTOR_TYPE { fn clone(&self) -> Self { @@ -2170,8 +3820,8 @@ impl ::core::default::Default for FABRIC_PARTITION_SELECTOR_TYPE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_SELECTOR_TYPE { - type Abi = Self; +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 { @@ -2180,21 +3830,10 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_SELECTOR_TYPE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_PLACEMENT_POLICY_TYPE(pub i32); -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_REQUIRED_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(2i32); -pub const FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(3i32); -pub const FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(4i32); -pub const FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE: FABRIC_PLACEMENT_POLICY_TYPE = - FABRIC_PLACEMENT_POLICY_TYPE(5i32); impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_TYPE {} impl ::core::clone::Clone for FABRIC_PLACEMENT_POLICY_TYPE { fn clone(&self) -> Self { @@ -2206,8 +3845,8 @@ impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_TYPE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_PLACEMENT_POLICY_TYPE { - type Abi = Self; +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 { @@ -2216,25 +3855,10 @@ impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_TYPE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_PROPERTY_BATCH_OPERATION_KIND(pub i32); -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_GET: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(2i32); -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_DELETE: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(5i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_PUT_CUSTOM: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(6i32); -pub const FABRIC_PROPERTY_BATCH_OPERATION_KIND_CHECK_VALUE: FABRIC_PROPERTY_BATCH_OPERATION_KIND = - FABRIC_PROPERTY_BATCH_OPERATION_KIND(7i32); impl ::core::marker::Copy for FABRIC_PROPERTY_BATCH_OPERATION_KIND {} impl ::core::clone::Clone for FABRIC_PROPERTY_BATCH_OPERATION_KIND { fn clone(&self) -> Self { @@ -2246,8 +3870,8 @@ impl ::core::default::Default for FABRIC_PROPERTY_BATCH_OPERATION_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_PROPERTY_BATCH_OPERATION_KIND { - type Abi = Self; +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 { @@ -2256,15 +3880,10 @@ impl ::core::fmt::Debug for FABRIC_PROPERTY_BATCH_OPERATION_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_PROPERTY_TYPE_ID(pub i32); -pub const FABRIC_PROPERTY_TYPE_INVALID: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(0i32); -pub const FABRIC_PROPERTY_TYPE_BINARY: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(1i32); -pub const FABRIC_PROPERTY_TYPE_INT64: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(2i32); -pub const FABRIC_PROPERTY_TYPE_DOUBLE: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(3i32); -pub const FABRIC_PROPERTY_TYPE_WSTRING: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(4i32); -pub const FABRIC_PROPERTY_TYPE_GUID: FABRIC_PROPERTY_TYPE_ID = FABRIC_PROPERTY_TYPE_ID(5i32); impl ::core::marker::Copy for FABRIC_PROPERTY_TYPE_ID {} impl ::core::clone::Clone for FABRIC_PROPERTY_TYPE_ID { fn clone(&self) -> Self { @@ -2276,8 +3895,8 @@ impl ::core::default::Default for FABRIC_PROPERTY_TYPE_ID { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_PROPERTY_TYPE_ID { - type Abi = Self; +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 { @@ -2286,13 +3905,10 @@ impl ::core::fmt::Debug for FABRIC_PROPERTY_TYPE_ID { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_PROTECTION_LEVEL(pub i32); -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_PROTECTION_LEVEL_ENCRYPTANDSIGN: FABRIC_PROTECTION_LEVEL = - FABRIC_PROTECTION_LEVEL(2i32); impl ::core::marker::Copy for FABRIC_PROTECTION_LEVEL {} impl ::core::clone::Clone for FABRIC_PROTECTION_LEVEL { fn clone(&self) -> Self { @@ -2304,8 +3920,8 @@ impl ::core::default::Default for FABRIC_PROTECTION_LEVEL { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_PROTECTION_LEVEL { - type Abi = Self; +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 { @@ -2314,15 +3930,10 @@ impl ::core::fmt::Debug for FABRIC_PROTECTION_LEVEL { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_PROVISION_APPLICATION_TYPE_KIND(pub i32); -pub const FABRIC_PROVISION_APPLICATION_TYPE_KIND_INVALID: FABRIC_PROVISION_APPLICATION_TYPE_KIND = - FABRIC_PROVISION_APPLICATION_TYPE_KIND(0i32); -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_EXTERNAL_STORE: - FABRIC_PROVISION_APPLICATION_TYPE_KIND = FABRIC_PROVISION_APPLICATION_TYPE_KIND(2i32); impl ::core::marker::Copy for FABRIC_PROVISION_APPLICATION_TYPE_KIND {} impl ::core::clone::Clone for FABRIC_PROVISION_APPLICATION_TYPE_KIND { fn clone(&self) -> Self { @@ -2334,8 +3945,8 @@ impl ::core::default::Default for FABRIC_PROVISION_APPLICATION_TYPE_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_PROVISION_APPLICATION_TYPE_KIND { - type Abi = Self; +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 { @@ -2344,23 +3955,10 @@ impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_QUERY_NODE_STATUS(pub i32); -pub const FABRIC_QUERY_NODE_STATUS_INVALID: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(0i32); -pub const FABRIC_QUERY_NODE_STATUS_UP: FABRIC_QUERY_NODE_STATUS = FABRIC_QUERY_NODE_STATUS(1i32); -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_DISABLING: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(4i32); -pub const FABRIC_QUERY_NODE_STATUS_DISABLED: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(5i32); -pub const FABRIC_QUERY_NODE_STATUS_UNKNOWN: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(6i32); -pub const FABRIC_QUERY_NODE_STATUS_REMOVED: FABRIC_QUERY_NODE_STATUS = - FABRIC_QUERY_NODE_STATUS(7i32); impl ::core::marker::Copy for FABRIC_QUERY_NODE_STATUS {} impl ::core::clone::Clone for FABRIC_QUERY_NODE_STATUS { fn clone(&self) -> Self { @@ -2372,8 +3970,8 @@ impl ::core::default::Default for FABRIC_QUERY_NODE_STATUS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_QUERY_NODE_STATUS { - type Abi = Self; +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 { @@ -2382,27 +3980,10 @@ impl ::core::fmt::Debug for FABRIC_QUERY_NODE_STATUS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_QUERY_NODE_STATUS_FILTER(pub i32); -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_ALL: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(65535i32); -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_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_DISABLING: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(8i32); -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_UNKNOWN: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(32i32); -pub const FABRIC_QUERY_NODE_STATUS_FILTER_REMOVED: FABRIC_QUERY_NODE_STATUS_FILTER = - FABRIC_QUERY_NODE_STATUS_FILTER(64i32); impl ::core::marker::Copy for FABRIC_QUERY_NODE_STATUS_FILTER {} impl ::core::clone::Clone for FABRIC_QUERY_NODE_STATUS_FILTER { fn clone(&self) -> Self { @@ -2414,8 +3995,8 @@ impl ::core::default::Default for FABRIC_QUERY_NODE_STATUS_FILTER { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_QUERY_NODE_STATUS_FILTER { - type Abi = Self; +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 { @@ -2424,29 +4005,10 @@ impl ::core::fmt::Debug for FABRIC_QUERY_NODE_STATUS_FILTER { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_QUERY_REPLICATOR_OPERATION_NAME(pub i32); -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_OPEN: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(2i32); -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_UPDATEEPOCH: - FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(8i32); -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_ABORT: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(32i32); -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_WAITFORCATCHUP: - FABRIC_QUERY_REPLICATOR_OPERATION_NAME = FABRIC_QUERY_REPLICATOR_OPERATION_NAME(128i32); -pub const FABRIC_QUERY_REPLICATOR_OPERATION_NAME_BUILD: FABRIC_QUERY_REPLICATOR_OPERATION_NAME = - FABRIC_QUERY_REPLICATOR_OPERATION_NAME(256i32); impl ::core::marker::Copy for FABRIC_QUERY_REPLICATOR_OPERATION_NAME {} impl ::core::clone::Clone for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { fn clone(&self) -> Self { @@ -2458,8 +4020,8 @@ impl ::core::default::Default for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { - type Abi = Self; +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 { @@ -2468,21 +4030,10 @@ impl ::core::fmt::Debug for FABRIC_QUERY_REPLICATOR_OPERATION_NAME { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_QUERY_SERVICE_OPERATION_NAME(pub i32); -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_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_ABORT: FABRIC_QUERY_SERVICE_OPERATION_NAME = - FABRIC_QUERY_SERVICE_OPERATION_NAME(16i32); impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_OPERATION_NAME {} impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_OPERATION_NAME { fn clone(&self) -> Self { @@ -2494,8 +4045,8 @@ impl ::core::default::Default for FABRIC_QUERY_SERVICE_OPERATION_NAME { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_QUERY_SERVICE_OPERATION_NAME { - type Abi = Self; +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 { @@ -2504,21 +4055,10 @@ impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_OPERATION_NAME { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_QUERY_SERVICE_PARTITION_STATUS(pub i32); -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_READY: FABRIC_QUERY_SERVICE_PARTITION_STATUS = - FABRIC_QUERY_SERVICE_PARTITION_STATUS(1i32); -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_IN_QUORUM_LOSS: - FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(3i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_RECONFIGURING: - FABRIC_QUERY_SERVICE_PARTITION_STATUS = FABRIC_QUERY_SERVICE_PARTITION_STATUS(4i32); -pub const FABRIC_QUERY_SERVICE_PARTITION_STATUS_DELETING: FABRIC_QUERY_SERVICE_PARTITION_STATUS = - FABRIC_QUERY_SERVICE_PARTITION_STATUS(5i32); impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_PARTITION_STATUS {} impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_PARTITION_STATUS { fn clone(&self) -> Self { @@ -2530,8 +4070,8 @@ impl ::core::default::Default for FABRIC_QUERY_SERVICE_PARTITION_STATUS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_QUERY_SERVICE_PARTITION_STATUS { - type Abi = Self; +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 { @@ -2540,21 +4080,10 @@ impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_PARTITION_STATUS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_QUERY_SERVICE_REPLICA_STATUS(pub i32); -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_INBUILD: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(1i32); -pub const FABRIC_QUERY_SERVICE_REPLICA_STATUS_STANDBY: FABRIC_QUERY_SERVICE_REPLICA_STATUS = - FABRIC_QUERY_SERVICE_REPLICA_STATUS(2i32); -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_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); impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_REPLICA_STATUS {} impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_REPLICA_STATUS { fn clone(&self) -> Self { @@ -2566,8 +4095,8 @@ impl ::core::default::Default for FABRIC_QUERY_SERVICE_REPLICA_STATUS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_QUERY_SERVICE_REPLICA_STATUS { - type Abi = Self; +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 { @@ -2576,24 +4105,10 @@ impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_REPLICA_STATUS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(pub i32); -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_ALL: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(65535i32); -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_STANDBY: - FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER = FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER(2i32); -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_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); impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER {} impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { fn clone(&self) -> Self { @@ -2605,8 +4120,8 @@ impl ::core::default::Default for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { - type Abi = Self; +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 { @@ -2615,21 +4130,10 @@ impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_REPLICA_STATUS_FILTER { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_QUERY_SERVICE_STATUS(pub i32); -pub const FABRIC_QUERY_SERVICE_STATUS_UNKNOWN: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(0i32); -pub const FABRIC_QUERY_SERVICE_STATUS_ACTIVE: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(1i32); -pub const FABRIC_QUERY_SERVICE_STATUS_UPGRADING: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(2i32); -pub const FABRIC_QUERY_SERVICE_STATUS_DELETING: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(3i32); -pub const FABRIC_QUERY_SERVICE_STATUS_CREATING: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(4i32); -pub const FABRIC_QUERY_SERVICE_STATUS_FAILED: FABRIC_QUERY_SERVICE_STATUS = - FABRIC_QUERY_SERVICE_STATUS(5i32); impl ::core::marker::Copy for FABRIC_QUERY_SERVICE_STATUS {} impl ::core::clone::Clone for FABRIC_QUERY_SERVICE_STATUS { fn clone(&self) -> Self { @@ -2641,8 +4145,8 @@ impl ::core::default::Default for FABRIC_QUERY_SERVICE_STATUS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_QUERY_SERVICE_STATUS { - type Abi = Self; +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 { @@ -2651,14 +4155,10 @@ impl ::core::fmt::Debug for FABRIC_QUERY_SERVICE_STATUS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_QUORUM_LOSS_MODE(pub i32); -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_QUORUM_LOSS_MODE_ALL_REPLICAS: FABRIC_QUORUM_LOSS_MODE = - FABRIC_QUORUM_LOSS_MODE(2i32); impl ::core::marker::Copy for FABRIC_QUORUM_LOSS_MODE {} impl ::core::clone::Clone for FABRIC_QUORUM_LOSS_MODE { fn clone(&self) -> Self { @@ -2670,8 +4170,8 @@ impl ::core::default::Default for FABRIC_QUORUM_LOSS_MODE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_QUORUM_LOSS_MODE { - type Abi = Self; +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 { @@ -2680,25 +4180,10 @@ impl ::core::fmt::Debug for FABRIC_QUORUM_LOSS_MODE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_RECONFIGURATION_PHASE(pub i32); -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_ZERO: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(2i32); -pub const FABRIC_RECONFIGURATION_PHASE_ONE: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(3i32); -pub const FABRIC_RECONFIGURATION_PHASE_TWO: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(4i32); -pub const FABRIC_RECONFIGURATION_PHASE_THREE: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(5i32); -pub const FABRIC_RECONFIGURATION_PHASE_FOUR: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(6i32); -pub const FABRIC_RECONFIGURATION_ABORT_PHASE_ZERO: FABRIC_RECONFIGURATION_PHASE = - FABRIC_RECONFIGURATION_PHASE(7i32); impl ::core::marker::Copy for FABRIC_RECONFIGURATION_PHASE {} impl ::core::clone::Clone for FABRIC_RECONFIGURATION_PHASE { fn clone(&self) -> Self { @@ -2710,8 +4195,8 @@ impl ::core::default::Default for FABRIC_RECONFIGURATION_PHASE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_RECONFIGURATION_PHASE { - type Abi = Self; +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 { @@ -2720,19 +4205,10 @@ impl ::core::fmt::Debug for FABRIC_RECONFIGURATION_PHASE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_RECONFIGURATION_TYPE(pub i32); -pub const FABRIC_RECONFIGURATION_TYPE_INVALID: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(0i32); -pub const FABRIC_RECONFIGURATION_TYPE_SWAPPRIMARY: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(1i32); -pub const FABRIC_RECONFIGURATION_TYPE_FAILOVER: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(2i32); -pub const FABRIC_RECONFIGURATION_TYPE_OTHER: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(3i32); -pub const FABRIC_RECONFIGURATION_TYPE_NONE: FABRIC_RECONFIGURATION_TYPE = - FABRIC_RECONFIGURATION_TYPE(4i32); impl ::core::marker::Copy for FABRIC_RECONFIGURATION_TYPE {} impl ::core::clone::Clone for FABRIC_RECONFIGURATION_TYPE { fn clone(&self) -> Self { @@ -2744,8 +4220,8 @@ impl ::core::default::Default for FABRIC_RECONFIGURATION_TYPE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_RECONFIGURATION_TYPE { - type Abi = Self; +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 { @@ -2754,13 +4230,10 @@ impl ::core::fmt::Debug for FABRIC_RECONFIGURATION_TYPE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); impl ::core::marker::Copy for FABRIC_REPAIR_IMPACT_KIND {} impl ::core::clone::Clone for FABRIC_REPAIR_IMPACT_KIND { fn clone(&self) -> Self { @@ -2772,8 +4245,8 @@ impl ::core::default::Default for FABRIC_REPAIR_IMPACT_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_IMPACT_KIND { - type Abi = Self; +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 { @@ -2782,19 +4255,10 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_IMPACT_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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_RESTART: FABRIC_REPAIR_NODE_IMPACT_LEVEL = - FABRIC_REPAIR_NODE_IMPACT_LEVEL(2i32); -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); impl ::core::marker::Copy for FABRIC_REPAIR_NODE_IMPACT_LEVEL {} impl ::core::clone::Clone for FABRIC_REPAIR_NODE_IMPACT_LEVEL { fn clone(&self) -> Self { @@ -2806,8 +4270,8 @@ impl ::core::default::Default for FABRIC_REPAIR_NODE_IMPACT_LEVEL { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_NODE_IMPACT_LEVEL { - type Abi = Self; +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 { @@ -2816,13 +4280,10 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_NODE_IMPACT_LEVEL { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(pub i32); -pub const FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND_INVALID: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND = - FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(0i32); -pub const FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND_CLUSTER: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND = - FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND(1i32); impl ::core::marker::Copy for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND {} impl ::core::clone::Clone for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { fn clone(&self) -> Self { @@ -2834,8 +4295,8 @@ impl ::core::default::Default for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { - type Abi = Self; +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 { @@ -2844,13 +4305,10 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); impl ::core::marker::Copy for FABRIC_REPAIR_TARGET_KIND {} impl ::core::clone::Clone for FABRIC_REPAIR_TARGET_KIND { fn clone(&self) -> Self { @@ -2862,8 +4320,8 @@ impl ::core::default::Default for FABRIC_REPAIR_TARGET_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TARGET_KIND { - type Abi = Self; +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 { @@ -2872,18 +4330,10 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TARGET_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_REPAIR_TASK_FLAGS(pub i32); -pub const FABRIC_REPAIR_TASK_FLAGS_NONE: FABRIC_REPAIR_TASK_FLAGS = FABRIC_REPAIR_TASK_FLAGS(0i32); -pub const FABRIC_REPAIR_TASK_FLAGS_CANCEL_REQUESTED: FABRIC_REPAIR_TASK_FLAGS = - FABRIC_REPAIR_TASK_FLAGS(1i32); -pub const FABRIC_REPAIR_TASK_FLAGS_ABORT_REQUESTED: FABRIC_REPAIR_TASK_FLAGS = - FABRIC_REPAIR_TASK_FLAGS(2i32); -pub const FABRIC_REPAIR_TASK_FLAGS_FORCED_APPROVAL: FABRIC_REPAIR_TASK_FLAGS = - FABRIC_REPAIR_TASK_FLAGS(4i32); -pub const FABRIC_REPAIR_TASK_FLAGS_VALID_MASK: FABRIC_REPAIR_TASK_FLAGS = - FABRIC_REPAIR_TASK_FLAGS(7i32); impl ::core::marker::Copy for FABRIC_REPAIR_TASK_FLAGS {} impl ::core::clone::Clone for FABRIC_REPAIR_TASK_FLAGS { fn clone(&self) -> Self { @@ -2895,8 +4345,8 @@ impl ::core::default::Default for FABRIC_REPAIR_TASK_FLAGS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_FLAGS { - type Abi = Self; +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 { @@ -2905,19 +4355,10 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_FLAGS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] -pub struct FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(pub i32); -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_IN_PROGRESS: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(1i32); -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_SKIPPED: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(3i32); -pub const FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE_TIMEDOUT: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE = - FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(4i32); +pub struct FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE(pub i32); impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE {} impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { fn clone(&self) -> Self { @@ -2929,8 +4370,8 @@ impl ::core::default::Default for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { - type Abi = Self; +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 { @@ -2939,18 +4380,10 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS(pub i32); -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_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); impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS {} impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS { fn clone(&self) -> Self { @@ -2962,8 +4395,8 @@ impl ::core::default::Default for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTIN Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLAGS { - type Abi = Self; +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 { @@ -2972,21 +4405,10 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_SETTINGS_FLA .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_REPAIR_TASK_RESULT(pub i32); -pub const FABRIC_REPAIR_TASK_RESULT_INVALID: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(0i32); -pub const FABRIC_REPAIR_TASK_RESULT_SUCCEEDED: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(1i32); -pub const FABRIC_REPAIR_TASK_RESULT_CANCELLED: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(2i32); -pub const FABRIC_REPAIR_TASK_RESULT_INTERRUPTED: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(4i32); -pub const FABRIC_REPAIR_TASK_RESULT_FAILED: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(8i32); -pub const FABRIC_REPAIR_TASK_RESULT_PENDING: FABRIC_REPAIR_TASK_RESULT = - FABRIC_REPAIR_TASK_RESULT(16i32); impl ::core::marker::Copy for FABRIC_REPAIR_TASK_RESULT {} impl ::core::clone::Clone for FABRIC_REPAIR_TASK_RESULT { fn clone(&self) -> Self { @@ -2998,8 +4420,8 @@ impl ::core::default::Default for FABRIC_REPAIR_TASK_RESULT { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_RESULT { - type Abi = Self; +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 { @@ -3008,25 +4430,10 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_RESULT { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_REPAIR_TASK_STATE(pub i32); -pub const FABRIC_REPAIR_TASK_STATE_INVALID: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(0i32); -pub const FABRIC_REPAIR_TASK_STATE_CREATED: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(1i32); -pub const FABRIC_REPAIR_TASK_STATE_CLAIMED: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(2i32); -pub const FABRIC_REPAIR_TASK_STATE_PREPARING: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(4i32); -pub const FABRIC_REPAIR_TASK_STATE_APPROVED: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(8i32); -pub const FABRIC_REPAIR_TASK_STATE_EXECUTING: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(16i32); -pub const FABRIC_REPAIR_TASK_STATE_RESTORING: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(32i32); -pub const FABRIC_REPAIR_TASK_STATE_COMPLETED: FABRIC_REPAIR_TASK_STATE = - FABRIC_REPAIR_TASK_STATE(64i32); impl ::core::marker::Copy for FABRIC_REPAIR_TASK_STATE {} impl ::core::clone::Clone for FABRIC_REPAIR_TASK_STATE { fn clone(&self) -> Self { @@ -3038,8 +4445,8 @@ impl ::core::default::Default for FABRIC_REPAIR_TASK_STATE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_STATE { - type Abi = Self; +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 { @@ -3048,31 +4455,10 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_STATE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_REPAIR_TASK_STATE_FILTER(pub i32); -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_CREATED: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(1i32); -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_PREPARING: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(4i32); -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_EXECUTING: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(16i32); -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_FILTER_COMPLETED: FABRIC_REPAIR_TASK_STATE_FILTER = - FABRIC_REPAIR_TASK_STATE_FILTER(64i32); -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_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); impl ::core::marker::Copy for FABRIC_REPAIR_TASK_STATE_FILTER {} impl ::core::clone::Clone for FABRIC_REPAIR_TASK_STATE_FILTER { fn clone(&self) -> Self { @@ -3084,8 +4470,8 @@ impl ::core::default::Default for FABRIC_REPAIR_TASK_STATE_FILTER { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_STATE_FILTER { - type Abi = Self; +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 { @@ -3094,55 +4480,10 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_STATE_FILTER { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_REPLICATOR_SETTINGS_FLAGS(pub i32); -pub const FABRIC_REPLICATOR_SETTINGS_NONE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(0i32); -pub const FABRIC_REPLICATOR_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(1i32); -pub const FABRIC_REPLICATOR_SECURITY: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(2i32); -pub const FABRIC_REPLICATOR_RETRY_INTERVAL: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(4i32); -pub const FABRIC_REPLICATOR_BATCH_ACKNOWLEDGEMENT_INTERVAL: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(8i32); -pub const FABRIC_REPLICATOR_REQUIRE_SERVICE_ACK: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(16i32); -pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_INITIAL_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(32i32); -pub const FABRIC_REPLICATOR_REPLICATION_QUEUE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(64i32); -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_REPLICATION_QUEUE_MAX_MEMORY_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(512i32); -pub const FABRIC_REPLICATOR_SECONDARY_CLEAR_ACKNOWLEDGED_OPERATIONS: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(1024i32); -pub const FABRIC_REPLICATOR_REPLICATION_MESSAGE_MAX_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(2048i32); -pub const FABRIC_REPLICATOR_USE_STREAMFAULTS_AND_ENDOFSTREAM_OPERATIONACK: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(4096i32); -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_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(16384i32); -pub const FABRIC_REPLICATOR_SECONDARY_REPLICATION_QUEUE_MAX_MEMORY_SIZE: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(32768i32); -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_SIZE: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(131072i32); -pub const FABRIC_REPLICATOR_PRIMARY_REPLICATION_QUEUE_MAX_MEMORY_SIZE: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(262144i32); -pub const FABRIC_REPLICATOR_PRIMARY_WAIT_FOR_PENDING_QUORUMS_TIMEOUT: - FABRIC_REPLICATOR_SETTINGS_FLAGS = FABRIC_REPLICATOR_SETTINGS_FLAGS(524288i32); -pub const FABRIC_REPLICATOR_LISTEN_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(1048576i32); -pub const FABRIC_REPLICATOR_PUBLISH_ADDRESS: FABRIC_REPLICATOR_SETTINGS_FLAGS = - FABRIC_REPLICATOR_SETTINGS_FLAGS(2097152i32); impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_FLAGS {} impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_FLAGS { fn clone(&self) -> Self { @@ -3154,8 +4495,8 @@ impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_FLAGS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_SETTINGS_FLAGS { - type Abi = Self; +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 { @@ -3164,14 +4505,10 @@ impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_FLAGS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_REPLICA_OPEN_MODE(pub i32); -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_OPEN_MODE_EXISTING: FABRIC_REPLICA_OPEN_MODE = - FABRIC_REPLICA_OPEN_MODE(2i32); impl ::core::marker::Copy for FABRIC_REPLICA_OPEN_MODE {} impl ::core::clone::Clone for FABRIC_REPLICA_OPEN_MODE { fn clone(&self) -> Self { @@ -3183,8 +4520,8 @@ impl ::core::default::Default for FABRIC_REPLICA_OPEN_MODE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_OPEN_MODE { - type Abi = Self; +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 { @@ -3193,14 +4530,10 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_OPEN_MODE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_REPLICA_ROLE(pub i32); -pub const FABRIC_REPLICA_ROLE_UNKNOWN: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(0i32); -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_IDLE_SECONDARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(3i32); -pub const FABRIC_REPLICA_ROLE_ACTIVE_SECONDARY: FABRIC_REPLICA_ROLE = FABRIC_REPLICA_ROLE(4i32); impl ::core::marker::Copy for FABRIC_REPLICA_ROLE {} impl ::core::clone::Clone for FABRIC_REPLICA_ROLE { fn clone(&self) -> Self { @@ -3212,23 +4545,18 @@ impl ::core::default::Default for FABRIC_REPLICA_ROLE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_ROLE { - type Abi = Self; +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() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_REPLICA_SET_QUORUM_MODE(pub i32); -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_SET_QUORUM_ALL: FABRIC_REPLICA_SET_QUORUM_MODE = - FABRIC_REPLICA_SET_QUORUM_MODE(2i32); impl ::core::marker::Copy for FABRIC_REPLICA_SET_QUORUM_MODE {} impl ::core::clone::Clone for FABRIC_REPLICA_SET_QUORUM_MODE { fn clone(&self) -> Self { @@ -3240,8 +4568,8 @@ impl ::core::default::Default for FABRIC_REPLICA_SET_QUORUM_MODE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_SET_QUORUM_MODE { - type Abi = Self; +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 { @@ -3250,12 +4578,10 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_SET_QUORUM_MODE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_REPLICA_STATUS(pub i32); -pub const FABRIC_REPLICA_STATUS_INVALID: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(0i32); -pub const FABRIC_REPLICA_STATUS_DOWN: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(1i32); -pub const FABRIC_REPLICA_STATUS_UP: FABRIC_REPLICA_STATUS = FABRIC_REPLICA_STATUS(2i32); impl ::core::marker::Copy for FABRIC_REPLICA_STATUS {} impl ::core::clone::Clone for FABRIC_REPLICA_STATUS { fn clone(&self) -> Self { @@ -3267,8 +4593,8 @@ impl ::core::default::Default for FABRIC_REPLICA_STATUS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_STATUS { - type Abi = Self; +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 { @@ -3277,15 +4603,10 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_STATUS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); impl ::core::marker::Copy for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND {} impl ::core::clone::Clone for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND { fn clone(&self) -> Self { @@ -3297,8 +4618,8 @@ impl ::core::default::Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTI Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND { - type Abi = Self; +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 { @@ -3307,13 +4628,10 @@ impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIN .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION_KIND {} impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION_KIND { fn clone(&self) -> Self { @@ -3325,8 +4643,8 @@ impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_RESTART_NODE_DESCRIPTION_KIND { - type Abi = Self; +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 { @@ -3335,15 +4653,10 @@ impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_RESTART_PARTITION_MODE(pub i32); -pub const FABRIC_RESTART_PARTITION_MODE_INVALID: FABRIC_RESTART_PARTITION_MODE = - FABRIC_RESTART_PARTITION_MODE(0i32); -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_ONLY_ACTIVE_SECONDARIES: FABRIC_RESTART_PARTITION_MODE = - FABRIC_RESTART_PARTITION_MODE(2i32); impl ::core::marker::Copy for FABRIC_RESTART_PARTITION_MODE {} impl ::core::clone::Clone for FABRIC_RESTART_PARTITION_MODE { fn clone(&self) -> Self { @@ -3355,8 +4668,8 @@ impl ::core::default::Default for FABRIC_RESTART_PARTITION_MODE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_RESTART_PARTITION_MODE { - type Abi = Self; +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 { @@ -3365,17 +4678,10 @@ impl ::core::fmt::Debug for FABRIC_RESTART_PARTITION_MODE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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_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_MODE_MONITORED: FABRIC_ROLLING_UPGRADE_MODE = - FABRIC_ROLLING_UPGRADE_MODE(3i32); impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_MODE {} impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_MODE { fn clone(&self) -> Self { @@ -3387,8 +4693,8 @@ impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_MODE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_MODE { - type Abi = Self; +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 { @@ -3397,37 +4703,10 @@ impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_MODE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(pub i32); -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_UPGRADE_MODE: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(1i32); -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_REPLICA_SET_CHECK_TIMEOUT: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(4i32); -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_HEALTH_CHECK_WAIT: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(16i32); -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_RETRY: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(64i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_TIMEOUT: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(128i32); -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_HEALTH_POLICY: FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(512i32); -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_UPGRADE_HEALTH_POLICY: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(2048i32); -pub const FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS_UPGRADE_APPLICATION_HEALTH_POLICY_MAP: - FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS = FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS(4096i32); impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS {} impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { fn clone(&self) -> Self { @@ -3439,8 +4718,8 @@ impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { - type Abi = Self; +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 { @@ -3449,25 +4728,10 @@ impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_UPDATE_FLAGS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_SAFETY_CHECK_KIND(pub i32); -pub const FABRIC_SAFETY_CHECK_KIND_INVALID: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(0i32); -pub const FABRIC_SEED_NODE_SAFETY_CHECK_KIND_ENSURE_QUORUM: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(1i32); -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_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_SAFETY_CHECK_KIND_WAIT_FOR_INBUILD_REPLICA: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(6i32); -pub const FABRIC_PARTITION_SAFETY_CHECK_KIND_ENSURE_AVAILABILITY: FABRIC_SAFETY_CHECK_KIND = - FABRIC_SAFETY_CHECK_KIND(7i32); impl ::core::marker::Copy for FABRIC_SAFETY_CHECK_KIND {} impl ::core::clone::Clone for FABRIC_SAFETY_CHECK_KIND { fn clone(&self) -> Self { @@ -3479,8 +4743,8 @@ impl ::core::default::Default for FABRIC_SAFETY_CHECK_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SAFETY_CHECK_KIND { - type Abi = Self; +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 { @@ -3489,15 +4753,10 @@ impl ::core::fmt::Debug for FABRIC_SAFETY_CHECK_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_SCALING_MECHANISM_KIND(pub i32); -pub const FABRIC_SCALING_MECHANISM_INVALID: FABRIC_SCALING_MECHANISM_KIND = - FABRIC_SCALING_MECHANISM_KIND(0i32); -pub const FABRIC_SCALING_MECHANISM_KIND_SCALE_PARTITION_INSTANCE_COUNT: - FABRIC_SCALING_MECHANISM_KIND = FABRIC_SCALING_MECHANISM_KIND(1i32); -pub const FABRIC_SCALING_MECHANISM_KIND_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION: - FABRIC_SCALING_MECHANISM_KIND = FABRIC_SCALING_MECHANISM_KIND(2i32); impl ::core::marker::Copy for FABRIC_SCALING_MECHANISM_KIND {} impl ::core::clone::Clone for FABRIC_SCALING_MECHANISM_KIND { fn clone(&self) -> Self { @@ -3509,8 +4768,8 @@ impl ::core::default::Default for FABRIC_SCALING_MECHANISM_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SCALING_MECHANISM_KIND { - type Abi = Self; +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 { @@ -3519,15 +4778,10 @@ impl ::core::fmt::Debug for FABRIC_SCALING_MECHANISM_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_SCALING_TRIGGER_KIND(pub i32); -pub const FABRIC_SCALING_TRIGGER_KIND_INVALID: FABRIC_SCALING_TRIGGER_KIND = - FABRIC_SCALING_TRIGGER_KIND(0i32); -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); impl ::core::marker::Copy for FABRIC_SCALING_TRIGGER_KIND {} impl ::core::clone::Clone for FABRIC_SCALING_TRIGGER_KIND { fn clone(&self) -> Self { @@ -3539,8 +4793,8 @@ impl ::core::default::Default for FABRIC_SCALING_TRIGGER_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SCALING_TRIGGER_KIND { - type Abi = Self; +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 { @@ -3549,21 +4803,10 @@ impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_SECURITY_CREDENTIAL_KIND(pub i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_NONE: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(0i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_X509: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(1i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_WINDOWS: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(2i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_CLAIMS: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(3i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_X509_2: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(4i32); -pub const FABRIC_SECURITY_CREDENTIAL_KIND_INVALID: FABRIC_SECURITY_CREDENTIAL_KIND = - FABRIC_SECURITY_CREDENTIAL_KIND(255i32); impl ::core::marker::Copy for FABRIC_SECURITY_CREDENTIAL_KIND {} impl ::core::clone::Clone for FABRIC_SECURITY_CREDENTIAL_KIND { fn clone(&self) -> Self { @@ -3575,8 +4818,8 @@ impl ::core::default::Default for FABRIC_SECURITY_CREDENTIAL_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SECURITY_CREDENTIAL_KIND { - type Abi = Self; +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 { @@ -3585,17 +4828,10 @@ impl ::core::fmt::Debug for FABRIC_SECURITY_CREDENTIAL_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_SERVICE_CORRELATION_SCHEME(pub i32); -pub const FABRIC_SERVICE_CORRELATION_SCHEME_INVALID: FABRIC_SERVICE_CORRELATION_SCHEME = - FABRIC_SERVICE_CORRELATION_SCHEME(0i32); -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_NONALIGNED_AFFINITY: FABRIC_SERVICE_CORRELATION_SCHEME = - FABRIC_SERVICE_CORRELATION_SCHEME(3i32); impl ::core::marker::Copy for FABRIC_SERVICE_CORRELATION_SCHEME {} impl ::core::clone::Clone for FABRIC_SERVICE_CORRELATION_SCHEME { fn clone(&self) -> Self { @@ -3607,8 +4843,8 @@ impl ::core::default::Default for FABRIC_SERVICE_CORRELATION_SCHEME { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_CORRELATION_SCHEME { - type Abi = Self; +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 { @@ -3617,15 +4853,10 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_CORRELATION_SCHEME { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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_STATELESS: FABRIC_SERVICE_DESCRIPTION_KIND = - FABRIC_SERVICE_DESCRIPTION_KIND(1i32); -pub const FABRIC_SERVICE_DESCRIPTION_KIND_STATEFUL: FABRIC_SERVICE_DESCRIPTION_KIND = - FABRIC_SERVICE_DESCRIPTION_KIND(2i32); impl ::core::marker::Copy for FABRIC_SERVICE_DESCRIPTION_KIND {} impl ::core::clone::Clone for FABRIC_SERVICE_DESCRIPTION_KIND { fn clone(&self) -> Self { @@ -3637,8 +4868,8 @@ impl ::core::default::Default for FABRIC_SERVICE_DESCRIPTION_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_DESCRIPTION_KIND { - type Abi = Self; +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 { @@ -3647,17 +4878,10 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_DESCRIPTION_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_SERVICE_ENDPOINT_ROLE(pub i32); -pub const FABRIC_SERVICE_ROLE_INVALID: FABRIC_SERVICE_ENDPOINT_ROLE = - FABRIC_SERVICE_ENDPOINT_ROLE(0i32); -pub const FABRIC_SERVICE_ROLE_STATELESS: FABRIC_SERVICE_ENDPOINT_ROLE = - FABRIC_SERVICE_ENDPOINT_ROLE(1i32); -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); impl ::core::marker::Copy for FABRIC_SERVICE_ENDPOINT_ROLE {} impl ::core::clone::Clone for FABRIC_SERVICE_ENDPOINT_ROLE { fn clone(&self) -> Self { @@ -3669,8 +4893,8 @@ impl ::core::default::Default for FABRIC_SERVICE_ENDPOINT_ROLE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_ENDPOINT_ROLE { - type Abi = Self; +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 { @@ -3679,12 +4903,10 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_ENDPOINT_ROLE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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_STATELESS: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(1i32); -pub const FABRIC_SERVICE_KIND_STATEFUL: FABRIC_SERVICE_KIND = FABRIC_SERVICE_KIND(2i32); impl ::core::marker::Copy for FABRIC_SERVICE_KIND {} impl ::core::clone::Clone for FABRIC_SERVICE_KIND { fn clone(&self) -> Self { @@ -3696,25 +4918,18 @@ impl ::core::default::Default for FABRIC_SERVICE_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_KIND { - type Abi = Self; +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() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_SERVICE_LOAD_METRIC_WEIGHT(pub i32); -pub const FABRIC_SERVICE_LOAD_METRIC_WEIGHT_ZERO: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = - FABRIC_SERVICE_LOAD_METRIC_WEIGHT(0i32); -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_HIGH: FABRIC_SERVICE_LOAD_METRIC_WEIGHT = - FABRIC_SERVICE_LOAD_METRIC_WEIGHT(3i32); impl ::core::marker::Copy for FABRIC_SERVICE_LOAD_METRIC_WEIGHT {} impl ::core::clone::Clone for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { fn clone(&self) -> Self { @@ -3726,8 +4941,8 @@ impl ::core::default::Default for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { - type Abi = Self; +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 { @@ -3736,15 +4951,10 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_LOAD_METRIC_WEIGHT { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(pub i32); -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_NAME_PREFIX: - FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(1i32); -pub const FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS_PRIMARY_ONLY: - FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS = FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS(2i32); impl ::core::marker::Copy for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS {} impl ::core::clone::Clone for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { fn clone(&self) -> Self { @@ -3756,8 +4966,8 @@ impl ::core::default::Default for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { - type Abi = Self; +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 { @@ -3766,13 +4976,10 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(pub i32); -pub const FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE_SHARED_PROCESS: - FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE = FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(0i32); -pub const FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE_EXCLUSIVE_PROCESS: - FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE = FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE(1i32); impl ::core::marker::Copy for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE {} impl ::core::clone::Clone for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { fn clone(&self) -> Self { @@ -3784,8 +4991,8 @@ impl ::core::default::Default for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { - type Abi = Self; +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 { @@ -3794,19 +5001,10 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_SERVICE_PARTITION_ACCESS_STATUS(pub i32); -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_GRANTED: FABRIC_SERVICE_PARTITION_ACCESS_STATUS = - FABRIC_SERVICE_PARTITION_ACCESS_STATUS(1i32); -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_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); impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_ACCESS_STATUS {} impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { fn clone(&self) -> Self { @@ -3818,8 +5016,8 @@ impl ::core::default::Default for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { - type Abi = Self; +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 { @@ -3828,17 +5026,10 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_ACCESS_STATUS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_SERVICE_PARTITION_KIND(pub i32); -pub const FABRIC_SERVICE_PARTITION_KIND_INVALID: FABRIC_SERVICE_PARTITION_KIND = - FABRIC_SERVICE_PARTITION_KIND(0i32); -pub const FABRIC_SERVICE_PARTITION_KIND_SINGLETON: FABRIC_SERVICE_PARTITION_KIND = - FABRIC_SERVICE_PARTITION_KIND(1i32); -pub const FABRIC_SERVICE_PARTITION_KIND_INT64_RANGE: FABRIC_SERVICE_PARTITION_KIND = - FABRIC_SERVICE_PARTITION_KIND(2i32); -pub const FABRIC_SERVICE_PARTITION_KIND_NAMED: FABRIC_SERVICE_PARTITION_KIND = - FABRIC_SERVICE_PARTITION_KIND(3i32); impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_KIND {} impl ::core::clone::Clone for FABRIC_SERVICE_PARTITION_KIND { fn clone(&self) -> Self { @@ -3850,8 +5041,8 @@ impl ::core::default::Default for FABRIC_SERVICE_PARTITION_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_KIND { - type Abi = Self; +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 { @@ -3860,13 +5051,10 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_KIND {} impl ::core::clone::Clone for FABRIC_SERVICE_REPLICA_KIND { fn clone(&self) -> Self { @@ -3878,8 +5066,8 @@ impl ::core::default::Default for FABRIC_SERVICE_REPLICA_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_REPLICA_KIND { - type Abi = Self; +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 { @@ -3888,17 +5076,10 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(pub i32); -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_DISABLED: - FABRIC_SERVICE_TYPE_REGISTRATION_STATUS = FABRIC_SERVICE_TYPE_REGISTRATION_STATUS(1i32); -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); impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS {} impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { fn clone(&self) -> Self { @@ -3910,8 +5091,8 @@ impl ::core::default::Default for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { - type Abi = Self; +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 { @@ -3920,13 +5101,10 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_REGISTRATION_STATUS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); impl ::core::marker::Copy for FABRIC_START_NODE_DESCRIPTION_KIND {} impl ::core::clone::Clone for FABRIC_START_NODE_DESCRIPTION_KIND { fn clone(&self) -> Self { @@ -3938,8 +5116,8 @@ impl ::core::default::Default for FABRIC_START_NODE_DESCRIPTION_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_START_NODE_DESCRIPTION_KIND { - type Abi = Self; +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 { @@ -3948,20 +5126,10 @@ impl ::core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(pub i32); -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_REPLICA_RESTART_WAIT_DURATION: - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(1i32); -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_STANDBY_REPLICA_KEEP_DURATION: - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS = - FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS(4i32); impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS {} impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { fn clone(&self) -> Self { @@ -3973,8 +5141,8 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAG Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { - type Abi = Self; +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 { @@ -3983,39 +5151,10 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_FLAGS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(pub i32); -pub const FABRIC_STATEFUL_SERVICE_NONE: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(0i32); -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_STATEFUL_SERVICE_REPLICA_RESTART_WAIT_DURATION: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(2i32); -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_STANDBY_REPLICA_KEEP_DURATION: - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(8i32); -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_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_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_MOVE_COST: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(512i32); -pub const FABRIC_STATEFUL_SERVICE_SCALING_POLICY: FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS(1024i32); impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS {} impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { fn clone(&self) -> Self { @@ -4027,8 +5166,8 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLA Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { - type Abi = Self; +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 { @@ -4037,28 +5176,10 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_FLAGS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(pub i32); -pub const FABRIC_STATELESS_SERVICE_NONE: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(0i32); -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_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_CORRELATIONS: FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(8i32); -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_SCALING_POLICY: - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS = - FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS(64i32); impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS {} impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { fn clone(&self) -> Self { @@ -4070,8 +5191,8 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FL Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { - type Abi = Self; +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 { @@ -4080,13 +5201,10 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_FLAGS { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); impl ::core::marker::Copy for FABRIC_STOP_NODE_DESCRIPTION_KIND {} impl ::core::clone::Clone for FABRIC_STOP_NODE_DESCRIPTION_KIND { fn clone(&self) -> Self { @@ -4098,8 +5216,8 @@ impl ::core::default::Default for FABRIC_STOP_NODE_DESCRIPTION_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_STOP_NODE_DESCRIPTION_KIND { - type Abi = Self; +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 { @@ -4108,15 +5226,10 @@ impl ::core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); impl ::core::marker::Copy for FABRIC_STORE_BACKUP_OPTION {} impl ::core::clone::Clone for FABRIC_STORE_BACKUP_OPTION { fn clone(&self) -> Self { @@ -4128,8 +5241,8 @@ impl ::core::default::Default for FABRIC_STORE_BACKUP_OPTION { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_STORE_BACKUP_OPTION { - type Abi = Self; +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 { @@ -4138,23 +5251,10 @@ impl ::core::fmt::Debug for FABRIC_STORE_BACKUP_OPTION { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_TEST_COMMAND_PROGRESS_STATE(pub i32); -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_RUNNING: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(1i32); -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_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_CANCELLED: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(5i32); -pub const FABRIC_TEST_COMMAND_PROGRESS_STATE_FORCE_CANCELLED: FABRIC_TEST_COMMAND_PROGRESS_STATE = - FABRIC_TEST_COMMAND_PROGRESS_STATE(6i32); impl ::core::marker::Copy for FABRIC_TEST_COMMAND_PROGRESS_STATE {} impl ::core::clone::Clone for FABRIC_TEST_COMMAND_PROGRESS_STATE { fn clone(&self) -> Self { @@ -4166,8 +5266,8 @@ impl ::core::default::Default for FABRIC_TEST_COMMAND_PROGRESS_STATE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_TEST_COMMAND_PROGRESS_STATE { - type Abi = Self; +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 { @@ -4176,25 +5276,10 @@ impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_PROGRESS_STATE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_TEST_COMMAND_STATE_FILTER(pub i32); -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_ALL: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(65535i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_RUNNING: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(1i32); -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_COMPLETED_SUCCESSFULLY: - FABRIC_TEST_COMMAND_STATE_FILTER = FABRIC_TEST_COMMAND_STATE_FILTER(8i32); -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_CANCELLED: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(32i32); -pub const FABRIC_TEST_COMMAND_STATE_FILTER_FORCE_CANCELLED: FABRIC_TEST_COMMAND_STATE_FILTER = - FABRIC_TEST_COMMAND_STATE_FILTER(64i32); impl ::core::marker::Copy for FABRIC_TEST_COMMAND_STATE_FILTER {} impl ::core::clone::Clone for FABRIC_TEST_COMMAND_STATE_FILTER { fn clone(&self) -> Self { @@ -4206,8 +5291,8 @@ impl ::core::default::Default for FABRIC_TEST_COMMAND_STATE_FILTER { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_TEST_COMMAND_STATE_FILTER { - type Abi = Self; +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 { @@ -4216,19 +5301,10 @@ impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_STATE_FILTER { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_TEST_COMMAND_TYPE(pub i32); -pub const FABRIC_TEST_COMMAND_TYPE_DEFAULT: FABRIC_TEST_COMMAND_TYPE = - FABRIC_TEST_COMMAND_TYPE(0i32); -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); impl ::core::marker::Copy for FABRIC_TEST_COMMAND_TYPE {} impl ::core::clone::Clone for FABRIC_TEST_COMMAND_TYPE { fn clone(&self) -> Self { @@ -4240,8 +5316,8 @@ impl ::core::default::Default for FABRIC_TEST_COMMAND_TYPE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_TEST_COMMAND_TYPE { - type Abi = Self; +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 { @@ -4250,19 +5326,10 @@ impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_TYPE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_TEST_COMMAND_TYPE_FILTER(pub i32); -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_ALL: FABRIC_TEST_COMMAND_TYPE_FILTER = - FABRIC_TEST_COMMAND_TYPE_FILTER(65535i32); -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); impl ::core::marker::Copy for FABRIC_TEST_COMMAND_TYPE_FILTER {} impl ::core::clone::Clone for FABRIC_TEST_COMMAND_TYPE_FILTER { fn clone(&self) -> Self { @@ -4274,8 +5341,8 @@ impl ::core::default::Default for FABRIC_TEST_COMMAND_TYPE_FILTER { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_TEST_COMMAND_TYPE_FILTER { - type Abi = Self; +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 { @@ -4284,21 +5351,10 @@ impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_TYPE_FILTER { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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_UNCOMMITTED: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(1i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_READ_COMMITTED: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(2i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_REPEATABLE_READ: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(3i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_SNAPSHOT: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(4i32); -pub const FABRIC_TRANSACTION_ISOLATION_LEVEL_SERIALIZABLE: FABRIC_TRANSACTION_ISOLATION_LEVEL = - FABRIC_TRANSACTION_ISOLATION_LEVEL(5i32); impl ::core::marker::Copy for FABRIC_TRANSACTION_ISOLATION_LEVEL {} impl ::core::clone::Clone for FABRIC_TRANSACTION_ISOLATION_LEVEL { fn clone(&self) -> Self { @@ -4310,8 +5366,8 @@ impl ::core::default::Default for FABRIC_TRANSACTION_ISOLATION_LEVEL { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_TRANSACTION_ISOLATION_LEVEL { - type Abi = Self; +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 { @@ -4320,17 +5376,10 @@ impl ::core::fmt::Debug for FABRIC_TRANSACTION_ISOLATION_LEVEL { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_UPGRADE_DOMAIN_STATE(pub i32); -pub const FABRIC_UPGRADE_DOMAIN_STATE_INVALID: FABRIC_UPGRADE_DOMAIN_STATE = - FABRIC_UPGRADE_DOMAIN_STATE(0i32); -pub const FABRIC_UPGRADE_DOMAIN_STATE_PENDING: FABRIC_UPGRADE_DOMAIN_STATE = - FABRIC_UPGRADE_DOMAIN_STATE(1i32); -pub const FABRIC_UPGRADE_DOMAIN_STATE_IN_PROGRESS: FABRIC_UPGRADE_DOMAIN_STATE = - FABRIC_UPGRADE_DOMAIN_STATE(2i32); -pub const FABRIC_UPGRADE_DOMAIN_STATE_COMPLETED: FABRIC_UPGRADE_DOMAIN_STATE = - FABRIC_UPGRADE_DOMAIN_STATE(3i32); impl ::core::marker::Copy for FABRIC_UPGRADE_DOMAIN_STATE {} impl ::core::clone::Clone for FABRIC_UPGRADE_DOMAIN_STATE { fn clone(&self) -> Self { @@ -4342,8 +5391,8 @@ impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_STATE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_STATE { - type Abi = Self; +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 { @@ -4352,21 +5401,10 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_STATE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_UPGRADE_FAILURE_REASON(pub i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_NONE: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(0i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_INTERRUPTED: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(1i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_HEALTH_CHECK: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(2i32); -pub const FABRIC_UPGRADE_FAILURE_REASON_UPGRADE_DOMAIN_TIMEOUT: FABRIC_UPGRADE_FAILURE_REASON = - FABRIC_UPGRADE_FAILURE_REASON(3i32); -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); impl ::core::marker::Copy for FABRIC_UPGRADE_FAILURE_REASON {} impl ::core::clone::Clone for FABRIC_UPGRADE_FAILURE_REASON { fn clone(&self) -> Self { @@ -4378,8 +5416,8 @@ impl ::core::default::Default for FABRIC_UPGRADE_FAILURE_REASON { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_FAILURE_REASON { - type Abi = Self; +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 { @@ -4388,11 +5426,10 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_FAILURE_REASON { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); impl ::core::marker::Copy for FABRIC_UPGRADE_KIND {} impl ::core::clone::Clone for FABRIC_UPGRADE_KIND { fn clone(&self) -> Self { @@ -4404,35 +5441,18 @@ impl ::core::default::Default for FABRIC_UPGRADE_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_KIND { - type Abi = Self; +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() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] 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); -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_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_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_INBUILD_REPLICA: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(6i32); -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_WAIT_FOR_RESOURCE_AVAILABILITY: - FABRIC_UPGRADE_SAFETY_CHECK_KIND = FABRIC_UPGRADE_SAFETY_CHECK_KIND(8i32); impl ::core::marker::Copy for FABRIC_UPGRADE_SAFETY_CHECK_KIND {} impl ::core::clone::Clone for FABRIC_UPGRADE_SAFETY_CHECK_KIND { fn clone(&self) -> Self { @@ -4444,8 +5464,8 @@ impl ::core::default::Default for FABRIC_UPGRADE_SAFETY_CHECK_KIND { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_SAFETY_CHECK_KIND { - type Abi = Self; +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 { @@ -4454,23 +5474,10 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_SAFETY_CHECK_KIND { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_UPGRADE_STATE(pub i32); -pub const FABRIC_UPGRADE_STATE_INVALID: FABRIC_UPGRADE_STATE = FABRIC_UPGRADE_STATE(0i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_IN_PROGRESS: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(1i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_COMPLETED: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(2i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_PENDING: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(3i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_IN_PROGRESS: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(4i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_FORWARD_COMPLETED: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(5i32); -pub const FABRIC_UPGRADE_STATE_FAILED: FABRIC_UPGRADE_STATE = FABRIC_UPGRADE_STATE(6i32); -pub const FABRIC_UPGRADE_STATE_ROLLING_BACK_PENDING: FABRIC_UPGRADE_STATE = - FABRIC_UPGRADE_STATE(7i32); impl ::core::marker::Copy for FABRIC_UPGRADE_STATE {} impl ::core::clone::Clone for FABRIC_UPGRADE_STATE { fn clone(&self) -> Self { @@ -4482,8 +5489,8 @@ impl ::core::default::Default for FABRIC_UPGRADE_STATE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_STATE { - type Abi = Self; +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 { @@ -4492,15 +5499,10 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_STATE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_X509_FIND_TYPE(pub i32); -pub const FABRIC_X509_FIND_TYPE_FINDBYTHUMBPRINT: FABRIC_X509_FIND_TYPE = - FABRIC_X509_FIND_TYPE(0i32); -pub const FABRIC_X509_FIND_TYPE_FINDBYSUBJECTNAME: FABRIC_X509_FIND_TYPE = - FABRIC_X509_FIND_TYPE(1i32); -pub const FABRIC_X509_FIND_TYPE_FINDBYEXTENSION: FABRIC_X509_FIND_TYPE = - FABRIC_X509_FIND_TYPE(12i32); impl ::core::marker::Copy for FABRIC_X509_FIND_TYPE {} impl ::core::clone::Clone for FABRIC_X509_FIND_TYPE { fn clone(&self) -> Self { @@ -4512,8 +5514,8 @@ impl ::core::default::Default for FABRIC_X509_FIND_TYPE { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_X509_FIND_TYPE { - type Abi = Self; +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 { @@ -4522,15 +5524,10 @@ impl ::core::fmt::Debug for FABRIC_X509_FIND_TYPE { .finish() } } +#[doc = "*Required features: `\"ServiceFabric\"`*"] #[repr(transparent)] #[derive(::core::cmp::PartialEq, ::core::cmp::Eq)] pub struct FABRIC_X509_STORE_LOCATION(pub i32); -pub const FABRIC_X509_STORE_LOCATION_INVALID: FABRIC_X509_STORE_LOCATION = - FABRIC_X509_STORE_LOCATION(0i32); -pub const FABRIC_X509_STORE_LOCATION_CURRENTUSER: FABRIC_X509_STORE_LOCATION = - FABRIC_X509_STORE_LOCATION(1i32); -pub const FABRIC_X509_STORE_LOCATION_LOCALMACHINE: FABRIC_X509_STORE_LOCATION = - FABRIC_X509_STORE_LOCATION(2i32); impl ::core::marker::Copy for FABRIC_X509_STORE_LOCATION {} impl ::core::clone::Clone for FABRIC_X509_STORE_LOCATION { fn clone(&self) -> Self { @@ -4542,8 +5539,8 @@ impl ::core::default::Default for FABRIC_X509_STORE_LOCATION { Self(0) } } -unsafe impl ::windows::core::Abi for FABRIC_X509_STORE_LOCATION { - type Abi = Self; +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 { @@ -4553,12 +5550,13 @@ impl ::core::fmt::Debug for FABRIC_X509_STORE_LOCATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { - pub Authority: ::windows::core::PCWSTR, - pub TenantId: ::windows::core::PCWSTR, - pub ClusterApplication: ::windows::core::PCWSTR, - pub ClientApplication: ::windows::core::PCWSTR, - pub ClientRedirect: ::windows::core::PCWSTR, + pub Authority: ::windows_core::PCWSTR, + pub TenantId: ::windows_core::PCWSTR, + pub ClusterApplication: ::windows_core::PCWSTR, + pub ClientApplication: ::windows_core::PCWSTR, + pub ClientRedirect: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA {} @@ -4579,18 +5577,17 @@ impl ::core::fmt::Debug for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Authority == other.Authority + && self.TenantId == other.TenantId + && self.ClusterApplication == other.ClusterApplication + && self.ClientApplication == other.ClientApplication + && self.ClientRedirect == other.ClientRedirect + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA {} @@ -4600,8 +5597,9 @@ impl ::core::default::Default for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { - pub LoginEndpoint: ::windows::core::PCWSTR, + pub LoginEndpoint: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 {} @@ -4618,18 +5616,12 @@ impl ::core::fmt::Debug for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.LoginEndpoint == other.LoginEndpoint && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 {} @@ -4639,8 +5631,9 @@ impl ::core::default::Default for FABRIC_AAD_CLAIMS_RETRIEVAL_METADATA_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATIONS_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub TotalCount: u32, @@ -4668,18 +5661,17 @@ impl ::core::fmt::Debug for FABRIC_APPLICATIONS_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATIONS_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATIONS_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATIONS_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyApplications == other.MaxPercentUnhealthyApplications + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATIONS_HEALTH_EVALUATION {} @@ -4689,6 +5681,7 @@ impl ::core::default::Default for FABRIC_APPLICATIONS_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_CAPACITY_DESCRIPTION { pub MaximumNodes: u32, pub MinimumNodes: u32, @@ -4711,18 +5704,15 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MaximumNodes == other.MaximumNodes + && self.MinimumNodes == other.MinimumNodes + && self.Metrics == other.Metrics + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_CAPACITY_DESCRIPTION {} @@ -4732,10 +5722,11 @@ impl ::core::default::Default for FABRIC_APPLICATION_CAPACITY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_DESCRIPTION { pub ApplicationName: *mut u16, - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub ApplicationTypeVersion: ::windows::core::PCWSTR, + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, pub ApplicationParameters: *const FABRIC_APPLICATION_PARAMETER_LIST, pub Reserved: *mut ::core::ffi::c_void, } @@ -4756,18 +5747,16 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.ApplicationParameters == other.ApplicationParameters + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_DESCRIPTION {} @@ -4777,6 +5766,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_DESCRIPTION_EX1 { pub ApplicationCapacity: *const FABRIC_APPLICATION_CAPACITY_DESCRIPTION, pub Reserved: *mut ::core::ffi::c_void, @@ -4795,18 +5785,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationCapacity == other.ApplicationCapacity && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_DESCRIPTION_EX1 {} @@ -4816,6 +5800,8 @@ impl ::core::default::Default for FABRIC_APPLICATION_DESCRIPTION_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_APPLICATION_HEALTH { pub ApplicationName: *mut u16, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -4824,12 +5810,15 @@ pub struct FABRIC_APPLICATION_HEALTH { pub ServiceHealthStates: *const FABRIC_SERVICE_HEALTH_STATE_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_APPLICATION_HEALTH") @@ -4845,29 +5834,33 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.DeployedApplicationHealthStates == other.DeployedApplicationHealthStates + && self.ServiceHealthStates == other.ServiceHealthStates + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_APPLICATION_HEALTH { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub ApplicationName: *mut u16, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, @@ -4890,18 +5883,16 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.ApplicationName == other.ApplicationName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_EVALUATION {} @@ -4911,6 +5902,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -4929,18 +5921,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UnhealthyEvaluations == other.UnhealthyEvaluations && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_EX1 {} @@ -4950,6 +5936,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_HEALTH_EX2 { pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, pub Reserved: *mut ::core::ffi::c_void, @@ -4968,18 +5955,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStatistics == other.HealthStatistics && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_EX2 {} @@ -4989,6 +5970,8 @@ impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_APPLICATION_HEALTH_POLICY { pub ConsiderWarningAsError: ::windows::Win32::Foundation::BOOLEAN, pub MaxPercentUnhealthyDeployedApplications: u8, @@ -4996,12 +5979,15 @@ pub struct FABRIC_APPLICATION_HEALTH_POLICY { pub ServiceTypeHealthPolicyMap: *const FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_POLICY {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_POLICY { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_POLICY { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_APPLICATION_HEALTH_POLICY") @@ -5022,37 +6008,45 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_POLICY { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_POLICY { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_POLICY { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_POLICY { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ConsiderWarningAsError == other.ConsiderWarningAsError + && self.MaxPercentUnhealthyDeployedApplications + == other.MaxPercentUnhealthyDeployedApplications + && self.DefaultServiceTypeHealthPolicy == other.DefaultServiceTypeHealthPolicy + && self.ServiceTypeHealthPolicyMap == other.ServiceTypeHealthPolicyMap + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_POLICY {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_POLICY { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_APPLICATION_HEALTH_POLICY_MAP { pub Count: u32, pub Items: *mut FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_POLICY_MAP {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_POLICY_MAP { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_POLICY_MAP { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_APPLICATION_HEALTH_POLICY_MAP") @@ -5061,37 +6055,40 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_POLICY_MAP { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_POLICY_MAP { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_POLICY_MAP { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_POLICY_MAP { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_POLICY_MAP {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_POLICY_MAP { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { pub ApplicationName: *mut u16, pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM") @@ -5100,27 +6097,27 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName && self.HealthPolicy == other.HealthPolicy } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_POLICY_MAP_ITEM { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { pub ApplicationName: *mut u16, pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, @@ -5129,12 +6126,15 @@ pub struct FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { pub DeployedApplicationsFilter: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION") @@ -5150,37 +6150,45 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.ServicesFilter == other.ServicesFilter + && self.DeployedApplicationsFilter == other.DeployedApplicationsFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { pub HealthStatisticsFilter: *const FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1") @@ -5189,38 +6197,42 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStatisticsFilter == other.HealthStatisticsFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_APPLICATION_HEALTH_REPORT { pub ApplicationName: *mut u16, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_REPORT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_REPORT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_APPLICATION_HEALTH_REPORT") @@ -5230,27 +6242,28 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_REPORT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_REPORT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_REPORT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_REPORT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_HEALTH_STATE { pub ApplicationName: *mut u16, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -5271,18 +6284,14 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE {} @@ -5292,6 +6301,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -5310,18 +6320,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATES_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATES_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATES_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATES_FILTER {} @@ -5331,6 +6335,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATES_FILTER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK { pub ApplicationName: *mut u16, pub HealthState: FABRIC_HEALTH_STATE, @@ -5359,18 +6364,17 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.HealthState == other.HealthState + && self.ServiceHealthStateChunks == other.ServiceHealthStateChunks + && self.DeployedApplicationHealthStateChunks + == other.DeployedApplicationHealthStateChunks + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK {} @@ -5380,6 +6384,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_CHUNK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { pub ApplicationTypeName: *mut u16, pub Reserved: *mut ::core::ffi::c_void, @@ -5398,18 +6403,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeName == other.ApplicationTypeName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 {} @@ -5419,6 +6418,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_APPLICATION_HEALTH_STATE_CHUNK, @@ -5441,18 +6441,15 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST {} @@ -5462,6 +6459,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_CHUNK_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, pub ApplicationNameFilter: *mut u16, @@ -5489,18 +6487,16 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter + && self.ApplicationNameFilter == other.ApplicationNameFilter + && self.ServiceFilters == other.ServiceFilters + && self.DeployedApplicationFilters == other.DeployedApplicationFilters + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_FILTER {} @@ -5510,8 +6506,9 @@ impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_FILTER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { - pub ApplicationTypeNameFilter: ::windows::core::PCWSTR, + pub ApplicationTypeNameFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 {} @@ -5528,18 +6525,13 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeNameFilter == other.ApplicationTypeNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 {} @@ -5549,6 +6541,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_FILTER_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_APPLICATION_HEALTH_STATE_FILTER, @@ -5567,18 +6560,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST {} @@ -5588,6 +6575,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_FILTER_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_APPLICATION_HEALTH_STATE, @@ -5606,18 +6594,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATE_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATE_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATE_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATE_LIST {} @@ -5627,16 +6609,21 @@ impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATE_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER") @@ -5645,29 +6632,29 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ExcludeHealthStatistics == other.ExcludeHealthStatistics + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_APPLICATION_HEALTH_STATISTICS_FILTER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_LOAD_INFORMATION { - pub Name: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, pub MinimumNodes: u32, pub MaximumNodes: u32, pub NodeCount: u32, @@ -5695,18 +6682,17 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_LOAD_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_LOAD_INFORMATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_LOAD_INFORMATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_LOAD_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.MinimumNodes == other.MinimumNodes + && self.MaximumNodes == other.MaximumNodes + && self.NodeCount == other.NodeCount + && self.ApplicationLoadMetricInformation == other.ApplicationLoadMetricInformation + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_LOAD_INFORMATION {} @@ -5716,8 +6702,9 @@ impl ::core::default::Default for FABRIC_APPLICATION_LOAD_INFORMATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { - pub ApplicationName: ::windows::core::PCWSTR, + pub ApplicationName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION {} @@ -5734,18 +6721,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTIO .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION {} @@ -5755,8 +6736,9 @@ impl ::core::default::Default for FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESC } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { - pub Name: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, pub ReservationCapacity: i64, pub ApplicationCapacity: i64, pub ApplicationLoad: i64, @@ -5779,18 +6761,16 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.ReservationCapacity == other.ReservationCapacity + && self.ApplicationCapacity == other.ApplicationCapacity + && self.ApplicationLoad == other.ApplicationLoad + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION {} @@ -5800,6 +6780,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { pub Count: u32, pub LoadMetrics: *mut FABRIC_APPLICATION_LOAD_METRIC_INFORMATION, @@ -5820,18 +6801,14 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count + && self.LoadMetrics == other.LoadMetrics + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIST {} @@ -5841,8 +6818,9 @@ impl ::core::default::Default for FABRIC_APPLICATION_LOAD_METRIC_INFORMATION_LIS } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_METRIC_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, pub NodeReservationCapacity: u32, pub MaximumNodeCapacity: u32, pub TotalApplicationCapacity: u32, @@ -5865,18 +6843,16 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_METRIC_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_METRIC_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_METRIC_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_METRIC_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.NodeReservationCapacity == other.NodeReservationCapacity + && self.MaximumNodeCapacity == other.MaximumNodeCapacity + && self.TotalApplicationCapacity == other.TotalApplicationCapacity + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_METRIC_DESCRIPTION {} @@ -5886,6 +6862,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_METRIC_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_METRIC_LIST { pub Count: u32, pub Capacities: *mut FABRIC_APPLICATION_METRIC_DESCRIPTION, @@ -5904,18 +6881,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_METRIC_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_METRIC_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_METRIC_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_METRIC_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Capacities == other.Capacities } } impl ::core::cmp::Eq for FABRIC_APPLICATION_METRIC_LIST {} @@ -5925,6 +6896,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_METRIC_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { pub ServiceName: *mut u16, pub Reserved: *mut ::core::ffi::c_void, @@ -5943,18 +6915,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION {} @@ -5964,6 +6930,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_NAME_QUERY_RESULT { pub ApplicationName: *mut u16, pub Reserved: *mut ::core::ffi::c_void, @@ -5982,18 +6949,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_NAME_QUERY_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_NAME_QUERY_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_NAME_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NAME_QUERY_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_NAME_QUERY_RESULT {} @@ -6003,6 +6964,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_NAME_QUERY_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { pub ApplicationName: *mut u16, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, @@ -6023,18 +6985,14 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION {} @@ -6044,8 +7002,9 @@ impl ::core::default::Default for FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { - pub NetworkName: ::windows::core::PCWSTR, + pub NetworkName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM {} @@ -6062,18 +7021,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NetworkName == other.NetworkName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM {} @@ -6083,6 +7036,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_APPLICATION_NETWORK_QUERY_RESULT_ITEM, @@ -6101,18 +7055,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST {} @@ -6122,9 +7070,10 @@ impl ::core::default::Default for FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_PARAMETER { - pub Name: ::windows::core::PCWSTR, - pub Value: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, + pub Value: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_APPLICATION_PARAMETER {} @@ -6142,18 +7091,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_PARAMETER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_PARAMETER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_PARAMETER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_PARAMETER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name && self.Value == other.Value && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_PARAMETER {} @@ -6163,6 +7106,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_PARAMETER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_PARAMETER_LIST { pub Count: u32, pub Items: *mut FABRIC_APPLICATION_PARAMETER, @@ -6181,18 +7125,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_PARAMETER_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_PARAMETER_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_PARAMETER_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_PARAMETER_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_APPLICATION_PARAMETER_LIST {} @@ -6202,6 +7140,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_PARAMETER_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { pub Users: *const FABRIC_SECURITY_USER_DESCRIPTION_LIST, pub Groups: *const FABRIC_SECURITY_GROUP_DESCRIPTION_LIST, @@ -6222,18 +7161,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Users == other.Users && self.Groups == other.Groups && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION {} @@ -6243,6 +7176,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_PRINCIPALS_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION { pub ApplicationNameFilter: *mut u16, pub Reserved: *mut ::core::ffi::c_void, @@ -6261,18 +7195,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationNameFilter == other.ApplicationNameFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION {} @@ -6282,8 +7210,9 @@ impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { - pub ContinuationToken: ::windows::core::PCWSTR, + pub ContinuationToken: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 {} @@ -6300,18 +7229,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ContinuationToken == other.ContinuationToken && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 {} @@ -6321,17 +7244,22 @@ impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { - pub ApplicationTypeNameFilter: ::windows::core::PCWSTR, + pub ApplicationTypeNameFilter: ::windows_core::PCWSTR, pub ExcludeApplicationParameters: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2") @@ -6344,27 +7272,28 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeNameFilter == other.ApplicationTypeNameFilter + && self.ExcludeApplicationParameters == other.ExcludeApplicationParameters + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { pub ApplicationDefinitionKindFilter: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -6386,18 +7315,13 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationDefinitionKindFilter == other.ApplicationDefinitionKindFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 {} @@ -6407,6 +7331,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { pub MaxResults: i32, pub Reserved: *mut ::core::ffi::c_void, @@ -6425,18 +7350,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MaxResults == other.MaxResults && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 {} @@ -6446,10 +7365,11 @@ impl ::core::default::Default for FABRIC_APPLICATION_QUERY_DESCRIPTION_EX4 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM { pub ApplicationName: *mut u16, - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub ApplicationTypeVersion: ::windows::core::PCWSTR, + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, pub Status: FABRIC_APPLICATION_STATUS, pub HealthState: FABRIC_HEALTH_STATE, pub ApplicationParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, @@ -6474,18 +7394,18 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.Status == other.Status + && self.HealthState == other.HealthState + && self.ApplicationParameters == other.ApplicationParameters + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_RESULT_ITEM {} @@ -6495,8 +7415,9 @@ impl ::core::default::Default for FABRIC_APPLICATION_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { - pub UpgradeTypeVersion: ::windows::core::PCWSTR, + pub UpgradeTypeVersion: ::windows_core::PCWSTR, pub UpgradeParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, pub Reserved: *mut ::core::ffi::c_void, } @@ -6515,18 +7436,14 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UpgradeTypeVersion == other.UpgradeTypeVersion + && self.UpgradeParameters == other.UpgradeParameters + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 {} @@ -6536,6 +7453,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { pub ApplicationDefinitionKind: FABRIC_APPLICATION_DEFINITION_KIND, pub Reserved: *mut ::core::ffi::c_void, @@ -6554,18 +7472,13 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationDefinitionKind == other.ApplicationDefinitionKind + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 {} @@ -6575,6 +7488,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_QUERY_RESULT_ITEM_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_APPLICATION_QUERY_RESULT_ITEM, @@ -6593,18 +7507,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_APPLICATION_QUERY_RESULT_LIST {} @@ -6614,10 +7522,11 @@ impl ::core::default::Default for FABRIC_APPLICATION_QUERY_RESULT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub ApplicationTypeName: ::windows::core::PCWSTR, + pub ApplicationTypeName: ::windows_core::PCWSTR, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub TotalCount: u32, pub MaxPercentUnhealthyApplications: u8, @@ -6645,18 +7554,18 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATI .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.ApplicationTypeName == other.ApplicationTypeName + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyApplications == other.MaxPercentUnhealthyApplications + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EVALUATION {} @@ -6666,6 +7575,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_TYPE_APPLICATIONS_HEALTH_EV } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { pub Count: u32, pub Items: *const FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM, @@ -6684,18 +7594,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP {} @@ -6705,8 +7609,9 @@ impl ::core::default::Default for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { - pub ApplicationTypeName: ::windows::core::PCWSTR, + pub ApplicationTypeName: ::windows_core::PCWSTR, pub MaxPercentUnhealthyApplications: u8, } impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM {} @@ -6726,18 +7631,13 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeName == other.ApplicationTypeName + && self.MaxPercentUnhealthyApplications == other.MaxPercentUnhealthyApplications } } impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM {} @@ -6747,8 +7647,9 @@ impl ::core::default::Default for FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP_ITEM } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - pub ApplicationTypeNameFilter: ::windows::core::PCWSTR, + pub ApplicationTypeNameFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION {} @@ -6765,18 +7666,13 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeNameFilter == other.ApplicationTypeNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION {} @@ -6786,9 +7682,10 @@ impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub ApplicationTypeVersion: ::windows::core::PCWSTR, + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, pub DefaultParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, pub Reserved: *mut ::core::ffi::c_void, } @@ -6808,18 +7705,15 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.DefaultParameters == other.DefaultParameters + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM {} @@ -6829,9 +7723,10 @@ impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { pub Status: FABRIC_APPLICATION_TYPE_STATUS, - pub StatusDetails: ::windows::core::PCWSTR, + pub StatusDetails: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 {} @@ -6849,18 +7744,14 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Status == other.Status + && self.StatusDetails == other.StatusDetails + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 {} @@ -6870,6 +7761,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX1 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { pub ApplicationTypeDefinitionKind: FABRIC_APPLICATION_TYPE_DEFINITION_KIND, pub Reserved: *mut ::core::ffi::c_void, @@ -6891,18 +7783,13 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeDefinitionKind == other.ApplicationTypeDefinitionKind + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 {} @@ -6912,6 +7799,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM_EX2 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_APPLICATION_TYPE_QUERY_RESULT_ITEM, @@ -6930,18 +7818,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST {} @@ -6951,6 +7833,8 @@ impl ::core::default::Default for FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_APPLICATION_UPDATE_DESCRIPTION { pub Flags: u32, pub ApplicationName: *mut u16, @@ -6960,12 +7844,15 @@ pub struct FABRIC_APPLICATION_UPDATE_DESCRIPTION { pub Metrics: *const FABRIC_APPLICATION_METRIC_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_APPLICATION_UPDATE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_APPLICATION_UPDATE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_APPLICATION_UPDATE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_APPLICATION_UPDATE_DESCRIPTION") @@ -6979,30 +7866,35 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_UPDATE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPDATE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPDATE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Flags == other.Flags + && self.ApplicationName == other.ApplicationName + && self.RemoveApplicationCapacity == other.RemoveApplicationCapacity + && self.MaximumNodes == other.MaximumNodes + && self.MinimumNodes == other.MinimumNodes + && self.Metrics == other.Metrics + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_APPLICATION_UPDATE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_APPLICATION_UPDATE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_UPGRADE_DESCRIPTION { pub ApplicationName: *mut u16, - pub TargetApplicationTypeVersion: ::windows::core::PCWSTR, + pub TargetApplicationTypeVersion: ::windows_core::PCWSTR, pub ApplicationParameters: *mut FABRIC_APPLICATION_PARAMETER_LIST, pub UpgradeKind: FABRIC_APPLICATION_UPGRADE_KIND, pub UpgradePolicyDescription: *mut ::core::ffi::c_void, @@ -7029,18 +7921,17 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.TargetApplicationTypeVersion == other.TargetApplicationTypeVersion + && self.ApplicationParameters == other.ApplicationParameters + && self.UpgradeKind == other.UpgradeKind + && self.UpgradePolicyDescription == other.UpgradePolicyDescription + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_DESCRIPTION {} @@ -7050,11 +7941,12 @@ impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS { pub UpgradeDescription: *const FABRIC_APPLICATION_UPGRADE_DESCRIPTION, pub UpgradeState: FABRIC_APPLICATION_UPGRADE_STATE, pub UpgradeMode: FABRIC_ROLLING_UPGRADE_MODE, - pub NextUpgradeDomain: ::windows::core::PCWSTR, + pub NextUpgradeDomain: ::windows_core::PCWSTR, pub UpgradeDomains: *const FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST, pub UpgradeDurationInSeconds: u32, pub CurrentUpgradeDomainDurationInSeconds: u32, @@ -7090,18 +7982,22 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_PROGRESS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_PROGRESS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_PROGRESS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_PROGRESS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UpgradeDescription == other.UpgradeDescription + && self.UpgradeState == other.UpgradeState + && self.UpgradeMode == other.UpgradeMode + && self.NextUpgradeDomain == other.NextUpgradeDomain + && self.UpgradeDomains == other.UpgradeDomains + && self.UpgradeDurationInSeconds == other.UpgradeDurationInSeconds + && self.CurrentUpgradeDomainDurationInSeconds + == other.CurrentUpgradeDomainDurationInSeconds + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.CurrentUpgradeDomainProgress == other.CurrentUpgradeDomainProgress + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_PROGRESS {} @@ -7111,6 +8007,8 @@ impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_PROGRESS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { pub StartTimestampUtc: ::windows::Win32::Foundation::FILETIME, pub FailureTimestampUtc: ::windows::Win32::Foundation::FILETIME, @@ -7118,12 +8016,15 @@ pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { pub UpgradeDomainProgressAtFailure: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1") @@ -7138,29 +8039,32 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.StartTimestampUtc == other.StartTimestampUtc + && self.FailureTimestampUtc == other.FailureTimestampUtc + && self.FailureReason == other.FailureReason + && self.UpgradeDomainProgressAtFailure == other.UpgradeDomainProgressAtFailure + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { - pub UpgradeStatusDetails: ::windows::core::PCWSTR, + pub UpgradeStatusDetails: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 {} @@ -7177,18 +8081,12 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UpgradeStatusDetails == other.UpgradeStatusDetails && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 {} @@ -7198,6 +8096,7 @@ impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_PROGRESS_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { pub ApplicationName: *mut u16, pub UpgradeKind: FABRIC_APPLICATION_UPGRADE_KIND, @@ -7222,18 +8121,16 @@ impl ::core::fmt::Debug for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.UpgradeKind == other.UpgradeKind + && self.UpdateFlags == other.UpdateFlags + && self.UpgradePolicyDescription == other.UpgradePolicyDescription + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION {} @@ -7243,17 +8140,22 @@ impl ::core::default::Default for FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { - pub OperationId: ::windows::core::GUID, + pub OperationId: ::windows_core::GUID, pub Force: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION") @@ -7263,39 +8165,44 @@ impl ::core::fmt::Debug for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.OperationId == other.OperationId + && self.Force == other.Force + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_DESCRIPTION") @@ -7306,27 +8213,29 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ChaosParameters == other.ChaosParameters + && self.Status == other.Status + && self.ScheduleStatus == other.ScheduleStatus + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CHAOS_EVENT { pub Kind: FABRIC_CHAOS_EVENT_KIND, pub Value: *mut ::core::ffi::c_void, @@ -7345,18 +8254,12 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_EVENT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_EVENT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CHAOS_EVENT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_CHAOS_EVENT {} @@ -7366,8 +8269,9 @@ impl ::core::default::Default for FABRIC_CHAOS_EVENT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CHAOS_EVENTS_SEGMENT { - pub ContinuationToken: ::windows::core::PCWSTR, + pub ContinuationToken: ::windows_core::PCWSTR, pub History: *const FABRIC_CHAOS_EVENT_LIST, pub Reserved: *mut ::core::ffi::c_void, } @@ -7386,18 +8290,14 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_EVENTS_SEGMENT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_EVENTS_SEGMENT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CHAOS_EVENTS_SEGMENT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENTS_SEGMENT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ContinuationToken == other.ContinuationToken + && self.History == other.History + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CHAOS_EVENTS_SEGMENT {} @@ -7407,17 +8307,22 @@ impl ::core::default::Default for FABRIC_CHAOS_EVENTS_SEGMENT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION") @@ -7427,38 +8332,43 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Filter == other.Filter + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_EVENTS_SEGMENT_FILTER") @@ -7468,27 +8378,28 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.StartTimeUtc == other.StartTimeUtc + && self.EndTimeUtc == other.EndTimeUtc + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_EVENTS_SEGMENT_FILTER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CHAOS_EVENT_LIST { pub Count: u32, pub Items: *mut FABRIC_CHAOS_EVENT, @@ -7507,18 +8418,12 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_EVENT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_EVENT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CHAOS_EVENT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CHAOS_EVENT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_CHAOS_EVENT_LIST {} @@ -7528,6 +8433,8 @@ impl ::core::default::Default for FABRIC_CHAOS_EVENT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CHAOS_PARAMETERS { pub MaxClusterStabilizationTimeoutInSeconds: u32, pub MaxConcurrentFaults: u32, @@ -7538,12 +8445,15 @@ pub struct FABRIC_CHAOS_PARAMETERS { pub Context: *const FABRIC_EVENT_CONTEXT_MAP, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_PARAMETERS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_PARAMETERS { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_PARAMETERS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_PARAMETERS") @@ -7567,37 +8477,48 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_PARAMETERS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_PARAMETERS { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_PARAMETERS { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_PARAMETERS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MaxClusterStabilizationTimeoutInSeconds + == other.MaxClusterStabilizationTimeoutInSeconds + && self.MaxConcurrentFaults == other.MaxConcurrentFaults + && self.EnableMoveReplicaFaults == other.EnableMoveReplicaFaults + && self.TimeToRunInSeconds == other.TimeToRunInSeconds + && self.WaitTimeBetweenIterationsInSeconds == other.WaitTimeBetweenIterationsInSeconds + && self.WaitTimeBetweenFaultsInSeconds == other.WaitTimeBetweenFaultsInSeconds + && self.Context == other.Context + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_PARAMETERS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_PARAMETERS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CHAOS_PARAMETERS_EX1 { pub ClusterHealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_PARAMETERS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_PARAMETERS_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_PARAMETERS_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_PARAMETERS_EX1") @@ -7606,27 +8527,26 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_PARAMETERS_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_PARAMETERS_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_PARAMETERS_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_PARAMETERS_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ClusterHealthPolicy == other.ClusterHealthPolicy && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_PARAMETERS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_PARAMETERS_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CHAOS_PARAMETERS_EX2 { pub ChaosTargetFilter: *const FABRIC_CHAOS_TARGET_FILTER, pub Reserved: *mut ::core::ffi::c_void, @@ -7645,18 +8565,12 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_PARAMETERS_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_PARAMETERS_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CHAOS_PARAMETERS_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CHAOS_PARAMETERS_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ChaosTargetFilter == other.ChaosTargetFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CHAOS_PARAMETERS_EX2 {} @@ -7666,19 +8580,24 @@ impl ::core::default::Default for FABRIC_CHAOS_PARAMETERS_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CHAOS_REPORT { pub ChaosParameters: *mut FABRIC_CHAOS_PARAMETERS, pub Status: FABRIC_CHAOS_STATUS, - pub ContinuationToken: ::windows::core::PCWSTR, + pub ContinuationToken: ::windows_core::PCWSTR, pub History: *const FABRIC_CHAOS_EVENT_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_REPORT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_REPORT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_REPORT") @@ -7690,38 +8609,45 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_REPORT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_REPORT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_REPORT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_REPORT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ChaosParameters == other.ChaosParameters + && self.Status == other.Status + && self.ContinuationToken == other.ContinuationToken + && self.History == other.History + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_REPORT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_REPORT_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_REPORT_FILTER { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_REPORT_FILTER { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_REPORT_FILTER") @@ -7731,27 +8657,29 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_REPORT_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_REPORT_FILTER { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_REPORT_FILTER { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_REPORT_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.StartTimeUtc == other.StartTimeUtc + && self.EndTimeUtc == other.EndTimeUtc + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_REPORT_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_REPORT_FILTER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CHAOS_SCHEDULE { pub StartDate: ::windows::Win32::Foundation::FILETIME, pub ExpiryDate: ::windows::Win32::Foundation::FILETIME, @@ -7759,12 +8687,15 @@ pub struct FABRIC_CHAOS_SCHEDULE { pub Jobs: *const FABRIC_CHAOS_SCHEDULE_JOB_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_SCHEDULE") @@ -7776,37 +8707,44 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.StartDate == other.StartDate + && self.ExpiryDate == other.ExpiryDate + && self.ChaosParametersMap == other.ChaosParametersMap + && self.Jobs == other.Jobs + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { pub Count: u32, pub Items: *mut FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP") @@ -7815,37 +8753,40 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { - pub Name: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, pub Parameters: *const FABRIC_CHAOS_PARAMETERS, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM") @@ -7854,38 +8795,41 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name && self.Parameters == other.Parameters } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_CHAOS_PARAMETERS_MAP_ITEM { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CHAOS_SCHEDULE_DESCRIPTION { pub Version: u32, pub Schedule: *const FABRIC_CHAOS_SCHEDULE, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_SCHEDULE_DESCRIPTION") @@ -7895,39 +8839,44 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Version == other.Version + && self.Schedule == other.Schedule + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CHAOS_SCHEDULE_JOB { - pub ChaosParameters: ::windows::core::PCWSTR, + 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_JOB {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_JOB { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_JOB { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_SCHEDULE_JOB") @@ -7938,27 +8887,30 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_JOB { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_JOB { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_JOB { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_JOB { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ChaosParameters == other.ChaosParameters + && self.Days == other.Days + && self.Times == other.Times + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_JOB {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_JOB { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { pub Sunday: ::windows::Win32::Foundation::BOOLEAN, pub Monday: ::windows::Win32::Foundation::BOOLEAN, @@ -7969,12 +8921,15 @@ pub struct FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { pub Saturday: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS") @@ -7989,37 +8944,47 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Sunday == other.Sunday + && self.Monday == other.Monday + && self.Tuesday == other.Tuesday + && self.Wednesday == other.Wednesday + && self.Thursday == other.Thursday + && self.Friday == other.Friday + && self.Saturday == other.Saturday + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_JOB_ACTIVE_DAYS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CHAOS_SCHEDULE_JOB_LIST { pub Count: u32, pub Items: *mut FABRIC_CHAOS_SCHEDULE_JOB, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_SCHEDULE_JOB_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_SCHEDULE_JOB_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_JOB_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_SCHEDULE_JOB_LIST") @@ -8028,27 +8993,26 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_JOB_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_JOB_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_JOB_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_JOB_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_JOB_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_JOB_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { pub StartTime: *const FABRIC_CHAOS_SCHEDULE_TIME_UTC, pub EndTime: *const FABRIC_CHAOS_SCHEDULE_TIME_UTC, @@ -8069,18 +9033,14 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.StartTime == other.StartTime + && self.EndTime == other.EndTime + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC {} @@ -8090,6 +9050,7 @@ impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { pub Count: u32, pub Items: *mut FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC, @@ -8108,18 +9069,12 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST {} @@ -8129,6 +9084,7 @@ impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_TIME_RANGE_UTC_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CHAOS_SCHEDULE_TIME_UTC { pub Hour: u32, pub Minute: u32, @@ -8149,18 +9105,12 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_SCHEDULE_TIME_UTC { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SCHEDULE_TIME_UTC { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CHAOS_SCHEDULE_TIME_UTC { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CHAOS_SCHEDULE_TIME_UTC { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Hour == other.Hour && self.Minute == other.Minute && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CHAOS_SCHEDULE_TIME_UTC {} @@ -8170,16 +9120,21 @@ impl ::core::default::Default for FABRIC_CHAOS_SCHEDULE_TIME_UTC { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { pub ChaosScheduleDescription: *const FABRIC_CHAOS_SCHEDULE_DESCRIPTION, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION") @@ -8188,27 +9143,27 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ChaosScheduleDescription == other.ChaosScheduleDescription + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CHAOS_TARGET_FILTER { pub NodeTypeInclusionList: *const FABRIC_STRING_LIST, pub ApplicationInclusionList: *const FABRIC_STRING_LIST, @@ -8229,18 +9184,14 @@ impl ::core::fmt::Debug for FABRIC_CHAOS_TARGET_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHAOS_TARGET_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CHAOS_TARGET_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CHAOS_TARGET_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeTypeInclusionList == other.NodeTypeInclusionList + && self.ApplicationInclusionList == other.ApplicationInclusionList + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CHAOS_TARGET_FILTER {} @@ -8250,17 +9201,22 @@ impl ::core::default::Default for FABRIC_CHAOS_TARGET_FILTER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, + pub PropertyName: ::windows_core::PCWSTR, pub ExistenceCheck: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CHECK_EXISTS_PROPERTY_OPERATION") @@ -8270,29 +9226,30 @@ impl ::core::fmt::Debug for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PropertyName == other.PropertyName + && self.ExistenceCheck == other.ExistenceCheck + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CHECK_EXISTS_PROPERTY_OPERATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, + pub PropertyName: ::windows_core::PCWSTR, pub SequenceNumber: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -8311,18 +9268,14 @@ impl ::core::fmt::Debug for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PropertyName == other.PropertyName + && self.SequenceNumber == other.SequenceNumber + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION {} @@ -8332,8 +9285,9 @@ impl ::core::default::Default for FABRIC_CHECK_SEQUENCE_PROPERTY_OPERATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CHECK_VALUE_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, + 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, @@ -8354,18 +9308,15 @@ impl ::core::fmt::Debug for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PropertyName == other.PropertyName + && self.PropertyTypeId == other.PropertyTypeId + && self.PropertyValue == other.PropertyValue + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CHECK_VALUE_PROPERTY_OPERATION {} @@ -8375,12 +9326,13 @@ impl ::core::default::Default for FABRIC_CHECK_VALUE_PROPERTY_OPERATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLAIMS_CREDENTIALS { pub ServerCommonNameCount: u32, - pub ServerCommonNames: *const ::windows::core::PWSTR, + pub ServerCommonNames: *const ::windows_core::PCWSTR, pub IssuerThumbprintCount: u32, - pub IssuerThumbprints: *const ::windows::core::PWSTR, - pub LocalClaims: ::windows::core::PCWSTR, + pub IssuerThumbprints: *const ::windows_core::PCWSTR, + pub LocalClaims: ::windows_core::PCWSTR, pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, pub Reserved: *mut ::core::ffi::c_void, } @@ -8403,18 +9355,18 @@ impl ::core::fmt::Debug for FABRIC_CLAIMS_CREDENTIALS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLAIMS_CREDENTIALS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLAIMS_CREDENTIALS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLAIMS_CREDENTIALS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServerCommonNameCount == other.ServerCommonNameCount + && self.ServerCommonNames == other.ServerCommonNames + && self.IssuerThumbprintCount == other.IssuerThumbprintCount + && self.IssuerThumbprints == other.IssuerThumbprints + && self.LocalClaims == other.LocalClaims + && self.ProtectionLevel == other.ProtectionLevel + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLAIMS_CREDENTIALS {} @@ -8424,9 +9376,10 @@ impl ::core::default::Default for FABRIC_CLAIMS_CREDENTIALS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLAIMS_CREDENTIALS_EX1 { pub ServerThumbprintCount: u32, - pub ServerThumbprints: *const ::windows::core::PWSTR, + pub ServerThumbprints: *const ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_CLAIMS_CREDENTIALS_EX1 {} @@ -8444,18 +9397,14 @@ impl ::core::fmt::Debug for FABRIC_CLAIMS_CREDENTIALS_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLAIMS_CREDENTIALS_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLAIMS_CREDENTIALS_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLAIMS_CREDENTIALS_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServerThumbprintCount == other.ServerThumbprintCount + && self.ServerThumbprints == other.ServerThumbprints + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLAIMS_CREDENTIALS_EX1 {} @@ -8465,6 +9414,7 @@ impl ::core::default::Default for FABRIC_CLAIMS_CREDENTIALS_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLAIMS_RETRIEVAL_METADATA { pub Kind: FABRIC_CLAIMS_RETRIEVAL_METADATA_KIND, pub Value: *mut ::core::ffi::c_void, @@ -8483,18 +9433,12 @@ impl ::core::fmt::Debug for FABRIC_CLAIMS_RETRIEVAL_METADATA { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLAIMS_RETRIEVAL_METADATA { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLAIMS_RETRIEVAL_METADATA { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLAIMS_RETRIEVAL_METADATA { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_CLAIMS_RETRIEVAL_METADATA {} @@ -8504,6 +9448,7 @@ impl ::core::default::Default for FABRIC_CLAIMS_RETRIEVAL_METADATA { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLIENT_SETTINGS { pub PartitionLocationCacheLimit: u32, pub ServiceChangePollIntervalInSeconds: u32, @@ -8550,18 +9495,19 @@ impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLIENT_SETTINGS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLIENT_SETTINGS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionLocationCacheLimit == other.PartitionLocationCacheLimit + && self.ServiceChangePollIntervalInSeconds == other.ServiceChangePollIntervalInSeconds + && self.ConnectionInitializationTimeoutInSeconds + == other.ConnectionInitializationTimeoutInSeconds + && self.KeepAliveIntervalInSeconds == other.KeepAliveIntervalInSeconds + && self.HealthOperationTimeoutInSeconds == other.HealthOperationTimeoutInSeconds + && self.HealthReportSendIntervalInSeconds == other.HealthReportSendIntervalInSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS {} @@ -8571,8 +9517,9 @@ impl ::core::default::Default for FABRIC_CLIENT_SETTINGS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLIENT_SETTINGS_EX1 { - pub ClientFriendlyName: ::windows::core::PCWSTR, + pub ClientFriendlyName: ::windows_core::PCWSTR, pub PartitionLocationCacheBucketCount: u32, pub HealthReportRetrySendIntervalInSeconds: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -8599,18 +9546,16 @@ impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLIENT_SETTINGS_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLIENT_SETTINGS_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ClientFriendlyName == other.ClientFriendlyName + && self.PartitionLocationCacheBucketCount == other.PartitionLocationCacheBucketCount + && self.HealthReportRetrySendIntervalInSeconds + == other.HealthReportRetrySendIntervalInSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS_EX1 {} @@ -8620,6 +9565,7 @@ impl ::core::default::Default for FABRIC_CLIENT_SETTINGS_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLIENT_SETTINGS_EX2 { pub NotificationGatewayConnectionTimeoutInSeconds: u32, pub NotificationCacheUpdateTimeoutInSeconds: u32, @@ -8646,18 +9592,16 @@ impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLIENT_SETTINGS_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLIENT_SETTINGS_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NotificationGatewayConnectionTimeoutInSeconds + == other.NotificationGatewayConnectionTimeoutInSeconds + && self.NotificationCacheUpdateTimeoutInSeconds + == other.NotificationCacheUpdateTimeoutInSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS_EX2 {} @@ -8667,6 +9611,7 @@ impl ::core::default::Default for FABRIC_CLIENT_SETTINGS_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLIENT_SETTINGS_EX3 { pub AuthTokenBufferSize: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -8685,18 +9630,12 @@ impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLIENT_SETTINGS_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLIENT_SETTINGS_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.AuthTokenBufferSize == other.AuthTokenBufferSize && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS_EX3 {} @@ -8706,6 +9645,7 @@ impl ::core::default::Default for FABRIC_CLIENT_SETTINGS_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLIENT_SETTINGS_EX4 { pub ConnectionIdleTimeoutInSeconds: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -8727,18 +9667,13 @@ impl ::core::fmt::Debug for FABRIC_CLIENT_SETTINGS_EX4 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLIENT_SETTINGS_EX4 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLIENT_SETTINGS_EX4 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLIENT_SETTINGS_EX4 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ConnectionIdleTimeoutInSeconds == other.ConnectionIdleTimeoutInSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLIENT_SETTINGS_EX4 {} @@ -8748,6 +9683,7 @@ impl ::core::default::Default for FABRIC_CLIENT_SETTINGS_EX4 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLUSTER_HEALTH { pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut ::core::ffi::c_void, @@ -8766,18 +9702,12 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.AggregatedHealthState == other.AggregatedHealthState && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH {} @@ -8787,6 +9717,7 @@ impl ::core::default::Default for FABRIC_CLUSTER_HEALTH { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLUSTER_HEALTH_CHUNK { pub HealthState: FABRIC_HEALTH_STATE, pub NodeHealthStateChunks: *const FABRIC_NODE_HEALTH_STATE_CHUNK_LIST, @@ -8812,18 +9743,15 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_CHUNK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_CHUNK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_CHUNK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_CHUNK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthState == other.HealthState + && self.NodeHealthStateChunks == other.NodeHealthStateChunks + && self.ApplicationHealthStateChunks == other.ApplicationHealthStateChunks + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_CHUNK {} @@ -8833,6 +9761,8 @@ impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_CHUNK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { pub ClusterHealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, @@ -8840,12 +9770,15 @@ pub struct FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { pub NodeFilters: *const FABRIC_NODE_HEALTH_STATE_FILTER_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION") @@ -8860,39 +9793,46 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ClusterHealthPolicy == other.ClusterHealthPolicy + && self.ApplicationHealthPolicyMap == other.ApplicationHealthPolicyMap + && self.ApplicationFilters == other.ApplicationFilters + && self.NodeFilters == other.NodeFilters + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CLUSTER_HEALTH_EX1") @@ -8903,27 +9843,29 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeHealthStates == other.NodeHealthStates + && self.ApplicationHealthStates == other.ApplicationHealthStates + && self.HealthEvents == other.HealthEvents + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLUSTER_HEALTH_EX2 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -8942,18 +9884,12 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UnhealthyEvaluations == other.UnhealthyEvaluations && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_EX2 {} @@ -8963,6 +9899,7 @@ impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLUSTER_HEALTH_EX3 { pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, pub Reserved: *mut ::core::ffi::c_void, @@ -8981,18 +9918,12 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStatistics == other.HealthStatistics && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_EX3 {} @@ -9002,18 +9933,23 @@ impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CLUSTER_HEALTH_POLICY { pub ConsiderWarningAsError: ::windows::Win32::Foundation::BOOLEAN, pub MaxPercentUnhealthyNodes: u8, pub MaxPercentUnhealthyApplications: u8, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_POLICY {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_POLICY { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_POLICY { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CLUSTER_HEALTH_POLICY") @@ -9027,27 +9963,29 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_POLICY { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_POLICY { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_POLICY { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_POLICY { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ConsiderWarningAsError == other.ConsiderWarningAsError + && self.MaxPercentUnhealthyNodes == other.MaxPercentUnhealthyNodes + && self.MaxPercentUnhealthyApplications == other.MaxPercentUnhealthyApplications + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_POLICY {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_POLICY { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLUSTER_HEALTH_POLICY_EX1 { pub ApplicationTypeHealthPolicyMap: *const FABRIC_APPLICATION_TYPE_HEALTH_POLICY_MAP, pub Reserved: *mut ::core::ffi::c_void, @@ -9069,18 +10007,13 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeHealthPolicyMap == other.ApplicationTypeHealthPolicyMap + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_POLICY_EX1 {} @@ -9090,6 +10023,8 @@ impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_POLICY_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { pub HealthPolicy: *const FABRIC_CLUSTER_HEALTH_POLICY, pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, @@ -9098,12 +10033,15 @@ pub struct FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { pub ApplicationsFilter: *const FABRIC_APPLICATION_HEALTH_STATES_FILTER, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION") @@ -9119,37 +10057,45 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthPolicy == other.HealthPolicy + && self.ApplicationHealthPolicyMap == other.ApplicationHealthPolicyMap + && self.EventsFilter == other.EventsFilter + && self.NodesFilter == other.NodesFilter + && self.ApplicationsFilter == other.ApplicationsFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { pub HealthStatisticsFilter: *const FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1") @@ -9158,37 +10104,41 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStatisticsFilter == other.HealthStatisticsFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CLUSTER_HEALTH_REPORT { pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_REPORT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_REPORT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CLUSTER_HEALTH_REPORT") @@ -9197,38 +10147,41 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_REPORT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_REPORT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_REPORT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthInformation == other.HealthInformation && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_REPORT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, pub IncludeSystemApplicationHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER") @@ -9241,39 +10194,45 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ExcludeHealthStatistics == other.ExcludeHealthStatistics + && self.IncludeSystemApplicationHealthStatistics + == other.IncludeSystemApplicationHealthStatistics + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CLUSTER_HEALTH_STATISTICS_FILTER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CLUSTER_LOAD_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CLUSTER_LOAD_INFORMATION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CLUSTER_LOAD_INFORMATION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CLUSTER_LOAD_INFORMATION") @@ -9284,29 +10243,31 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_LOAD_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_LOAD_INFORMATION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CLUSTER_LOAD_INFORMATION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CLUSTER_LOAD_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.LastBalancingStartTimeUtc == other.LastBalancingStartTimeUtc + && self.LastBalancingEndTimeUtc == other.LastBalancingEndTimeUtc + && self.LoadMetricInformation == other.LoadMetricInformation + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CLUSTER_LOAD_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CLUSTER_LOAD_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { - pub ClusterManifestVersion: ::windows::core::PCWSTR, + pub ClusterManifestVersion: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION {} @@ -9323,18 +10284,13 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ClusterManifestVersion == other.ClusterManifestVersion + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION {} @@ -9344,6 +10300,7 @@ impl ::core::default::Default for FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { pub MaxPercentDeltaUnhealthyNodes: u8, pub MaxPercentUpgradeDomainDeltaUnhealthyNodes: u8, @@ -9370,18 +10327,15 @@ impl ::core::fmt::Debug for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MaxPercentDeltaUnhealthyNodes == other.MaxPercentDeltaUnhealthyNodes + && self.MaxPercentUpgradeDomainDeltaUnhealthyNodes + == other.MaxPercentUpgradeDomainDeltaUnhealthyNodes + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY {} @@ -9391,22 +10345,27 @@ impl ::core::default::Default for FABRIC_CLUSTER_UPGRADE_HEALTH_POLICY { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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 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 SetupEntryPoint: *mut FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION, pub EntryPoint: *mut FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CODE_PACKAGE_DESCRIPTION") @@ -9421,37 +10380,47 @@ impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.Version == other.Version + && self.ServiceManifestName == other.ServiceManifestName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.IsShared == other.IsShared + && self.SetupEntryPoint == other.SetupEntryPoint + && self.EntryPoint == other.EntryPoint + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CODE_PACKAGE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_CODE_PACKAGE_DESCRIPTION, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CODE_PACKAGE_DESCRIPTION_LIST") @@ -9460,42 +10429,45 @@ impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CODE_PACKAGE_DESCRIPTION_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT { - pub EntryPointLocation: ::windows::core::PCWSTR, + pub EntryPointLocation: ::windows_core::PCWSTR, pub ProcessId: i64, - pub RunAsUserName: ::windows::core::PCWSTR, + pub RunAsUserName: ::windows_core::PCWSTR, pub EntryPointStatus: FABRIC_ENTRY_POINT_STATUS, pub NextActivationUtc: ::windows::Win32::Foundation::FILETIME, pub Statistics: *const FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CODE_PACKAGE_ENTRY_POINT") @@ -9509,27 +10481,32 @@ impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_ENTRY_POINT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_ENTRY_POINT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.EntryPointLocation == other.EntryPointLocation + && self.ProcessId == other.ProcessId + && self.RunAsUserName == other.RunAsUserName + && self.EntryPointStatus == other.EntryPointStatus + && self.NextActivationUtc == other.NextActivationUtc + && self.Statistics == other.Statistics + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_ENTRY_POINT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { pub Kind: FABRIC_CODE_PACKAGE_ENTRY_POINT_KIND, pub Value: *mut ::core::ffi::c_void, @@ -9548,18 +10525,12 @@ impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION {} @@ -9569,6 +10540,7 @@ impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { pub CodePackageInstanceId: i64, pub Reserved: *mut ::core::ffi::c_void, @@ -9587,18 +10559,12 @@ impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CodePackageInstanceId == other.CodePackageInstanceId && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 {} @@ -9608,6 +10574,8 @@ impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { pub LastExitCode: u32, pub LastActivationUtc: ::windows::Win32::Foundation::FILETIME, @@ -9622,12 +10590,15 @@ pub struct FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { pub ContinuousExitFailureCount: u32, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS") @@ -9655,29 +10626,40 @@ impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} + self.LastExitCode == other.LastExitCode + && self.LastActivationUtc == other.LastActivationUtc + && self.LastExitUtc == other.LastExitUtc + && self.LastSuccessfulActivationUtc == other.LastSuccessfulActivationUtc + && self.LastSuccessfulExitUtc == other.LastSuccessfulExitUtc + && self.ActivationCount == other.ActivationCount + && self.ActivationFailureCount == other.ActivationFailureCount + && self.ContinuousActivationFailureCount == other.ContinuousActivationFailureCount + && self.ExitCount == other.ExitCount + && self.ExitFailureCount == other.ExitFailureCount + && self.ContinuousExitFailureCount == other.ContinuousExitFailureCount + && self.Reserved == other.Reserved + } +} +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CODE_PACKAGE_ENTRY_POINT_STATISTICS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { - pub CodePackageName: ::windows::core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, pub IsSetupEntryPoint: ::windows::Win32::Foundation::BOOL, pub IsContainerHost: ::windows::Win32::Foundation::BOOL, pub EventType: FABRIC_CODE_PACKAGE_EVENT_TYPE, @@ -9686,12 +10668,15 @@ pub struct FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { pub Properties: *mut FABRIC_STRING_MAP, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION") @@ -9706,32 +10691,38 @@ impl ::core::fmt::Debug for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CodePackageName == other.CodePackageName + && self.IsSetupEntryPoint == other.IsSetupEntryPoint + && self.IsContainerHost == other.IsContainerHost + && self.EventType == other.EventType + && self.TimeStampInTicks == other.TimeStampInTicks + && self.SequenceNumber == other.SequenceNumber + && self.Properties == other.Properties + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CODE_PACKAGE_EVENT_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub Version: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, + pub Version: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION {} @@ -9751,18 +10742,16 @@ impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.Version == other.Version + && self.ServiceManifestName == other.ServiceManifestName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION {} @@ -9772,6 +10761,7 @@ impl ::core::default::Default for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION, @@ -9790,18 +10780,12 @@ impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST {} @@ -9811,19 +10795,24 @@ impl ::core::default::Default for FABRIC_CONFIGURATION_PACKAGE_DESCRIPTION_LIST } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CONFIGURATION_PARAMETER { - pub Name: ::windows::core::PCWSTR, - pub Value: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, + pub Value: ::windows_core::PCWSTR, pub MustOverride: ::windows::Win32::Foundation::BOOLEAN, pub IsEncrypted: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CONFIGURATION_PARAMETER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CONFIGURATION_PARAMETER { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PARAMETER { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CONFIGURATION_PARAMETER") @@ -9835,29 +10824,32 @@ impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PARAMETER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_PARAMETER { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_PARAMETER { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PARAMETER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.Value == other.Value + && self.MustOverride == other.MustOverride + && self.IsEncrypted == other.IsEncrypted + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PARAMETER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CONFIGURATION_PARAMETER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CONFIGURATION_PARAMETER_EX1 { - pub Type: ::windows::core::PCWSTR, + pub Type: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_CONFIGURATION_PARAMETER_EX1 {} @@ -9874,18 +10866,12 @@ impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PARAMETER_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_PARAMETER_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_PARAMETER_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PARAMETER_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Type == other.Type && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PARAMETER_EX1 {} @@ -9895,16 +10881,21 @@ impl ::core::default::Default for FABRIC_CONFIGURATION_PARAMETER_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CONFIGURATION_PARAMETER_LIST { pub Count: u32, pub Items: *const FABRIC_CONFIGURATION_PARAMETER, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CONFIGURATION_PARAMETER_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CONFIGURATION_PARAMETER_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PARAMETER_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CONFIGURATION_PARAMETER_LIST") @@ -9913,38 +10904,41 @@ impl ::core::fmt::Debug for FABRIC_CONFIGURATION_PARAMETER_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_PARAMETER_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_PARAMETER_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_PARAMETER_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CONFIGURATION_PARAMETER_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CONFIGURATION_PARAMETER_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CONFIGURATION_SECTION { - pub Name: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, pub Parameters: *const FABRIC_CONFIGURATION_PARAMETER_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CONFIGURATION_SECTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CONFIGURATION_SECTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CONFIGURATION_SECTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CONFIGURATION_SECTION") @@ -9954,37 +10948,42 @@ impl ::core::fmt::Debug for FABRIC_CONFIGURATION_SECTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_SECTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_SECTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_SECTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.Parameters == other.Parameters + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CONFIGURATION_SECTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CONFIGURATION_SECTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CONFIGURATION_SECTION_LIST { pub Count: u32, pub Items: *const FABRIC_CONFIGURATION_SECTION, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CONFIGURATION_SECTION_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CONFIGURATION_SECTION_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CONFIGURATION_SECTION_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CONFIGURATION_SECTION_LIST") @@ -9993,37 +10992,40 @@ impl ::core::fmt::Debug for FABRIC_CONFIGURATION_SECTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_SECTION_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_SECTION_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_SECTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CONFIGURATION_SECTION_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CONFIGURATION_SECTION_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_CONFIGURATION_SETTINGS { pub Sections: *const FABRIC_CONFIGURATION_SECTION_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_CONFIGURATION_SETTINGS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_CONFIGURATION_SETTINGS { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_CONFIGURATION_SETTINGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_CONFIGURATION_SETTINGS") @@ -10032,31 +11034,30 @@ impl ::core::fmt::Debug for FABRIC_CONFIGURATION_SETTINGS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CONFIGURATION_SETTINGS { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_CONFIGURATION_SETTINGS { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_CONFIGURATION_SETTINGS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Sections == other.Sections && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_CONFIGURATION_SETTINGS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_CONFIGURATION_SETTINGS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { - pub ImageName: ::windows::core::PCWSTR, - pub Commands: ::windows::core::PCWSTR, - pub EntryPoint: ::windows::core::PCWSTR, + pub ImageName: ::windows_core::PCWSTR, + pub Commands: ::windows_core::PCWSTR, + pub EntryPoint: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION {} @@ -10075,18 +11076,15 @@ impl ::core::fmt::Debug for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ImageName == other.ImageName + && self.Commands == other.Commands + && self.EntryPoint == other.EntryPoint + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION {} @@ -10096,11 +11094,12 @@ impl ::core::default::Default for FABRIC_CONTAINERHOST_ENTRY_POINT_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DATA_PACKAGE_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub Version: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, + pub Version: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DATA_PACKAGE_DESCRIPTION {} @@ -10120,18 +11119,16 @@ impl ::core::fmt::Debug for FABRIC_DATA_PACKAGE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DATA_PACKAGE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DATA_PACKAGE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DATA_PACKAGE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.Version == other.Version + && self.ServiceManifestName == other.ServiceManifestName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DATA_PACKAGE_DESCRIPTION {} @@ -10141,6 +11138,7 @@ impl ::core::default::Default for FABRIC_DATA_PACKAGE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_DATA_PACKAGE_DESCRIPTION, @@ -10159,18 +11157,12 @@ impl ::core::fmt::Debug for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST {} @@ -10180,17 +11172,22 @@ impl ::core::default::Default for FABRIC_DATA_PACKAGE_DESCRIPTION_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DELETE_APPLICATION_DESCRIPTION { pub ApplicationName: *mut u16, pub ForceDelete: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DELETE_APPLICATION_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DELETE_APPLICATION_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DELETE_APPLICATION_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DELETE_APPLICATION_DESCRIPTION") @@ -10200,29 +11197,30 @@ impl ::core::fmt::Debug for FABRIC_DELETE_APPLICATION_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DELETE_APPLICATION_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DELETE_APPLICATION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DELETE_APPLICATION_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.ForceDelete == other.ForceDelete + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DELETE_APPLICATION_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DELETE_APPLICATION_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DELETE_NETWORK_DESCRIPTION { - pub NetworkName: ::windows::core::PCWSTR, + pub NetworkName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DELETE_NETWORK_DESCRIPTION {} @@ -10239,18 +11237,12 @@ impl ::core::fmt::Debug for FABRIC_DELETE_NETWORK_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DELETE_NETWORK_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DELETE_NETWORK_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DELETE_NETWORK_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NetworkName == other.NetworkName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DELETE_NETWORK_DESCRIPTION {} @@ -10260,8 +11252,9 @@ impl ::core::default::Default for FABRIC_DELETE_NETWORK_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DELETE_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, + pub PropertyName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DELETE_PROPERTY_OPERATION {} @@ -10278,18 +11271,12 @@ impl ::core::fmt::Debug for FABRIC_DELETE_PROPERTY_OPERATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DELETE_PROPERTY_OPERATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DELETE_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DELETE_PROPERTY_OPERATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PropertyName == other.PropertyName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DELETE_PROPERTY_OPERATION {} @@ -10299,17 +11286,22 @@ impl ::core::default::Default for FABRIC_DELETE_PROPERTY_OPERATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DELETE_SERVICE_DESCRIPTION { pub ServiceName: *mut u16, pub ForceDelete: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DELETE_SERVICE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DELETE_SERVICE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DELETE_SERVICE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DELETE_SERVICE_DESCRIPTION") @@ -10319,29 +11311,30 @@ impl ::core::fmt::Debug for FABRIC_DELETE_SERVICE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DELETE_SERVICE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DELETE_SERVICE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DELETE_SERVICE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.ForceDelete == other.ForceDelete + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DELETE_SERVICE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DELETE_SERVICE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub BaselineErrorCount: u32, pub BaselineTotalCount: u32, @@ -10373,18 +11366,19 @@ impl ::core::fmt::Debug for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.BaselineErrorCount == other.BaselineErrorCount + && self.BaselineTotalCount == other.BaselineTotalCount + && self.TotalCount == other.TotalCount + && self.MaxPercentDeltaUnhealthyNodes == other.MaxPercentDeltaUnhealthyNodes + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION {} @@ -10394,8 +11388,9 @@ impl ::core::default::Default for FABRIC_DELTA_NODES_CHECK_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub TotalCount: u32, @@ -10423,18 +11418,18 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyDeployedApplications + == other.MaxPercentUnhealthyDeployedApplications + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION {} @@ -10444,21 +11439,26 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH { pub ApplicationName: *mut u16, - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, pub DeployedServicePackageHealthStates: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH") @@ -10474,31 +11474,35 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.DeployedServicePackageHealthStates == other.DeployedServicePackageHealthStates + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub ApplicationName: *mut u16, - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -10521,18 +11525,17 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.ApplicationName == other.ApplicationName + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION {} @@ -10542,6 +11545,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_EVALUATION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -10560,18 +11564,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UnhealthyEvaluations == other.UnhealthyEvaluations && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 {} @@ -10581,6 +11579,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, pub Reserved: *mut ::core::ffi::c_void, @@ -10599,18 +11598,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStatistics == other.HealthStatistics && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 {} @@ -10620,20 +11613,25 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { pub ApplicationName: *mut u16, - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, pub DeployedServicePackagesFilter: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION") @@ -10649,37 +11647,45 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.NodeName == other.NodeName + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.DeployedServicePackagesFilter == other.DeployedServicePackagesFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1") @@ -10688,39 +11694,43 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStatisticsFilter == other.HealthStatisticsFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { pub ApplicationName: *mut u16, - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT") @@ -10731,30 +11741,32 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.NodeName == other.NodeName + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_REPORT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { pub ApplicationName: *mut u16, - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut ::core::ffi::c_void, } @@ -10774,18 +11786,15 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE {} @@ -10795,6 +11804,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -10813,18 +11823,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILTER {} @@ -10834,8 +11838,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATES_FILT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub HealthState: FABRIC_HEALTH_STATE, pub DeployedServicePackageHealthStateChunks: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST, @@ -10860,18 +11865,16 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.HealthState == other.HealthState + && self.DeployedServicePackageHealthStateChunks + == other.DeployedServicePackageHealthStateChunks + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK {} @@ -10881,6 +11884,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK, @@ -10903,18 +11907,15 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK_LIST {} @@ -10924,9 +11925,10 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_CHUNK } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, - pub NodeNameFilter: ::windows::core::PCWSTR, + pub NodeNameFilter: ::windows_core::PCWSTR, pub DeployedServicePackageFilters: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -10950,18 +11952,15 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter + && self.NodeNameFilter == other.NodeNameFilter + && self.DeployedServicePackageFilters == other.DeployedServicePackageFilters + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER {} @@ -10971,6 +11970,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTE } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER, @@ -10989,18 +11989,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTER_LIST {} @@ -11010,6 +12004,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_FILTE } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE, @@ -11028,18 +12023,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST {} @@ -11049,16 +12038,21 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATE_LIST } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER") @@ -11067,29 +12061,29 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ExcludeHealthStatistics == other.ExcludeHealthStatistics + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_HEALTH_STATISTICS_FILTER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub ApplicationNameFilter: *mut u16, pub Reserved: *mut ::core::ffi::c_void, } @@ -11108,18 +12102,14 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.ApplicationNameFilter == other.ApplicationNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION {} @@ -11129,9 +12119,10 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { pub ApplicationName: *mut u16, - pub ApplicationTypeName: ::windows::core::PCWSTR, + pub ApplicationTypeName: ::windows_core::PCWSTR, pub DeployedApplicationStatus: FABRIC_DEPLOYMENT_STATUS, pub Reserved: *mut ::core::ffi::c_void, } @@ -11151,18 +12142,15 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.ApplicationTypeName == other.ApplicationTypeName + && self.DeployedApplicationStatus == other.DeployedApplicationStatus + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM {} @@ -11172,10 +12160,11 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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 WorkDirectory: ::windows_core::PCWSTR, + pub LogDirectory: ::windows_core::PCWSTR, + pub TempDirectory: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX {} @@ -11194,18 +12183,15 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.WorkDirectory == other.WorkDirectory + && self.LogDirectory == other.LogDirectory + && self.TempDirectory == other.TempDirectory + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX {} @@ -11215,6 +12201,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_ } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { pub HealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut ::core::ffi::c_void, @@ -11233,18 +12220,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthState == other.HealthState && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_EX2 {} @@ -11254,6 +12235,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM_ } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_ITEM, @@ -11272,18 +12254,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST {} @@ -11293,11 +12269,12 @@ impl ::core::default::Default for FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub ApplicationName: *mut u16, - pub ServiceManifestNameFilter: ::windows::core::PCWSTR, - pub CodePackageNameFilter: ::windows::core::PCWSTR, + pub ServiceManifestNameFilter: ::windows_core::PCWSTR, + pub CodePackageNameFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION {} @@ -11317,18 +12294,16 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestNameFilter == other.ServiceManifestNameFilter + && self.CodePackageNameFilter == other.CodePackageNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION {} @@ -11338,22 +12313,27 @@ impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { - pub CodePackageName: ::windows::core::PCWSTR, - pub CodePackageVersion: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub CodePackageVersion: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, pub RunFrequencyInterval: u32, pub DeployedCodePackageStatus: FABRIC_DEPLOYMENT_STATUS, pub SetupEntryPoint: *const FABRIC_CODE_PACKAGE_ENTRY_POINT, pub EntryPoint: *const FABRIC_CODE_PACKAGE_ENTRY_POINT, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM") @@ -11368,29 +12348,35 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CodePackageName == other.CodePackageName + && self.CodePackageVersion == other.CodePackageVersion + && self.ServiceManifestName == other.ServiceManifestName + && self.RunFrequencyInterval == other.RunFrequencyInterval + && self.DeployedCodePackageStatus == other.DeployedCodePackageStatus + && self.SetupEntryPoint == other.SetupEntryPoint + && self.EntryPoint == other.EntryPoint + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub HostType: FABRIC_HOST_TYPE, pub HostIsolationMode: FABRIC_HOST_ISOLATION_MODE, pub Reserved: *mut ::core::ffi::c_void, @@ -11414,18 +12400,15 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.HostType == other.HostType + && self.HostIsolationMode == other.HostIsolationMode + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM_EX1 {} @@ -11435,16 +12418,21 @@ impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_ITEM, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST") @@ -11453,32 +12441,31 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, pub CodePackageInstanceId: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -11500,18 +12487,17 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.CodePackageName == other.CodePackageName + && self.CodePackageInstanceId == other.CodePackageInstanceId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT {} @@ -11521,8 +12507,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 {} @@ -11542,18 +12529,13 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 {} @@ -11563,12 +12545,13 @@ impl ::core::default::Default for FABRIC_DEPLOYED_CODE_PACKAGE_RESULT_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub NetworkName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, + pub NetworkName: ::windows_core::PCWSTR, pub ApplicationNameFilter: *mut u16, - pub ServiceManifestNameFilter: ::windows::core::PCWSTR, - pub CodePackageNameFilter: ::windows::core::PCWSTR, + pub ServiceManifestNameFilter: ::windows_core::PCWSTR, + pub CodePackageNameFilter: ::windows_core::PCWSTR, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut ::core::ffi::c_void, } @@ -11591,18 +12574,18 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTI .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.NetworkName == other.NetworkName + && self.ApplicationNameFilter == other.ApplicationNameFilter + && self.ServiceManifestNameFilter == other.ServiceManifestNameFilter + && self.CodePackageNameFilter == other.CodePackageNameFilter + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION {} @@ -11612,15 +12595,16 @@ impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DES } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { pub ApplicationName: *mut u16, - pub NetworkName: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, - pub CodePackageVersion: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub ServicePackageActivationId: ::windows::core::PCWSTR, - pub ContainerAddress: ::windows::core::PCWSTR, - pub ContainerId: ::windows::core::PCWSTR, + pub NetworkName: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub CodePackageVersion: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, + pub ContainerAddress: ::windows_core::PCWSTR, + pub ContainerId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM {} @@ -11647,18 +12631,20 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_IT .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.NetworkName == other.NetworkName + && self.CodePackageName == other.CodePackageName + && self.CodePackageVersion == other.CodePackageVersion + && self.ServiceManifestName == other.ServiceManifestName + && self.ServicePackageActivationId == other.ServicePackageActivationId + && self.ContainerAddress == other.ContainerAddress + && self.ContainerId == other.ContainerId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM {} @@ -11668,6 +12654,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RES } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_ITEM, @@ -11686,18 +12673,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LI .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST {} @@ -11707,8 +12688,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RES } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut ::core::ffi::c_void, } @@ -11727,18 +12709,14 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION {} @@ -11748,8 +12726,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { - pub NetworkName: ::windows::core::PCWSTR, + pub NetworkName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM {} @@ -11766,18 +12745,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NetworkName == other.NetworkName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM {} @@ -11787,6 +12760,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_ITEM, @@ -11805,18 +12779,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST {} @@ -11826,8 +12794,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub TotalCount: u32, @@ -11850,18 +12819,16 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUATION {} @@ -11871,20 +12838,25 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGES_HEALTH_EVALUA } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH") @@ -11897,32 +12869,36 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -11946,18 +12922,18 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION {} @@ -11967,8 +12943,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUAT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 {} @@ -11988,18 +12965,13 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUATION_EX1 {} @@ -12009,6 +12981,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EVALUAT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -12027,18 +13000,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UnhealthyEvaluations == other.UnhealthyEvaluations && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 {} @@ -12048,8 +13015,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 {} @@ -12069,18 +13037,13 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 {} @@ -12090,20 +13053,25 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { pub ApplicationName: *mut u16, - pub NodeName: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION") @@ -12116,29 +13084,33 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIP .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.NodeName == other.NodeName + && self.ServiceManifestName == other.ServiceManifestName + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 {} @@ -12158,19 +13130,13 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIP .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION_EX1 {} @@ -12180,19 +13146,24 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_D } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT") @@ -12204,29 +13175,32 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.NodeName == other.NodeName + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 {} @@ -12246,18 +13220,13 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_EX1 {} @@ -12267,10 +13236,11 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_REPORT_ } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut ::core::ffi::c_void, } @@ -12291,18 +13261,16 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE {} @@ -12312,6 +13280,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -12330,18 +13299,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_FILTER {} @@ -12351,8 +13314,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATES_ } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { - pub ServiceManifestName: ::windows::core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, pub HealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut ::core::ffi::c_void, } @@ -12371,18 +13335,14 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceManifestName == other.ServiceManifestName + && self.HealthState == other.HealthState + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK {} @@ -12392,8 +13352,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_C } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 {} @@ -12413,18 +13374,13 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_E .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_EX1 {} @@ -12434,6 +13390,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_C } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK, @@ -12456,18 +13413,15 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_L .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_CHUNK_LIST {} @@ -12477,8 +13431,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_C } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 {} @@ -12498,18 +13453,13 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_EX1 {} @@ -12519,9 +13469,10 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_E } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, - pub ServiceManifestNameFilter: ::windows::core::PCWSTR, + pub ServiceManifestNameFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER {} @@ -12539,18 +13490,14 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter + && self.ServiceManifestNameFilter == other.ServiceManifestNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER {} @@ -12560,8 +13507,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_F } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { - pub ServicePackageActivationIdFilter: ::windows::core::PCWSTR, + pub ServicePackageActivationIdFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 {} @@ -12581,18 +13529,13 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_ .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServicePackageActivationIdFilter == other.ServicePackageActivationIdFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_EX1 {} @@ -12602,6 +13545,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_F } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER, @@ -12620,18 +13564,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_ .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_FILTER_LIST {} @@ -12641,6 +13579,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_F } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE, @@ -12659,18 +13598,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_LIST {} @@ -12680,10 +13613,11 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_STATE_L } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub ApplicationName: *mut u16, - pub ServiceManifestNameFilter: ::windows::core::PCWSTR, + pub ServiceManifestNameFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION {} @@ -12702,18 +13636,15 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestNameFilter == other.ServiceManifestNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION {} @@ -12723,9 +13654,10 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { - pub ServiceManifestName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, pub DeployedServicePackageStatus: FABRIC_DEPLOYMENT_STATUS, pub Reserved: *mut ::core::ffi::c_void, } @@ -12748,18 +13680,15 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceManifestName == other.ServiceManifestName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.DeployedServicePackageStatus == other.DeployedServicePackageStatus + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM {} @@ -12769,8 +13698,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_I } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 {} @@ -12790,18 +13720,13 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM_EX1 {} @@ -12811,6 +13736,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_I } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_ITEM, @@ -12829,18 +13755,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST {} @@ -12850,9 +13770,10 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_L } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, + pub NodeName: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, pub ReplicaId: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -12872,18 +13793,15 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIP .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.PartitionId == other.PartitionId + && self.ReplicaId == other.ReplicaId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION {} @@ -12893,6 +13811,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_D } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut ::core::ffi::c_void, @@ -12911,18 +13830,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM {} @@ -12932,11 +13845,12 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_R } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub ApplicationName: *mut u16, - pub ServiceManifestNameFilter: ::windows::core::PCWSTR, - pub PartitionIdFilter: ::windows::core::GUID, + pub ServiceManifestNameFilter: ::windows_core::PCWSTR, + pub PartitionIdFilter: ::windows_core::GUID, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION {} @@ -12956,18 +13870,16 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestNameFilter == other.ServiceManifestNameFilter + && self.PartitionIdFilter == other.PartitionIdFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION {} @@ -12977,6 +13889,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut ::core::ffi::c_void, @@ -12995,18 +13908,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM {} @@ -13016,6 +13923,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_I } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_ITEM, @@ -13034,18 +13942,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST {} @@ -13055,11 +13957,12 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_L } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub ApplicationName: *mut u16, - pub ServiceManifestNameFilter: ::windows::core::PCWSTR, - pub ServiceTypeNameFilter: ::windows::core::PCWSTR, + pub ServiceManifestNameFilter: ::windows_core::PCWSTR, + pub ServiceTypeNameFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION {} @@ -13079,18 +13982,16 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestNameFilter == other.ServiceManifestNameFilter + && self.ServiceTypeNameFilter == other.ServiceTypeNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION {} @@ -13100,10 +14001,11 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { - pub ServiceTypeName: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, - pub ServiceManifestName: ::windows::core::PCWSTR, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, pub Status: FABRIC_SERVICE_TYPE_REGISTRATION_STATUS, pub Reserved: *mut ::core::ffi::c_void, } @@ -13124,18 +14026,16 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceTypeName == other.ServiceTypeName + && self.CodePackageName == other.CodePackageName + && self.ServiceManifestName == other.ServiceManifestName + && self.Status == other.Status + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM {} @@ -13145,8 +14045,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 {} @@ -13166,18 +14067,13 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 {} @@ -13187,6 +14083,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_ITEM, @@ -13205,18 +14102,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST {} @@ -13226,9 +14117,11 @@ impl ::core::default::Default for FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub ReplicaId: i64, pub CurrentServiceOperation: FABRIC_QUERY_SERVICE_OPERATION_NAME, pub CurrentServiceOperationStartTimeUtc: ::windows::Win32::Foundation::FILETIME, @@ -13239,12 +14132,15 @@ 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM") @@ -13268,25 +14164,31 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUER .finish() } } -unsafe impl ::windows::core::Abi +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { - type Abi = Self; + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM, - >(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.ReplicaId == other.ReplicaId + && self.CurrentServiceOperation == other.CurrentServiceOperation + && self.CurrentServiceOperationStartTimeUtc == other.CurrentServiceOperationStartTimeUtc + && self.CurrentReplicatorOperation == other.CurrentReplicatorOperation + && self.ReadStatus == other.ReadStatus + && self.WriteStatus == other.WriteStatus + && self.ReportedLoad == other.ReportedLoad + && self.ReplicatorStatus == other.ReplicatorStatus + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM { @@ -13295,6 +14197,7 @@ impl ::core::default::Default } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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, @@ -13318,24 +14221,16 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUER .finish() } } -unsafe impl ::windows::core::Abi +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1, - >(), - ) == 0 - } + self.ReplicaStatus == other.ReplicaStatus && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX1 {} @@ -13347,6 +14242,7 @@ impl ::core::default::Default } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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, @@ -13370,24 +14266,17 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUER .finish() } } -unsafe impl ::windows::core::Abi +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2, - >(), - ) == 0 - } + self.DeployedServiceReplica == other.DeployedServiceReplica + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM_EX2 {} @@ -13399,16 +14288,17 @@ impl ::core::default::Default } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, pub ReplicaId: i64, pub ReplicaRole: FABRIC_REPLICA_ROLE, pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, - pub Address: ::windows::core::PCWSTR, + pub Address: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM {} @@ -13433,18 +14323,21 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESUL .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.CodePackageName == other.CodePackageName + && self.PartitionId == other.PartitionId + && self.ReplicaId == other.ReplicaId + && self.ReplicaRole == other.ReplicaRole + && self.ReplicaStatus == other.ReplicaStatus + && self.Address == other.Address + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM {} @@ -13454,8 +14347,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { - pub ServiceManifestName: ::windows::core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 {} @@ -13472,21 +14366,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESUL .finish() } } -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 -{ - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } + self.ServiceManifestName == other.ServiceManifestName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX1 {} @@ -13496,8 +14381,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 {} @@ -13517,21 +14403,13 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESUL .finish() } } -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 -{ - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX2 {} @@ -13541,17 +14419,22 @@ impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3") @@ -13564,45 +14447,47 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESUL .finish() } } -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 -{ - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } + self.HostProcessId == other.HostProcessId + && self.ReconfigurationInformation == other.ReconfigurationInformation + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM_EX3 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub InstanceId: i64, pub CurrentServiceOperation: FABRIC_QUERY_SERVICE_OPERATION_NAME, pub CurrentServiceOperationStartTimeUtc: ::windows::Win32::Foundation::FILETIME, pub ReportedLoad: *mut FABRIC_LOAD_METRIC_REPORT_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM") @@ -13619,27 +14504,29 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QU .finish() } } -unsafe impl ::windows::core::Abi +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { - type Abi = Self; + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM, - >(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.InstanceId == other.InstanceId + && self.CurrentServiceOperation == other.CurrentServiceOperation + && self.CurrentServiceOperationStartTimeUtc == other.CurrentServiceOperationStartTimeUtc + && self.ReportedLoad == other.ReportedLoad + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM { @@ -13648,6 +14535,7 @@ impl ::core::default::Default } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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, @@ -13673,24 +14561,17 @@ impl ::core::fmt::Debug .finish() } } -unsafe impl ::windows::core::Abi +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1, - >(), - ) == 0 - } + self.DeployedServiceReplica == other.DeployedServiceReplica + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_DETAIL_QUERY_RESULT_ITEM_EX1 {} @@ -13702,15 +14583,16 @@ impl ::core::default::Default } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, pub InstanceId: i64, pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, - pub Address: ::windows::core::PCWSTR, + pub Address: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM {} @@ -13734,19 +14616,20 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RES .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.CodePackageName == other.CodePackageName + && self.PartitionId == other.PartitionId + && self.InstanceId == other.InstanceId + && self.ReplicaStatus == other.ReplicaStatus + && self.Address == other.Address + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM {} @@ -13756,8 +14639,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUE } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { - pub ServiceManifestName: ::windows::core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 {} @@ -13774,22 +14658,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RES .finish() } } -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 -{ - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1, - >(), - ) == 0 - } + self.ServiceManifestName == other.ServiceManifestName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX1 {} @@ -13799,8 +14673,9 @@ impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUE } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 {} @@ -13820,22 +14695,13 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RES .finish() } } -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 -{ - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2, - >(), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX2 {} @@ -13845,6 +14711,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUE } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { pub HostProcessId: i64, pub Reserved: *mut ::core::ffi::c_void, @@ -13863,22 +14730,12 @@ impl ::core::fmt::Debug for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RES .finish() } } -unsafe impl ::windows::core::Abi - for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 -{ - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3, - >(), - ) == 0 - } + self.HostProcessId == other.HostProcessId && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM_EX3 {} @@ -13888,6 +14745,7 @@ impl ::core::default::Default for FABRIC_DEPLOYED_STATELESS_SERVICE_INSTANCE_QUE } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { pub IsolationPolicyType: FABRIC_DLLHOST_ISOLATION_POLICY, pub HostedDlls: *mut FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST, @@ -13908,18 +14766,14 @@ impl ::core::fmt::Debug for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.IsolationPolicyType == other.IsolationPolicyType + && self.HostedDlls == other.HostedDlls + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION {} @@ -13929,6 +14783,7 @@ impl ::core::default::Default for FABRIC_DLLHOST_ENTRY_POINT_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { pub Kind: FABRIC_DLLHOST_HOSTED_DLL_KIND, pub Value: *mut ::core::ffi::c_void, @@ -13947,18 +14802,12 @@ impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION {} @@ -13968,6 +14817,7 @@ impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { pub Count: u32, pub Items: *mut FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION, @@ -13986,18 +14836,12 @@ impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST {} @@ -14007,8 +14851,9 @@ impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_DLL_DESCRIPTION_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { - pub AssemblyName: ::windows::core::PCWSTR, + pub AssemblyName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION {} @@ -14025,18 +14870,12 @@ impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.AssemblyName == other.AssemblyName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION {} @@ -14046,8 +14885,9 @@ impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_MANAGED_DLL_DESCRIPTION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { - pub DllName: ::windows::core::PCWSTR, + pub DllName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION {} @@ -14064,18 +14904,12 @@ impl ::core::fmt::Debug for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.DllName == other.DllName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTION {} @@ -14085,12 +14919,13 @@ impl ::core::default::Default for FABRIC_DLLHOST_HOSTED_UNMANAGED_DLL_DESCRIPTIO } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub Protocol: ::windows::core::PCWSTR, - pub Type: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, + pub Protocol: ::windows_core::PCWSTR, + pub Type: ::windows_core::PCWSTR, pub Port: u32, - pub CertificateName: ::windows::core::PCWSTR, + pub CertificateName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION {} @@ -14111,18 +14946,17 @@ impl ::core::fmt::Debug for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.Protocol == other.Protocol + && self.Type == other.Type + && self.Port == other.Port + && self.CertificateName == other.CertificateName + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION {} @@ -14132,9 +14966,10 @@ impl ::core::default::Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { - pub UriScheme: ::windows::core::PCWSTR, - pub PathSuffix: ::windows::core::PCWSTR, + pub UriScheme: ::windows_core::PCWSTR, + pub PathSuffix: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 {} @@ -14152,18 +14987,14 @@ impl ::core::fmt::Debug for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UriScheme == other.UriScheme + && self.PathSuffix == other.PathSuffix + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 {} @@ -14173,9 +15004,10 @@ impl ::core::default::Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { - pub CodePackageName: ::windows::core::PCWSTR, - pub IpAddressOrFqdn: ::windows::core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, + pub IpAddressOrFqdn: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 {} @@ -14193,18 +15025,14 @@ impl ::core::fmt::Debug for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CodePackageName == other.CodePackageName + && self.IpAddressOrFqdn == other.IpAddressOrFqdn + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 {} @@ -14214,6 +15042,7 @@ impl ::core::default::Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_ENDPOINT_RESOURCE_DESCRIPTION, @@ -14232,18 +15061,12 @@ impl ::core::fmt::Debug for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST {} @@ -14253,6 +15076,7 @@ impl ::core::default::Default for FABRIC_ENDPOINT_RESOURCE_DESCRIPTION_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { pub EntityKind: FABRIC_HEALTH_ENTITY_KIND, pub HealthStateCount: *const FABRIC_HEALTH_STATE_COUNT, @@ -14273,18 +15097,14 @@ impl ::core::fmt::Debug for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.EntityKind == other.EntityKind + && self.HealthStateCount == other.HealthStateCount + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT {} @@ -14294,6 +15114,7 @@ impl ::core::default::Default for FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_EPOCH { pub DataLossNumber: i64, pub ConfigurationNumber: i64, @@ -14314,18 +15135,14 @@ impl ::core::fmt::Debug for FABRIC_EPOCH { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_EPOCH { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_EPOCH { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_EPOCH { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.DataLossNumber == other.DataLossNumber + && self.ConfigurationNumber == other.ConfigurationNumber + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_EPOCH {} @@ -14335,8 +15152,9 @@ impl ::core::default::Default for FABRIC_EPOCH { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS { - pub DbFolderPath: ::windows::core::PCWSTR, + pub DbFolderPath: ::windows_core::PCWSTR, pub LogFileSizeInKB: i32, pub LogBufferSizeInKB: i32, pub MaxCursors: i32, @@ -14366,18 +15184,18 @@ impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.DbFolderPath == other.DbFolderPath + && self.LogFileSizeInKB == other.LogFileSizeInKB + && self.LogBufferSizeInKB == other.LogBufferSizeInKB + && self.MaxCursors == other.MaxCursors + && self.MaxVerPages == other.MaxVerPages + && self.MaxAsyncCommitDelayInMilliseconds == other.MaxAsyncCommitDelayInMilliseconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS {} @@ -14387,16 +15205,21 @@ impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { pub EnableIncrementalBackup: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1") @@ -14405,27 +15228,27 @@ impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.EnableIncrementalBackup == other.EnableIncrementalBackup + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { pub MaxCacheSizeInMB: i32, pub Reserved: *mut ::core::ffi::c_void, @@ -14444,18 +15267,12 @@ impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MaxCacheSizeInMB == other.MaxCacheSizeInMB && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 {} @@ -14465,6 +15282,7 @@ impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { pub MaxDefragFrequencyInMinutes: i32, pub DefragThresholdInMB: i32, @@ -14490,18 +15308,15 @@ impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MaxDefragFrequencyInMinutes == other.MaxDefragFrequencyInMinutes + && self.DefragThresholdInMB == other.DefragThresholdInMB + && self.DatabasePageSizeInKB == other.DatabasePageSizeInKB + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 {} @@ -14511,6 +15326,7 @@ impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { pub CompactionThresholdInMB: i32, pub Reserved: *mut ::core::ffi::c_void, @@ -14529,18 +15345,13 @@ impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CompactionThresholdInMB == other.CompactionThresholdInMB + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 {} @@ -14550,6 +15361,7 @@ impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX4 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { pub IntrinsicValueThresholdInBytes: i32, pub Reserved: *mut ::core::ffi::c_void, @@ -14571,18 +15383,13 @@ impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.IntrinsicValueThresholdInBytes == other.IntrinsicValueThresholdInBytes + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 {} @@ -14592,16 +15399,21 @@ impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX5 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { pub EnableOverwriteOnUpdate: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6") @@ -14610,27 +15422,27 @@ impl ::core::fmt::Debug for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.EnableOverwriteOnUpdate == other.EnableOverwriteOnUpdate + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_ESE_LOCAL_STORE_SETTINGS_EX6 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_EVENT_CONTEXT_MAP { pub Count: u32, pub Items: *mut FABRIC_EVENT_CONTEXT_MAP_ITEM, @@ -14649,18 +15461,12 @@ impl ::core::fmt::Debug for FABRIC_EVENT_CONTEXT_MAP { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_EVENT_CONTEXT_MAP { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_EVENT_CONTEXT_MAP { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_EVENT_CONTEXT_MAP { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_EVENT_CONTEXT_MAP {} @@ -14670,9 +15476,10 @@ impl ::core::default::Default for FABRIC_EVENT_CONTEXT_MAP { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_EVENT_CONTEXT_MAP_ITEM { - pub Key: ::windows::core::PCWSTR, - pub Value: ::windows::core::PCWSTR, + pub Key: ::windows_core::PCWSTR, + pub Value: ::windows_core::PCWSTR, } impl ::core::marker::Copy for FABRIC_EVENT_CONTEXT_MAP_ITEM {} impl ::core::clone::Clone for FABRIC_EVENT_CONTEXT_MAP_ITEM { @@ -14688,18 +15495,12 @@ impl ::core::fmt::Debug for FABRIC_EVENT_CONTEXT_MAP_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_EVENT_CONTEXT_MAP_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_EVENT_CONTEXT_MAP_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_EVENT_CONTEXT_MAP_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Key == other.Key && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_EVENT_CONTEXT_MAP_ITEM {} @@ -14709,19 +15510,24 @@ impl ::core::default::Default for FABRIC_EVENT_CONTEXT_MAP_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_EVENT_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvent: *const FABRIC_HEALTH_EVENT, pub ConsiderWarningAsError: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_EVENT_HEALTH_EVALUATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_EVENT_HEALTH_EVALUATION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_EVENT_HEALTH_EVALUATION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_EVENT_HEALTH_EVALUATION") @@ -14733,38 +15539,45 @@ impl ::core::fmt::Debug for FABRIC_EVENT_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_EVENT_HEALTH_EVALUATION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_EVENT_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_EVENT_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvent == other.UnhealthyEvent + && self.ConsiderWarningAsError == other.ConsiderWarningAsError + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_EVENT_HEALTH_EVALUATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_EVENT_HEALTH_EVALUATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_EXECUTING_FAULTS_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_EXECUTING_FAULTS_EVENT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_EXECUTING_FAULTS_EVENT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_EXECUTING_FAULTS_EVENT") @@ -14774,30 +15587,31 @@ impl ::core::fmt::Debug for FABRIC_EXECUTING_FAULTS_EVENT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_EXECUTING_FAULTS_EVENT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_EXECUTING_FAULTS_EVENT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_EXECUTING_FAULTS_EVENT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.TimeStampUtc == other.TimeStampUtc + && self.Faults == other.Faults + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_EXECUTING_FAULTS_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_EXECUTING_FAULTS_EVENT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { - pub Program: ::windows::core::PCWSTR, - pub Arguments: ::windows::core::PCWSTR, + pub Program: ::windows_core::PCWSTR, + pub Arguments: ::windows_core::PCWSTR, pub WorkingFolder: FABRIC_EXEHOST_WORKING_FOLDER, pub Reserved: *mut ::core::ffi::c_void, } @@ -14817,18 +15631,15 @@ impl ::core::fmt::Debug for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Program == other.Program + && self.Arguments == other.Arguments + && self.WorkingFolder == other.WorkingFolder + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION {} @@ -14838,6 +15649,8 @@ impl ::core::default::Default for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { pub PeriodicIntervalInSeconds: u32, pub ConsoleRedirectionEnabled: ::windows::Win32::Foundation::BOOLEAN, @@ -14845,12 +15658,15 @@ pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { pub ConsoleRedirectionFileMaxSizeInKb: u32, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1") @@ -14868,37 +15684,45 @@ impl ::core::fmt::Debug for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PeriodicIntervalInSeconds == other.PeriodicIntervalInSeconds + && self.ConsoleRedirectionEnabled == other.ConsoleRedirectionEnabled + && self.ConsoleRedirectionFileRetentionCount + == other.ConsoleRedirectionFileRetentionCount + && self.ConsoleRedirectionFileMaxSizeInKb == other.ConsoleRedirectionFileMaxSizeInKb + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { pub IsExternalExecutable: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2") @@ -14907,40 +15731,43 @@ impl ::core::fmt::Debug for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.IsExternalExecutable == other.IsExternalExecutable && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_EXEHOST_ENTRY_POINT_DESCRIPTION_EX2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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 ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, + pub ApplicationPackageDownloadUri: ::windows_core::PCWSTR, pub Async: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION") @@ -14955,33 +15782,35 @@ impl ::core::fmt::Debug for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DES .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } + self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.ApplicationPackageDownloadUri == other.ApplicationPackageDownloadUri + && self.Async == other.Async + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_EXTERNAL_STORE_PROVISION_APPLICATION_TYPE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_GATEWAY_INFORMATION { - pub NodeAddress: ::windows::core::PCWSTR, + pub NodeAddress: ::windows_core::PCWSTR, pub NodeId: FABRIC_NODE_ID, pub NodeInstanceId: u64, - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_GATEWAY_INFORMATION {} @@ -15001,18 +15830,16 @@ impl ::core::fmt::Debug for FABRIC_GATEWAY_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_GATEWAY_INFORMATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_GATEWAY_INFORMATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_GATEWAY_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeAddress == other.NodeAddress + && self.NodeId == other.NodeId + && self.NodeInstanceId == other.NodeInstanceId + && self.NodeName == other.NodeName + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_GATEWAY_INFORMATION {} @@ -15022,17 +15849,22 @@ impl ::core::default::Default for FABRIC_GATEWAY_INFORMATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_GET_CHAOS_REPORT_DESCRIPTION { pub Filter: *mut FABRIC_CHAOS_REPORT_FILTER, - pub ContinuationToken: ::windows::core::PCWSTR, + pub ContinuationToken: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_GET_CHAOS_REPORT_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_GET_CHAOS_REPORT_DESCRIPTION") @@ -15042,38 +15874,43 @@ impl ::core::fmt::Debug for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Filter == other.Filter + && self.ContinuationToken == other.ContinuationToken + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_GET_CHAOS_REPORT_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_GET_CHAOS_REPORT_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_GET_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, + pub PropertyName: ::windows_core::PCWSTR, pub IncludeValue: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_GET_PROPERTY_OPERATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_GET_PROPERTY_OPERATION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_GET_PROPERTY_OPERATION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_GET_PROPERTY_OPERATION") @@ -15083,27 +15920,28 @@ impl ::core::fmt::Debug for FABRIC_GET_PROPERTY_OPERATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_GET_PROPERTY_OPERATION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_GET_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_GET_PROPERTY_OPERATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PropertyName == other.PropertyName + && self.IncludeValue == other.IncludeValue + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_GET_PROPERTY_OPERATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_GET_PROPERTY_OPERATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_HEALTH_EVALUATION { pub Kind: FABRIC_HEALTH_EVALUATION_KIND, pub Value: *mut ::core::ffi::c_void, @@ -15122,18 +15960,12 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_HEALTH_EVALUATION {} @@ -15143,6 +15975,7 @@ impl ::core::default::Default for FABRIC_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_HEALTH_EVALUATION_LIST { pub Count: u32, pub Items: *const FABRIC_HEALTH_EVALUATION, @@ -15161,18 +15994,12 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_EVALUATION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVALUATION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_HEALTH_EVALUATION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVALUATION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_HEALTH_EVALUATION_LIST {} @@ -15182,6 +16009,8 @@ impl ::core::default::Default for FABRIC_HEALTH_EVALUATION_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_HEALTH_EVENT { pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub SourceUtcTimestamp: ::windows::Win32::Foundation::FILETIME, @@ -15189,12 +16018,15 @@ pub struct FABRIC_HEALTH_EVENT { pub IsExpired: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_HEALTH_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_HEALTH_EVENT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_HEALTH_EVENT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_HEALTH_EVENT") @@ -15206,27 +16038,30 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_EVENT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVENT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_HEALTH_EVENT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVENT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthInformation == other.HealthInformation + && self.SourceUtcTimestamp == other.SourceUtcTimestamp + && self.LastModifiedUtcTimestamp == other.LastModifiedUtcTimestamp + && self.IsExpired == other.IsExpired + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_HEALTH_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_HEALTH_EVENT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_HEALTH_EVENTS_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -15245,18 +16080,12 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_EVENTS_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVENTS_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_HEALTH_EVENTS_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVENTS_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_HEALTH_EVENTS_FILTER {} @@ -15266,18 +16095,23 @@ impl ::core::default::Default for FABRIC_HEALTH_EVENTS_FILTER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_HEALTH_EVENT_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_HEALTH_EVENT_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_HEALTH_EVENT_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_HEALTH_EVENT_EX1") @@ -15288,37 +16122,43 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_EVENT_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVENT_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_HEALTH_EVENT_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVENT_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.LastOkTransitionAt == other.LastOkTransitionAt + && self.LastWarningTransitionAt == other.LastWarningTransitionAt + && self.LastErrorTransitionAt == other.LastErrorTransitionAt + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_HEALTH_EVENT_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_HEALTH_EVENT_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_HEALTH_EVENT_LIST { pub Count: u32, pub Items: *const FABRIC_HEALTH_EVENT, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_HEALTH_EVENT_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_HEALTH_EVENT_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_HEALTH_EVENT_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_HEALTH_EVENT_LIST") @@ -15327,43 +16167,46 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_EVENT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_EVENT_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_HEALTH_EVENT_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_HEALTH_EVENT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_HEALTH_EVENT_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_HEALTH_EVENT_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_HEALTH_INFORMATION { - pub SourceId: ::windows::core::PCWSTR, - pub Property: ::windows::core::PCWSTR, + pub SourceId: ::windows_core::PCWSTR, + pub Property: ::windows_core::PCWSTR, pub TimeToLiveSeconds: u32, pub State: FABRIC_HEALTH_STATE, - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub SequenceNumber: i64, pub RemoveWhenExpired: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_HEALTH_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_HEALTH_INFORMATION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_HEALTH_INFORMATION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_HEALTH_INFORMATION") @@ -15378,27 +16221,33 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_INFORMATION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_HEALTH_INFORMATION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_HEALTH_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.SourceId == other.SourceId + && self.Property == other.Property + && self.TimeToLiveSeconds == other.TimeToLiveSeconds + && self.State == other.State + && self.Description == other.Description + && self.SequenceNumber == other.SequenceNumber + && self.RemoveWhenExpired == other.RemoveWhenExpired + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_HEALTH_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_HEALTH_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_HEALTH_REPORT { pub Kind: FABRIC_HEALTH_REPORT_KIND, pub Value: *mut ::core::ffi::c_void, @@ -15417,18 +16266,12 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_REPORT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_REPORT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_HEALTH_REPORT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_HEALTH_REPORT {} @@ -15438,16 +16281,21 @@ impl ::core::default::Default for FABRIC_HEALTH_REPORT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_HEALTH_REPORT_SEND_OPTIONS { pub Immediate: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_HEALTH_REPORT_SEND_OPTIONS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_HEALTH_REPORT_SEND_OPTIONS { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_HEALTH_REPORT_SEND_OPTIONS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_HEALTH_REPORT_SEND_OPTIONS") @@ -15456,27 +16304,26 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_REPORT_SEND_OPTIONS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_REPORT_SEND_OPTIONS { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_HEALTH_REPORT_SEND_OPTIONS { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_HEALTH_REPORT_SEND_OPTIONS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Immediate == other.Immediate && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_HEALTH_REPORT_SEND_OPTIONS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_HEALTH_REPORT_SEND_OPTIONS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_HEALTH_STATE_COUNT { pub OkCount: u32, pub WarningCount: u32, @@ -15499,18 +16346,15 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_STATE_COUNT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_STATE_COUNT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_HEALTH_STATE_COUNT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_HEALTH_STATE_COUNT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.OkCount == other.OkCount + && self.WarningCount == other.WarningCount + && self.ErrorCount == other.ErrorCount + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_HEALTH_STATE_COUNT {} @@ -15520,6 +16364,7 @@ impl ::core::default::Default for FABRIC_HEALTH_STATE_COUNT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_HEALTH_STATISTICS { pub Count: u32, pub Items: *const FABRIC_ENTITY_KIND_HEALTH_STATE_COUNT, @@ -15540,18 +16385,12 @@ impl ::core::fmt::Debug for FABRIC_HEALTH_STATISTICS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_HEALTH_STATISTICS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_HEALTH_STATISTICS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_HEALTH_STATISTICS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_HEALTH_STATISTICS {} @@ -15561,8 +16400,9 @@ impl ::core::default::Default for FABRIC_HEALTH_STATISTICS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_INT64_RANGE_PARTITION_INFORMATION { - pub Id: ::windows::core::GUID, + pub Id: ::windows_core::GUID, pub LowKey: i64, pub HighKey: i64, pub Reserved: *mut ::core::ffi::c_void, @@ -15583,18 +16423,15 @@ impl ::core::fmt::Debug for FABRIC_INT64_RANGE_PARTITION_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_INT64_RANGE_PARTITION_INFORMATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_INT64_RANGE_PARTITION_INFORMATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_INT64_RANGE_PARTITION_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Id == other.Id + && self.LowKey == other.LowKey + && self.HighKey == other.HighKey + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_INT64_RANGE_PARTITION_INFORMATION {} @@ -15604,17 +16441,22 @@ impl ::core::default::Default for FABRIC_INT64_RANGE_PARTITION_INFORMATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_ITEM { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_ITEM { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_KEY_VALUE_STORE_ITEM") @@ -15624,40 +16466,45 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_ITEM { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_ITEM { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Metadata == other.Metadata + && self.Value == other.Value + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_ITEM { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - pub Key: ::windows::core::PCWSTR, + pub Key: ::windows_core::PCWSTR, pub ValueSizeInBytes: i32, pub SequenceNumber: i64, pub LastModifiedUtc: ::windows::Win32::Foundation::FILETIME, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_ITEM_METADATA {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_KEY_VALUE_STORE_ITEM_METADATA") @@ -15669,37 +16516,44 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Key == other.Key + && self.ValueSizeInBytes == other.ValueSizeInBytes + && self.SequenceNumber == other.SequenceNumber + && self.LastModifiedUtc == other.LastModifiedUtc + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_ITEM_METADATA {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_ITEM_METADATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { pub LastModifiedOnPrimaryUtc: ::windows::Win32::Foundation::FILETIME, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1") @@ -15708,27 +16562,27 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.LastModifiedOnPrimaryUtc == other.LastModifiedOnPrimaryUtc + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_ITEM_METADATA_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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, @@ -15751,18 +16605,15 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CurrentPhase == other.CurrentPhase + && self.State == other.State + && self.NextPhase == other.NextPhase + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT {} @@ -15772,6 +16623,7 @@ impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_MIGRATION_QUERY_RESULT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { pub TransactionDrainTimeoutInSeconds: u32, pub SecondaryNotificationMode: FABRIC_KEY_VALUE_STORE_NOTIFICATION_MODE, @@ -15795,18 +16647,14 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.TransactionDrainTimeoutInSeconds == other.TransactionDrainTimeoutInSeconds + && self.SecondaryNotificationMode == other.SecondaryNotificationMode + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS {} @@ -15816,16 +16664,21 @@ impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { pub EnableCopyNotificationPrefetch: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1") @@ -15837,27 +16690,27 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.EnableCopyNotificationPrefetch == other.EnableCopyNotificationPrefetch + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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, @@ -15876,18 +16729,12 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.FullCopyMode == other.FullCopyMode && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 {} @@ -15897,6 +16744,7 @@ impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { pub LogTruncationIntervalInMinutes: i32, pub Reserved: *mut ::core::ffi::c_void, @@ -15918,18 +16766,13 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.LogTruncationIntervalInMinutes == other.LogTruncationIntervalInMinutes + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 {} @@ -15939,16 +16782,21 @@ impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_REPLICA_SETTINGS_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { pub InlineReopen: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS") @@ -15957,37 +16805,40 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.InlineReopen == other.InlineReopen && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { pub EnableLsnCheck: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1") @@ -15996,33 +16847,32 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.EnableLsnCheck == other.EnableLsnCheck && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_RESTORE_SETTINGS_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { pub DatabaseRowCountEstimate: i64, pub DatabaseLogicalSizeEstimate: i64, - pub CopyNotificationCurrentKeyFilter: ::windows::core::PCWSTR, + pub CopyNotificationCurrentKeyFilter: ::windows_core::PCWSTR, pub CopyNotificationCurrentProgress: i64, - pub StatusDetails: ::windows::core::PCWSTR, + pub StatusDetails: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT {} @@ -16052,18 +16902,17 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.DatabaseRowCountEstimate == other.DatabaseRowCountEstimate + && self.DatabaseLogicalSizeEstimate == other.DatabaseLogicalSizeEstimate + && self.CopyNotificationCurrentKeyFilter == other.CopyNotificationCurrentKeyFilter + && self.CopyNotificationCurrentProgress == other.CopyNotificationCurrentProgress + && self.StatusDetails == other.StatusDetails + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT {} @@ -16073,6 +16922,7 @@ impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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, @@ -16093,18 +16943,14 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ProviderKind == other.ProviderKind + && self.MigrationStatus == other.MigrationStatus + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 {} @@ -16114,6 +16960,7 @@ impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_STATUS_QUERY_RESULT_EX1 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { pub SerializationBlockSize: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -16132,18 +16979,13 @@ impl ::core::fmt::Debug for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.SerializationBlockSize == other.SerializationBlockSize + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS {} @@ -16153,8 +16995,9 @@ impl ::core::default::Default for FABRIC_KEY_VALUE_STORE_TRANSACTION_SETTINGS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_LOAD_METRIC { - pub Name: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, pub Value: u32, pub Reserved: *mut ::core::ffi::c_void, } @@ -16173,18 +17016,12 @@ impl ::core::fmt::Debug for FABRIC_LOAD_METRIC { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name && self.Value == other.Value && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_LOAD_METRIC {} @@ -16194,22 +17031,27 @@ impl ::core::default::Default for FABRIC_LOAD_METRIC { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_LOAD_METRIC_INFORMATION { - pub Name: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, pub IsBalancedBefore: ::windows::Win32::Foundation::BOOLEAN, pub IsBalancedAfter: ::windows::Win32::Foundation::BOOLEAN, pub DeviationBefore: f64, pub DeviationAfter: f64, pub BalancingThreshold: f64, - pub Action: ::windows::core::PCWSTR, + pub Action: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION") @@ -16224,27 +17066,33 @@ impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_INFORMATION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.IsBalancedBefore == other.IsBalancedBefore + && self.IsBalancedAfter == other.IsBalancedAfter + && self.DeviationBefore == other.DeviationBefore + && self.DeviationAfter == other.DeviationAfter + && self.BalancingThreshold == other.BalancingThreshold + && self.Action == other.Action + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_LOAD_METRIC_INFORMATION_EX1 { pub ActivityThreshold: u32, pub ClusterCapacity: i64, @@ -16267,18 +17115,15 @@ impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_INFORMATION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ActivityThreshold == other.ActivityThreshold + && self.ClusterCapacity == other.ClusterCapacity + && self.ClusterLoad == other.ClusterLoad + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION_EX1 {} @@ -16288,6 +17133,8 @@ impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_LOAD_METRIC_INFORMATION_EX2 { pub RemainingUnbufferedCapacity: i64, pub NodeBufferPercentage: f64, @@ -16300,12 +17147,15 @@ pub struct FABRIC_LOAD_METRIC_INFORMATION_EX2 { pub MaxNodeLoadNodeId: FABRIC_NODE_ID, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION_EX2 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_EX2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION_EX2") @@ -16328,27 +17178,35 @@ impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_INFORMATION_EX2 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION_EX2 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.RemainingUnbufferedCapacity == other.RemainingUnbufferedCapacity + && self.NodeBufferPercentage == other.NodeBufferPercentage + && self.BufferedCapacity == other.BufferedCapacity + && self.RemainingBufferedCapacity == other.RemainingBufferedCapacity + && self.IsClusterCapacityViolation == other.IsClusterCapacityViolation + && self.MinNodeLoadValue == other.MinNodeLoadValue + && self.MinNodeLoadNodeId == other.MinNodeLoadNodeId + && self.MaxNodeLoadValue == other.MaxNodeLoadValue + && self.MaxNodeLoadNodeId == other.MaxNodeLoadNodeId + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION_EX2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_LOAD_METRIC_INFORMATION_EX3 { pub CurrentClusterLoad: f64, pub BufferedClusterCapacityRemaining: f64, @@ -16378,18 +17236,17 @@ impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_INFORMATION_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CurrentClusterLoad == other.CurrentClusterLoad + && self.BufferedClusterCapacityRemaining == other.BufferedClusterCapacityRemaining + && self.ClusterCapacityRemaining == other.ClusterCapacityRemaining + && self.MaximumNodeLoad == other.MaximumNodeLoad + && self.MinimumNodeLoad == other.MinimumNodeLoad + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION_EX3 {} @@ -16399,16 +17256,21 @@ impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_LOAD_METRIC_INFORMATION_LIST { pub Count: u32, pub Items: *mut FABRIC_LOAD_METRIC_INFORMATION, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_LOAD_METRIC_INFORMATION_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_LOAD_METRIC_INFORMATION_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_LOAD_METRIC_INFORMATION_LIST") @@ -16417,39 +17279,42 @@ impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_INFORMATION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_INFORMATION_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_INFORMATION_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_INFORMATION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_INFORMATION_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_LOAD_METRIC_INFORMATION_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_LOAD_METRIC_REPORT { - pub Name: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, pub Value: u32, pub LastReportedUtc: ::windows::Win32::Foundation::FILETIME, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_LOAD_METRIC_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_LOAD_METRIC_REPORT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_REPORT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_LOAD_METRIC_REPORT") @@ -16460,27 +17325,29 @@ impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_REPORT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_REPORT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_REPORT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_REPORT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.Value == other.Value + && self.LastReportedUtc == other.LastReportedUtc + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_LOAD_METRIC_REPORT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_LOAD_METRIC_REPORT_EX1 { pub CurrentValue: f64, pub Reserved: *mut ::core::ffi::c_void, @@ -16499,18 +17366,12 @@ impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_REPORT_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_REPORT_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_REPORT_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_REPORT_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CurrentValue == other.CurrentValue && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_REPORT_EX1 {} @@ -16520,16 +17381,21 @@ impl ::core::default::Default for FABRIC_LOAD_METRIC_REPORT_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_LOAD_METRIC_REPORT_LIST { pub Count: u32, pub Items: *mut FABRIC_LOAD_METRIC_REPORT, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_LOAD_METRIC_REPORT_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_LOAD_METRIC_REPORT_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_REPORT_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_LOAD_METRIC_REPORT_LIST") @@ -16538,29 +17404,28 @@ impl ::core::fmt::Debug for FABRIC_LOAD_METRIC_REPORT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_LOAD_METRIC_REPORT_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_LOAD_METRIC_REPORT_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_LOAD_METRIC_REPORT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_LOAD_METRIC_REPORT_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_LOAD_METRIC_REPORT_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { - pub NetworkAddressPrefix: ::windows::core::PCWSTR, + pub NetworkAddressPrefix: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION {} @@ -16577,18 +17442,12 @@ impl ::core::fmt::Debug for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NetworkAddressPrefix == other.NetworkAddressPrefix && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION {} @@ -16598,6 +17457,7 @@ impl ::core::default::Default for FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_LOCAL_NETWORK_DESCRIPTION { pub NetworkConfiguration: *const FABRIC_LOCAL_NETWORK_CONFIGURATION_DESCRIPTION, pub Reserved: *mut ::core::ffi::c_void, @@ -16616,18 +17476,12 @@ impl ::core::fmt::Debug for FABRIC_LOCAL_NETWORK_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_LOCAL_NETWORK_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_LOCAL_NETWORK_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_LOCAL_NETWORK_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NetworkConfiguration == other.NetworkConfiguration && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_LOCAL_NETWORK_DESCRIPTION {} @@ -16637,8 +17491,9 @@ impl ::core::default::Default for FABRIC_LOCAL_NETWORK_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_LOCAL_NETWORK_INFORMATION { - pub NetworkName: ::windows::core::PCWSTR, + 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, @@ -16659,18 +17514,15 @@ impl ::core::fmt::Debug for FABRIC_LOCAL_NETWORK_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_LOCAL_NETWORK_INFORMATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_LOCAL_NETWORK_INFORMATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_LOCAL_NETWORK_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NetworkName == other.NetworkName + && self.NetworkConfiguration == other.NetworkConfiguration + && self.NetworkStatus == other.NetworkStatus + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_LOCAL_NETWORK_INFORMATION {} @@ -16680,6 +17532,7 @@ impl ::core::default::Default for FABRIC_LOCAL_NETWORK_INFORMATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_MOVE_PRIMARY_DESCRIPTION2 { pub Kind: FABRIC_MOVE_PRIMARY_DESCRIPTION_KIND, pub Value: *mut ::core::ffi::c_void, @@ -16698,18 +17551,12 @@ impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_MOVE_PRIMARY_DESCRIPTION2 {} @@ -16719,19 +17566,24 @@ impl ::core::default::Default for FABRIC_MOVE_PRIMARY_DESCRIPTION2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub IgnoreConstraints: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME") @@ -16743,31 +17595,34 @@ impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.IgnoreConstraints == other.IgnoreConstraints + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_MOVE_PRIMARY_DESCRIPTION_USING_NODE_NAME { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_MOVE_PRIMARY_RESULT { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_MOVE_PRIMARY_RESULT {} @@ -16786,18 +17641,15 @@ impl ::core::fmt::Debug for FABRIC_MOVE_PRIMARY_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_MOVE_PRIMARY_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_MOVE_PRIMARY_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_MOVE_PRIMARY_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_MOVE_PRIMARY_RESULT {} @@ -16807,6 +17659,7 @@ impl ::core::default::Default for FABRIC_MOVE_PRIMARY_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_MOVE_SECONDARY_DESCRIPTION2 { pub Kind: FABRIC_MOVE_SECONDARY_DESCRIPTION_KIND, pub Value: *mut ::core::ffi::c_void, @@ -16825,18 +17678,12 @@ impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_MOVE_SECONDARY_DESCRIPTION2 {} @@ -16846,20 +17693,25 @@ impl ::core::default::Default for FABRIC_MOVE_SECONDARY_DESCRIPTION2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { - pub CurrentNodeName: ::windows::core::PCWSTR, - pub NewNodeName: ::windows::core::PCWSTR, + pub CurrentNodeName: ::windows_core::PCWSTR, + pub NewNodeName: ::windows_core::PCWSTR, pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub IgnoreConstraints: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME") @@ -16872,32 +17724,36 @@ impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CurrentNodeName == other.CurrentNodeName + && self.NewNodeName == other.NewNodeName + && self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.IgnoreConstraints == other.IgnoreConstraints + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_MOVE_SECONDARY_DESCRIPTION_USING_NODE_NAME { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_MOVE_SECONDARY_RESULT { - pub CurrentNodeName: ::windows::core::PCWSTR, - pub NewNodeName: ::windows::core::PCWSTR, + pub CurrentNodeName: ::windows_core::PCWSTR, + pub NewNodeName: ::windows_core::PCWSTR, pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_MOVE_SECONDARY_RESULT {} @@ -16917,18 +17773,16 @@ impl ::core::fmt::Debug for FABRIC_MOVE_SECONDARY_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_MOVE_SECONDARY_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_MOVE_SECONDARY_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_MOVE_SECONDARY_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CurrentNodeName == other.CurrentNodeName + && self.NewNodeName == other.NewNodeName + && self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_MOVE_SECONDARY_RESULT {} @@ -16938,9 +17792,10 @@ impl ::core::default::Default for FABRIC_MOVE_SECONDARY_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NAMED_PARTITION_INFORMATION { - pub Id: ::windows::core::GUID, - pub Name: ::windows::core::PCWSTR, + pub Id: ::windows_core::GUID, + pub Name: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_NAMED_PARTITION_INFORMATION {} @@ -16958,18 +17813,12 @@ impl ::core::fmt::Debug for FABRIC_NAMED_PARTITION_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NAMED_PARTITION_INFORMATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NAMED_PARTITION_INFORMATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NAMED_PARTITION_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Id == other.Id && self.Name == other.Name && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NAMED_PARTITION_INFORMATION {} @@ -16979,9 +17828,10 @@ impl ::core::default::Default for FABRIC_NAMED_PARTITION_INFORMATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { pub PartitionCount: i32, - pub Names: *const ::windows::core::PWSTR, + pub Names: *const ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION {} @@ -16999,18 +17849,14 @@ impl ::core::fmt::Debug for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionCount == other.PartitionCount + && self.Names == other.Names + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION {} @@ -17020,17 +17866,22 @@ impl ::core::default::Default for FABRIC_NAMED_PARTITION_SCHEME_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_NAMED_PROPERTY { pub Metadata: *const FABRIC_NAMED_PROPERTY_METADATA, pub Value: *mut u8, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_NAMED_PROPERTY {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_NAMED_PROPERTY { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_NAMED_PROPERTY { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_NAMED_PROPERTY") @@ -17040,29 +17891,31 @@ impl ::core::fmt::Debug for FABRIC_NAMED_PROPERTY { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NAMED_PROPERTY { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_NAMED_PROPERTY { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_NAMED_PROPERTY { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Metadata == other.Metadata + && self.Value == other.Value + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_NAMED_PROPERTY {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_NAMED_PROPERTY { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_NAMED_PROPERTY_METADATA { - pub PropertyName: ::windows::core::PCWSTR, + pub PropertyName: ::windows_core::PCWSTR, pub TypeId: FABRIC_PROPERTY_TYPE_ID, pub ValueSize: i32, pub SequenceNumber: i64, @@ -17070,12 +17923,15 @@ pub struct FABRIC_NAMED_PROPERTY_METADATA { pub Name: *mut u16, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_NAMED_PROPERTY_METADATA {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_NAMED_PROPERTY_METADATA { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_NAMED_PROPERTY_METADATA { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_NAMED_PROPERTY_METADATA") @@ -17089,29 +17945,34 @@ impl ::core::fmt::Debug for FABRIC_NAMED_PROPERTY_METADATA { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NAMED_PROPERTY_METADATA { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_NAMED_PROPERTY_METADATA { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_NAMED_PROPERTY_METADATA { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PropertyName == other.PropertyName + && self.TypeId == other.TypeId + && self.ValueSize == other.ValueSize + && self.SequenceNumber == other.SequenceNumber + && self.LastModifiedUtc == other.LastModifiedUtc + && self.Name == other.Name + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_NAMED_PROPERTY_METADATA {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_NAMED_PROPERTY_METADATA { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NAMED_PROPERTY_METADATA_EX1 { - pub CustomTypeId: ::windows::core::PCWSTR, + pub CustomTypeId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_NAMED_PROPERTY_METADATA_EX1 {} @@ -17128,18 +17989,12 @@ impl ::core::fmt::Debug for FABRIC_NAMED_PROPERTY_METADATA_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NAMED_PROPERTY_METADATA_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NAMED_PROPERTY_METADATA_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NAMED_PROPERTY_METADATA_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CustomTypeId == other.CustomTypeId && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NAMED_PROPERTY_METADATA_EX1 {} @@ -17149,11 +18004,12 @@ impl ::core::default::Default for FABRIC_NAMED_PROPERTY_METADATA_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NAMED_REPARTITION_DESCRIPTION { pub NamesToAddCount: u32, - pub NamesToAdd: *const ::windows::core::PWSTR, + pub NamesToAdd: *const ::windows_core::PCWSTR, pub NamesToRemoveCount: u32, - pub NamesToRemove: *const ::windows::core::PWSTR, + pub NamesToRemove: *const ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_NAMED_REPARTITION_DESCRIPTION {} @@ -17173,18 +18029,16 @@ impl ::core::fmt::Debug for FABRIC_NAMED_REPARTITION_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NAMED_REPARTITION_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NAMED_REPARTITION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NAMED_REPARTITION_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NamesToAddCount == other.NamesToAddCount + && self.NamesToAdd == other.NamesToAdd + && self.NamesToRemoveCount == other.NamesToRemoveCount + && self.NamesToRemove == other.NamesToRemove + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NAMED_REPARTITION_DESCRIPTION {} @@ -17194,8 +18048,9 @@ impl ::core::default::Default for FABRIC_NAMED_REPARTITION_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { - pub NetworkName: ::windows::core::PCWSTR, + pub NetworkName: ::windows_core::PCWSTR, pub ApplicationNameFilter: *mut u16, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut ::core::ffi::c_void, @@ -17216,18 +18071,15 @@ impl ::core::fmt::Debug for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NetworkName == other.NetworkName + && self.ApplicationNameFilter == other.ApplicationNameFilter + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION {} @@ -17237,8 +18089,9 @@ impl ::core::default::Default for FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { - pub ApplicationName: ::windows::core::PCWSTR, + pub ApplicationName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM {} @@ -17255,18 +18108,12 @@ impl ::core::fmt::Debug for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM {} @@ -17276,6 +18123,7 @@ impl ::core::default::Default for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_NETWORK_APPLICATION_QUERY_RESULT_ITEM, @@ -17294,18 +18142,12 @@ impl ::core::fmt::Debug for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST {} @@ -17315,6 +18157,7 @@ impl ::core::default::Default for FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NETWORK_DESCRIPTION { pub NetworkType: FABRIC_NETWORK_TYPE, pub Value: *mut ::core::ffi::c_void, @@ -17333,18 +18176,12 @@ impl ::core::fmt::Debug for FABRIC_NETWORK_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NETWORK_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NETWORK_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NetworkType == other.NetworkType && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_NETWORK_DESCRIPTION {} @@ -17354,6 +18191,7 @@ impl ::core::default::Default for FABRIC_NETWORK_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NETWORK_INFORMATION { pub NetworkType: FABRIC_NETWORK_TYPE, pub Value: *mut ::core::ffi::c_void, @@ -17372,18 +18210,12 @@ impl ::core::fmt::Debug for FABRIC_NETWORK_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_INFORMATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NETWORK_INFORMATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NETWORK_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NetworkType == other.NetworkType && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_NETWORK_INFORMATION {} @@ -17393,9 +18225,10 @@ impl ::core::default::Default for FABRIC_NETWORK_INFORMATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { - pub NetworkName: ::windows::core::PCWSTR, - pub NodeNameFilter: ::windows::core::PCWSTR, + pub NetworkName: ::windows_core::PCWSTR, + pub NodeNameFilter: ::windows_core::PCWSTR, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut ::core::ffi::c_void, } @@ -17415,18 +18248,15 @@ impl ::core::fmt::Debug for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NetworkName == other.NetworkName + && self.NodeNameFilter == other.NodeNameFilter + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION {} @@ -17436,8 +18266,9 @@ impl ::core::default::Default for FABRIC_NETWORK_NODE_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM {} @@ -17454,18 +18285,12 @@ impl ::core::fmt::Debug for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM {} @@ -17475,6 +18300,7 @@ impl ::core::default::Default for FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_NETWORK_NODE_QUERY_RESULT_ITEM, @@ -17493,18 +18319,12 @@ impl ::core::fmt::Debug for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST {} @@ -17514,8 +18334,9 @@ impl ::core::default::Default for FABRIC_NETWORK_NODE_QUERY_RESULT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NETWORK_QUERY_DESCRIPTION { - pub NetworkNameFilter: ::windows::core::PCWSTR, + pub NetworkNameFilter: ::windows_core::PCWSTR, pub NetworkStatusFilter: u32, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut ::core::ffi::c_void, @@ -17536,18 +18357,15 @@ impl ::core::fmt::Debug for FABRIC_NETWORK_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NETWORK_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NETWORK_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NetworkNameFilter == other.NetworkNameFilter + && self.NetworkStatusFilter == other.NetworkStatusFilter + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NETWORK_QUERY_DESCRIPTION {} @@ -17557,6 +18375,7 @@ impl ::core::default::Default for FABRIC_NETWORK_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NETWORK_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_NETWORK_INFORMATION, @@ -17575,18 +18394,12 @@ impl ::core::fmt::Debug for FABRIC_NETWORK_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NETWORK_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NETWORK_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NETWORK_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_NETWORK_QUERY_RESULT_LIST {} @@ -17596,8 +18409,9 @@ impl ::core::default::Default for FABRIC_NETWORK_QUERY_RESULT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODES_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub TotalCount: u32, @@ -17622,18 +18436,17 @@ impl ::core::fmt::Debug for FABRIC_NODES_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODES_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODES_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODES_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyNodes == other.MaxPercentUnhealthyNodes + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODES_HEALTH_EVALUATION {} @@ -17643,10 +18456,11 @@ impl ::core::default::Default for FABRIC_NODES_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_CONTEXT { - pub NodeName: ::windows::core::PCWSTR, - pub NodeType: ::windows::core::PCWSTR, - pub IPAddressOrFQDN: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, + pub NodeType: ::windows_core::PCWSTR, + pub IPAddressOrFQDN: ::windows_core::PCWSTR, pub NodeInstanceId: u64, pub NodeId: FABRIC_NODE_ID, pub Reserved: *mut ::core::ffi::c_void, @@ -17669,18 +18483,17 @@ impl ::core::fmt::Debug for FABRIC_NODE_CONTEXT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_CONTEXT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_CONTEXT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_CONTEXT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.NodeType == other.NodeType + && self.IPAddressOrFQDN == other.IPAddressOrFQDN + && self.NodeInstanceId == other.NodeInstanceId + && self.NodeId == other.NodeId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_CONTEXT {} @@ -17690,6 +18503,7 @@ impl ::core::default::Default for FABRIC_NODE_CONTEXT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { pub EffectiveIntent: FABRIC_NODE_DEACTIVATION_INTENT, pub Status: FABRIC_NODE_DEACTIVATION_STATUS, @@ -17712,18 +18526,15 @@ impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.EffectiveIntent == other.EffectiveIntent + && self.Status == other.Status + && self.Tasks == other.Tasks + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM {} @@ -17733,6 +18544,7 @@ impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { pub PendingSafetyChecks: *const FABRIC_SAFETY_CHECK_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -17751,18 +18563,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PendingSafetyChecks == other.PendingSafetyChecks && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 {} @@ -17772,6 +18578,7 @@ impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM_EX1 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_DEACTIVATION_TASK { pub TaskId: *const FABRIC_NODE_DEACTIVATION_TASK_ID, pub Intent: FABRIC_NODE_DEACTIVATION_INTENT, @@ -17792,18 +18599,14 @@ impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_TASK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_TASK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_TASK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.TaskId == other.TaskId + && self.Intent == other.Intent + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_TASK {} @@ -17813,8 +18616,9 @@ impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_TASK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_DEACTIVATION_TASK_ID { - pub Id: ::windows::core::PCWSTR, + pub Id: ::windows_core::PCWSTR, pub Type: FABRIC_NODE_DEACTIVATION_TASK_TYPE, pub Reserved: *mut ::core::ffi::c_void, } @@ -17833,18 +18637,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK_ID { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_TASK_ID { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_TASK_ID { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_TASK_ID { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Id == other.Id && self.Type == other.Type && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_TASK_ID {} @@ -17854,6 +18652,7 @@ impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_TASK_ID { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_DEACTIVATION_TASK_LIST { pub Count: u32, pub Items: *const FABRIC_NODE_DEACTIVATION_TASK, @@ -17872,18 +18671,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_DEACTIVATION_TASK_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_DEACTIVATION_TASK_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_DEACTIVATION_TASK_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_DEACTIVATION_TASK_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_NODE_DEACTIVATION_TASK_LIST {} @@ -17893,18 +18686,23 @@ impl ::core::default::Default for FABRIC_NODE_DEACTIVATION_TASK_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_NODE_HEALTH { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_NODE_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_NODE_HEALTH { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_NODE_HEALTH { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_NODE_HEALTH") @@ -17915,30 +18713,32 @@ impl ::core::fmt::Debug for FABRIC_NODE_HEALTH { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_NODE_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_NODE_HEALTH { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -17960,18 +18760,16 @@ impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_EVALUATION {} @@ -17981,6 +18779,7 @@ impl ::core::default::Default for FABRIC_NODE_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -17999,18 +18798,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UnhealthyEvaluations == other.UnhealthyEvaluations && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_EX1 {} @@ -18020,18 +18813,23 @@ impl ::core::default::Default for FABRIC_NODE_HEALTH_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_NODE_HEALTH_QUERY_DESCRIPTION") @@ -18042,38 +18840,44 @@ impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_NODE_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_NODE_HEALTH_REPORT { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_NODE_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_NODE_HEALTH_REPORT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_REPORT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_NODE_HEALTH_REPORT") @@ -18083,29 +18887,30 @@ impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_REPORT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_REPORT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_REPORT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_NODE_HEALTH_REPORT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_HEALTH_STATE { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut ::core::ffi::c_void, } @@ -18124,18 +18929,14 @@ impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE {} @@ -18145,6 +18946,7 @@ impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -18163,18 +18965,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATES_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATES_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATES_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATES_FILTER {} @@ -18184,8 +18980,9 @@ impl ::core::default::Default for FABRIC_NODE_HEALTH_STATES_FILTER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_HEALTH_STATE_CHUNK { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub HealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut ::core::ffi::c_void, } @@ -18204,18 +19001,14 @@ impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_CHUNK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATE_CHUNK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_CHUNK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.HealthState == other.HealthState + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_CHUNK {} @@ -18225,6 +19018,7 @@ impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_CHUNK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_NODE_HEALTH_STATE_CHUNK, @@ -18247,18 +19041,15 @@ impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST {} @@ -18268,9 +19059,10 @@ impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_CHUNK_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, - pub NodeNameFilter: ::windows::core::PCWSTR, + pub NodeNameFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_NODE_HEALTH_STATE_FILTER {} @@ -18288,18 +19080,14 @@ impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATE_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter + && self.NodeNameFilter == other.NodeNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_FILTER {} @@ -18309,6 +19097,7 @@ impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_FILTER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_NODE_HEALTH_STATE_FILTER, @@ -18327,18 +19116,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_FILTER_LIST {} @@ -18348,6 +19131,7 @@ impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_FILTER_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_NODE_HEALTH_STATE, @@ -18366,18 +19150,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_HEALTH_STATE_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_HEALTH_STATE_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_HEALTH_STATE_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_NODE_HEALTH_STATE_LIST {} @@ -18387,6 +19165,7 @@ impl ::core::default::Default for FABRIC_NODE_HEALTH_STATE_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_ID { pub Low: u64, pub High: u64, @@ -18407,18 +19186,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_ID { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_ID { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_ID { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_ID { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Low == other.Low && self.High == other.High && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_ID {} @@ -18428,17 +19201,22 @@ impl ::core::default::Default for FABRIC_NODE_ID { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_NODE_LOAD_INFORMATION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub NodeLoadMetricInformation: *const FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_NODE_LOAD_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_NODE_LOAD_INFORMATION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_NODE_LOAD_INFORMATION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_NODE_LOAD_INFORMATION") @@ -18448,29 +19226,30 @@ impl ::core::fmt::Debug for FABRIC_NODE_LOAD_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_LOAD_INFORMATION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_NODE_LOAD_INFORMATION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.NodeLoadMetricInformation == other.NodeLoadMetricInformation + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_NODE_LOAD_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_NODE_LOAD_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION {} @@ -18487,18 +19266,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION {} @@ -18508,20 +19281,25 @@ impl ::core::default::Default for FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION { - pub Name: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, pub NodeCapacity: i64, pub NodeLoad: i64, pub NodeRemainingCapacity: i64, pub IsCapacityViolation: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_NODE_LOAD_METRIC_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_NODE_LOAD_METRIC_INFORMATION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_NODE_LOAD_METRIC_INFORMATION") @@ -18534,27 +19312,31 @@ impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_LOAD_METRIC_INFORMATION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_NODE_LOAD_METRIC_INFORMATION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_METRIC_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.NodeCapacity == other.NodeCapacity + && self.NodeLoad == other.NodeLoad + && self.NodeRemainingCapacity == other.NodeRemainingCapacity + && self.IsCapacityViolation == other.IsCapacityViolation + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_NODE_LOAD_METRIC_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_NODE_LOAD_METRIC_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { pub NodeBufferedCapacity: i64, pub NodeRemainingBufferedCapacity: i64, @@ -18578,18 +19360,14 @@ impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeBufferedCapacity == other.NodeBufferedCapacity + && self.NodeRemainingBufferedCapacity == other.NodeRemainingBufferedCapacity + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 {} @@ -18599,6 +19377,7 @@ impl ::core::default::Default for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { pub CurrentNodeLoad: f64, pub NodeCapacityRemaining: f64, @@ -18624,18 +19403,15 @@ impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CurrentNodeLoad == other.CurrentNodeLoad + && self.NodeCapacityRemaining == other.NodeCapacityRemaining + && self.BufferedNodeCapacityRemaining == other.BufferedNodeCapacityRemaining + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 {} @@ -18645,16 +19421,21 @@ impl ::core::default::Default for FABRIC_NODE_LOAD_METRIC_INFORMATION_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { pub Count: u32, pub Items: *mut FABRIC_NODE_LOAD_METRIC_INFORMATION, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST") @@ -18663,29 +19444,28 @@ impl ::core::fmt::Debug for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_NODE_LOAD_METRIC_INFORMATION_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_QUERY_DESCRIPTION { - pub NodeNameFilter: ::windows::core::PCWSTR, + pub NodeNameFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_NODE_QUERY_DESCRIPTION {} @@ -18702,18 +19482,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeNameFilter == other.NodeNameFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_QUERY_DESCRIPTION {} @@ -18723,8 +19497,9 @@ impl ::core::default::Default for FABRIC_NODE_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_QUERY_DESCRIPTION_EX1 { - pub ContinuationToken: ::windows::core::PCWSTR, + pub ContinuationToken: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_NODE_QUERY_DESCRIPTION_EX1 {} @@ -18741,18 +19516,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ContinuationToken == other.ContinuationToken && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_QUERY_DESCRIPTION_EX1 {} @@ -18762,6 +19531,7 @@ impl ::core::default::Default for FABRIC_NODE_QUERY_DESCRIPTION_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_QUERY_DESCRIPTION_EX2 { pub NodeStatusFilter: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -18780,18 +19550,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeStatusFilter == other.NodeStatusFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_QUERY_DESCRIPTION_EX2 {} @@ -18801,6 +19565,7 @@ impl ::core::default::Default for FABRIC_NODE_QUERY_DESCRIPTION_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_QUERY_DESCRIPTION_EX3 { pub MaxResults: i32, pub Reserved: *mut ::core::ffi::c_void, @@ -18819,18 +19584,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MaxResults == other.MaxResults && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_QUERY_DESCRIPTION_EX3 {} @@ -18840,26 +19599,31 @@ impl ::core::default::Default for FABRIC_NODE_QUERY_DESCRIPTION_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_NODE_QUERY_RESULT_ITEM { - pub NodeName: ::windows::core::PCWSTR, - pub IpAddressOrFQDN: ::windows::core::PCWSTR, - pub NodeType: ::windows::core::PCWSTR, - pub CodeVersion: ::windows::core::PCWSTR, - pub ConfigVersion: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, + pub IpAddressOrFQDN: ::windows_core::PCWSTR, + pub NodeType: ::windows_core::PCWSTR, + pub CodeVersion: ::windows_core::PCWSTR, + pub ConfigVersion: ::windows_core::PCWSTR, pub NodeStatus: FABRIC_QUERY_NODE_STATUS, pub NodeUpTimeInSeconds: i64, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub IsSeedNode: ::windows::Win32::Foundation::BOOLEAN, - pub UpgradeDomain: ::windows::core::PCWSTR, + pub UpgradeDomain: ::windows_core::PCWSTR, pub FaultDomain: *mut u16, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM") @@ -18878,27 +19642,37 @@ impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} + self.NodeName == other.NodeName + && self.IpAddressOrFQDN == other.IpAddressOrFQDN + && self.NodeType == other.NodeType + && self.CodeVersion == other.CodeVersion + && self.ConfigVersion == other.ConfigVersion + && self.NodeStatus == other.NodeStatus + && self.NodeUpTimeInSeconds == other.NodeUpTimeInSeconds + && self.AggregatedHealthState == other.AggregatedHealthState + && self.IsSeedNode == other.IsSeedNode + && self.UpgradeDomain == other.UpgradeDomain + && self.FaultDomain == other.FaultDomain + && self.Reserved == other.Reserved + } +} +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { pub NodeId: FABRIC_NODE_ID, pub Reserved: *mut ::core::ffi::c_void, @@ -18917,18 +19691,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeId == other.NodeId && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 {} @@ -18938,6 +19706,7 @@ impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { pub NodeInstanceId: u64, pub Reserved: *mut ::core::ffi::c_void, @@ -18956,18 +19725,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeInstanceId == other.NodeInstanceId && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 {} @@ -18977,6 +19740,7 @@ impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { pub NodeDeactivationInfo: *const FABRIC_NODE_DEACTIVATION_QUERY_RESULT_ITEM, pub Reserved: *mut ::core::ffi::c_void, @@ -18995,18 +19759,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeDeactivationInfo == other.NodeDeactivationInfo && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 {} @@ -19016,16 +19774,21 @@ impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { pub IsStopped: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX4") @@ -19034,27 +19797,26 @@ impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.IsStopped == other.IsStopped && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX4 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { pub NodeDownTimeInSeconds: i64, pub Reserved: *mut ::core::ffi::c_void, @@ -19073,18 +19835,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeDownTimeInSeconds == other.NodeDownTimeInSeconds && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 {} @@ -19094,17 +19850,22 @@ impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX5 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_NODE_QUERY_RESULT_ITEM_EX6") @@ -19114,37 +19875,42 @@ impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeUpAt == other.NodeUpAt + && self.NodeDownAt == other.NodeDownAt + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_ITEM_EX6 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_NODE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_NODE_QUERY_RESULT_ITEM, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_NODE_QUERY_RESULT_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_NODE_QUERY_RESULT_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_NODE_QUERY_RESULT_LIST") @@ -19153,29 +19919,28 @@ impl ::core::fmt::Debug for FABRIC_NODE_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_QUERY_RESULT_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_NODE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_NODE_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_NODE_QUERY_RESULT_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_NODE_QUERY_RESULT_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_RESULT { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub NodeInstance: u64, pub Reserved: *mut ::core::ffi::c_void, } @@ -19194,18 +19959,14 @@ impl ::core::fmt::Debug for FABRIC_NODE_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.NodeInstance == other.NodeInstance + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_RESULT {} @@ -19215,9 +19976,10 @@ impl ::core::default::Default for FABRIC_NODE_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_START_DESCRIPTION { - pub OperationId: ::windows::core::GUID, - pub NodeName: ::windows::core::PCWSTR, + pub OperationId: ::windows_core::GUID, + pub NodeName: ::windows_core::PCWSTR, pub NodeInstanceId: u64, pub Reserved: *mut ::core::ffi::c_void, } @@ -19237,18 +19999,15 @@ impl ::core::fmt::Debug for FABRIC_NODE_START_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_START_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_START_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_START_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.OperationId == other.OperationId + && self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_START_DESCRIPTION {} @@ -19258,9 +20017,10 @@ impl ::core::default::Default for FABRIC_NODE_START_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_STOP_DESCRIPTION { - pub OperationId: ::windows::core::GUID, - pub NodeName: ::windows::core::PCWSTR, + pub OperationId: ::windows_core::GUID, + pub NodeName: ::windows_core::PCWSTR, pub NodeInstanceId: u64, pub StopDurationInSeconds: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -19282,18 +20042,16 @@ impl ::core::fmt::Debug for FABRIC_NODE_STOP_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_STOP_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_STOP_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_STOP_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.OperationId == other.OperationId + && self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.StopDurationInSeconds == other.StopDurationInSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_STOP_DESCRIPTION {} @@ -19303,6 +20061,7 @@ impl ::core::default::Default for FABRIC_NODE_STOP_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_TRANSITION_DESCRIPTION { pub NodeTransitionType: FABRIC_NODE_TRANSITION_TYPE, pub Value: *mut ::core::ffi::c_void, @@ -19321,18 +20080,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_TRANSITION_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_TRANSITION_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_TRANSITION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_TRANSITION_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeTransitionType == other.NodeTransitionType && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_NODE_TRANSITION_DESCRIPTION {} @@ -19342,6 +20095,7 @@ impl ::core::default::Default for FABRIC_NODE_TRANSITION_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_TRANSITION_PROGRESS { pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, pub Result: *mut FABRIC_NODE_TRANSITION_RESULT, @@ -19362,18 +20116,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_TRANSITION_PROGRESS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_TRANSITION_PROGRESS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_TRANSITION_PROGRESS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_TRANSITION_PROGRESS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.State == other.State && self.Result == other.Result && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_TRANSITION_PROGRESS {} @@ -19383,8 +20131,9 @@ impl ::core::default::Default for FABRIC_NODE_TRANSITION_PROGRESS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_TRANSITION_RESULT { - pub ErrorCode: ::windows::core::HRESULT, + pub ErrorCode: ::windows_core::HRESULT, pub NodeResult: *mut FABRIC_NODE_RESULT, pub Reserved: *mut ::core::ffi::c_void, } @@ -19403,18 +20152,14 @@ impl ::core::fmt::Debug for FABRIC_NODE_TRANSITION_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_TRANSITION_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_TRANSITION_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_TRANSITION_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ErrorCode == other.ErrorCode + && self.NodeResult == other.NodeResult + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_TRANSITION_RESULT {} @@ -19424,8 +20169,9 @@ impl ::core::default::Default for FABRIC_NODE_TRANSITION_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_UPGRADE_PROGRESS { - pub NodeName: ::windows::core::PCWSTR, + 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, @@ -19446,18 +20192,15 @@ impl ::core::fmt::Debug for FABRIC_NODE_UPGRADE_PROGRESS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_UPGRADE_PROGRESS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_UPGRADE_PROGRESS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_UPGRADE_PROGRESS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.UpgradePhase == other.UpgradePhase + && self.PendingSafetyChecks == other.PendingSafetyChecks + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_NODE_UPGRADE_PROGRESS {} @@ -19467,6 +20210,7 @@ impl ::core::default::Default for FABRIC_NODE_UPGRADE_PROGRESS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_NODE_UPGRADE_PROGRESS_LIST { pub Count: u32, pub Items: *const FABRIC_NODE_UPGRADE_PROGRESS, @@ -19485,18 +20229,12 @@ impl ::core::fmt::Debug for FABRIC_NODE_UPGRADE_PROGRESS_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_NODE_UPGRADE_PROGRESS_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_NODE_UPGRADE_PROGRESS_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_NODE_UPGRADE_PROGRESS_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_NODE_UPGRADE_PROGRESS_LIST {} @@ -19506,6 +20244,7 @@ impl ::core::default::Default for FABRIC_NODE_UPGRADE_PROGRESS_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_OPERATION_DATA_BUFFER { pub BufferSize: u32, pub Buffer: *mut u8, @@ -19524,18 +20263,12 @@ impl ::core::fmt::Debug for FABRIC_OPERATION_DATA_BUFFER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_OPERATION_DATA_BUFFER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_OPERATION_DATA_BUFFER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_OPERATION_DATA_BUFFER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.BufferSize == other.BufferSize && self.Buffer == other.Buffer } } impl ::core::cmp::Eq for FABRIC_OPERATION_DATA_BUFFER {} @@ -19545,8 +20278,9 @@ impl ::core::default::Default for FABRIC_OPERATION_DATA_BUFFER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_OPERATION_ID { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_OPERATION_ID {} @@ -19563,18 +20297,12 @@ impl ::core::fmt::Debug for FABRIC_OPERATION_ID { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_OPERATION_ID { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_OPERATION_ID { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_OPERATION_ID { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_OPERATION_ID {} @@ -19584,6 +20312,7 @@ impl ::core::default::Default for FABRIC_OPERATION_ID { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_OPERATION_METADATA { pub Type: FABRIC_OPERATION_TYPE, pub SequenceNumber: i64, @@ -19606,18 +20335,15 @@ impl ::core::fmt::Debug for FABRIC_OPERATION_METADATA { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_OPERATION_METADATA { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_OPERATION_METADATA { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_OPERATION_METADATA { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Type == other.Type + && self.SequenceNumber == other.SequenceNumber + && self.AtomicGroupId == other.AtomicGroupId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_OPERATION_METADATA {} @@ -19627,6 +20353,7 @@ impl ::core::default::Default for FABRIC_OPERATION_METADATA { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { pub UpgradeState: FABRIC_UPGRADE_STATE, pub ProgressStatus: u32, @@ -19647,18 +20374,14 @@ impl ::core::fmt::Debug for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UpgradeState == other.UpgradeState + && self.ProgressStatus == other.ProgressStatus + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS {} @@ -19668,8 +20391,9 @@ impl ::core::default::Default for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { - pub ConfigVersion: ::windows::core::PCWSTR, + pub ConfigVersion: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 {} @@ -19686,18 +20410,12 @@ impl ::core::fmt::Debug for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ConfigVersion == other.ConfigVersion && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 {} @@ -19707,8 +20425,9 @@ impl ::core::default::Default for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { - pub Details: ::windows::core::PCWSTR, + pub Details: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 {} @@ -19725,18 +20444,12 @@ impl ::core::fmt::Debug for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Details == other.Details && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 {} @@ -19746,8 +20459,9 @@ impl ::core::default::Default for FABRIC_ORCHESTRATION_UPGRADE_PROGRESS_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PACKAGE_SHARING_POLICY { - pub PackageName: ::windows::core::PCWSTR, + pub PackageName: ::windows_core::PCWSTR, pub Scope: FABRIC_PACKAGE_SHARING_POLICY_SCOPE, pub Reserved: *mut ::core::ffi::c_void, } @@ -19766,18 +20480,14 @@ impl ::core::fmt::Debug for FABRIC_PACKAGE_SHARING_POLICY { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PACKAGE_SHARING_POLICY { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PACKAGE_SHARING_POLICY { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PACKAGE_SHARING_POLICY { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PackageName == other.PackageName + && self.Scope == other.Scope + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PACKAGE_SHARING_POLICY {} @@ -19787,6 +20497,7 @@ impl ::core::default::Default for FABRIC_PACKAGE_SHARING_POLICY { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PACKAGE_SHARING_POLICY_LIST { pub Count: u32, pub Items: *const FABRIC_PACKAGE_SHARING_POLICY, @@ -19805,18 +20516,12 @@ impl ::core::fmt::Debug for FABRIC_PACKAGE_SHARING_POLICY_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PACKAGE_SHARING_POLICY_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PACKAGE_SHARING_POLICY_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PACKAGE_SHARING_POLICY_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_PACKAGE_SHARING_POLICY_LIST {} @@ -19826,19 +20531,24 @@ impl ::core::default::Default for FABRIC_PACKAGE_SHARING_POLICY_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub ApplicationNameFilter: *mut u16, pub IncludeHealthState: ::windows::Win32::Foundation::BOOLEAN, pub PagingDescription: *const FABRIC_QUERY_PAGING_DESCRIPTION, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION") @@ -19850,29 +20560,32 @@ impl ::core::fmt::Debug for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.ApplicationNameFilter == other.ApplicationNameFilter + && self.IncludeHealthState == other.IncludeHealthState + && self.PagingDescription == other.PagingDescription + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PAGING_STATUS { - pub ContinuationToken: ::windows::core::PCWSTR, + pub ContinuationToken: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PAGING_STATUS {} @@ -19889,18 +20602,12 @@ impl ::core::fmt::Debug for FABRIC_PAGING_STATUS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PAGING_STATUS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PAGING_STATUS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PAGING_STATUS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ContinuationToken == other.ContinuationToken && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PAGING_STATUS {} @@ -19910,8 +20617,9 @@ impl ::core::default::Default for FABRIC_PAGING_STATUS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITIONS_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub TotalCount: u32, @@ -19939,18 +20647,18 @@ impl ::core::fmt::Debug for FABRIC_PARTITIONS_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITIONS_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITIONS_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITIONS_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyPartitionsPerService + == other.MaxPercentUnhealthyPartitionsPerService + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITIONS_HEALTH_EVALUATION {} @@ -19960,6 +20668,7 @@ impl ::core::default::Default for FABRIC_PARTITIONS_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_DATA_LOSS_PROGRESS { pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, pub Result: *mut FABRIC_PARTITION_DATA_LOSS_RESULT, @@ -19980,18 +20689,12 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_DATA_LOSS_PROGRESS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_DATA_LOSS_PROGRESS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_DATA_LOSS_PROGRESS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_DATA_LOSS_PROGRESS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.State == other.State && self.Result == other.Result && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_DATA_LOSS_PROGRESS {} @@ -20001,9 +20704,10 @@ impl ::core::default::Default for FABRIC_PARTITION_DATA_LOSS_PROGRESS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_DATA_LOSS_RESULT { pub SelectedPartition: *mut FABRIC_SELECTED_PARTITION, - pub ErrorCode: ::windows::core::HRESULT, + pub ErrorCode: ::windows_core::HRESULT, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PARTITION_DATA_LOSS_RESULT {} @@ -20021,18 +20725,14 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_DATA_LOSS_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_DATA_LOSS_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_DATA_LOSS_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_DATA_LOSS_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.SelectedPartition == other.SelectedPartition + && self.ErrorCode == other.ErrorCode + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_DATA_LOSS_RESULT {} @@ -20042,19 +20742,24 @@ impl ::core::default::Default for FABRIC_PARTITION_DATA_LOSS_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_PARTITION_HEALTH { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, pub ReplicaHealthStates: *const FABRIC_REPLICA_HEALTH_STATE_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_PARTITION_HEALTH") @@ -20066,30 +20771,33 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.ReplicaHealthStates == other.ReplicaHealthStates + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_PARTITION_HEALTH { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, + pub Description: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -20111,18 +20819,16 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.PartitionId == other.PartitionId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_EVALUATION {} @@ -20132,6 +20838,7 @@ impl ::core::default::Default for FABRIC_PARTITION_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -20150,18 +20857,12 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UnhealthyEvaluations == other.UnhealthyEvaluations && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_EX1 {} @@ -20171,6 +20872,7 @@ impl ::core::default::Default for FABRIC_PARTITION_HEALTH_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_HEALTH_EX2 { pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, pub Reserved: *mut ::core::ffi::c_void, @@ -20189,18 +20891,12 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStatistics == other.HealthStatistics && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_EX2 {} @@ -20210,19 +20906,24 @@ impl ::core::default::Default for FABRIC_PARTITION_HEALTH_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, pub ReplicasFilter: *const FABRIC_REPLICA_HEALTH_STATES_FILTER, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION") @@ -20234,37 +20935,44 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.ReplicasFilter == other.ReplicasFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { pub HealthStatisticsFilter: *const FABRIC_PARTITION_HEALTH_STATISTICS_FILTER, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1") @@ -20273,38 +20981,42 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStatisticsFilter == other.HealthStatisticsFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_PARTITION_HEALTH_REPORT { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_REPORT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_REPORT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_PARTITION_HEALTH_REPORT") @@ -20314,29 +21026,30 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_REPORT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_REPORT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_REPORT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_PARTITION_HEALTH_REPORT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_HEALTH_STATE { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut ::core::ffi::c_void, } @@ -20355,18 +21068,14 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE {} @@ -20376,6 +21085,7 @@ impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -20394,18 +21104,12 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATES_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATES_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATES_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATES_FILTER {} @@ -20415,8 +21119,9 @@ impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATES_FILTER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_HEALTH_STATE_CHUNK { - pub PartitionId: ::windows::core::GUID, + 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, @@ -20437,18 +21142,15 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_CHUNK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATE_CHUNK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_CHUNK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.HealthState == other.HealthState + && self.ReplicaHealthStateChunks == other.ReplicaHealthStateChunks + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_CHUNK {} @@ -20458,6 +21160,7 @@ impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_CHUNK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_PARTITION_HEALTH_STATE_CHUNK, @@ -20480,18 +21183,15 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST {} @@ -20501,9 +21201,10 @@ impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_CHUNK_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, - pub PartitionIdFilter: ::windows::core::GUID, + pub PartitionIdFilter: ::windows_core::GUID, pub ReplicaFilters: *const FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST, pub Reserved: *mut ::core::ffi::c_void, } @@ -20523,18 +21224,15 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATE_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter + && self.PartitionIdFilter == other.PartitionIdFilter + && self.ReplicaFilters == other.ReplicaFilters + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_FILTER {} @@ -20544,6 +21242,7 @@ impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_FILTER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_PARTITION_HEALTH_STATE_FILTER, @@ -20562,18 +21261,12 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST {} @@ -20583,6 +21276,7 @@ impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_FILTER_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_PARTITION_HEALTH_STATE, @@ -20601,18 +21295,12 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATE_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATE_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATE_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATE_LIST {} @@ -20622,16 +21310,21 @@ impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATE_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_PARTITION_HEALTH_STATISTICS_FILTER") @@ -20640,39 +21333,43 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ExcludeHealthStatistics == other.ExcludeHealthStatistics + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_PARTITION_HEALTH_STATISTICS_FILTER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_PARTITION_LOAD_INFORMATION { - pub PartitionId: ::windows::core::GUID, + 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_PARTITION_LOAD_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_PARTITION_LOAD_INFORMATION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_PARTITION_LOAD_INFORMATION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_PARTITION_LOAD_INFORMATION") @@ -20686,29 +21383,31 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_LOAD_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_LOAD_INFORMATION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_PARTITION_LOAD_INFORMATION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_PARTITION_LOAD_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.PrimaryLoadMetricReports == other.PrimaryLoadMetricReports + && self.SecondaryLoadMetricReports == other.SecondaryLoadMetricReports + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_PARTITION_LOAD_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_PARTITION_LOAD_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION {} @@ -20725,18 +21424,12 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION {} @@ -20746,6 +21439,7 @@ impl ::core::default::Default for FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRI } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, pub Result: *mut FABRIC_PARTITION_QUORUM_LOSS_RESULT, @@ -20766,18 +21460,12 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.State == other.State && self.Result == other.Result && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS {} @@ -20787,9 +21475,10 @@ impl ::core::default::Default for FABRIC_PARTITION_QUORUM_LOSS_PROGRESS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_QUORUM_LOSS_RESULT { pub SelectedPartition: *mut FABRIC_SELECTED_PARTITION, - pub ErrorCode: ::windows::core::HRESULT, + pub ErrorCode: ::windows_core::HRESULT, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PARTITION_QUORUM_LOSS_RESULT {} @@ -20807,18 +21496,14 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_QUORUM_LOSS_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_QUORUM_LOSS_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_QUORUM_LOSS_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_QUORUM_LOSS_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.SelectedPartition == other.SelectedPartition + && self.ErrorCode == other.ErrorCode + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_QUORUM_LOSS_RESULT {} @@ -20828,6 +21513,7 @@ impl ::core::default::Default for FABRIC_PARTITION_QUORUM_LOSS_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_RESTART_PROGRESS { pub State: FABRIC_TEST_COMMAND_PROGRESS_STATE, pub Result: *mut FABRIC_PARTITION_RESTART_RESULT, @@ -20848,18 +21534,12 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_RESTART_PROGRESS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_RESTART_PROGRESS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_RESTART_PROGRESS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_RESTART_PROGRESS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.State == other.State && self.Result == other.Result && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_RESTART_PROGRESS {} @@ -20869,9 +21549,10 @@ impl ::core::default::Default for FABRIC_PARTITION_RESTART_PROGRESS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_RESTART_RESULT { pub SelectedPartition: *mut FABRIC_SELECTED_PARTITION, - pub ErrorCode: ::windows::core::HRESULT, + pub ErrorCode: ::windows_core::HRESULT, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PARTITION_RESTART_RESULT {} @@ -20889,18 +21570,14 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_RESTART_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_RESTART_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_RESTART_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_RESTART_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.SelectedPartition == other.SelectedPartition + && self.ErrorCode == other.ErrorCode + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_RESTART_RESULT {} @@ -20910,8 +21587,9 @@ impl ::core::default::Default for FABRIC_PARTITION_RESTART_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_SAFETY_CHECK { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PARTITION_SAFETY_CHECK {} @@ -20928,18 +21606,12 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_SAFETY_CHECK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_SAFETY_CHECK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_SAFETY_CHECK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_SAFETY_CHECK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_SAFETY_CHECK {} @@ -20949,10 +21621,11 @@ impl ::core::default::Default for FABRIC_PARTITION_SAFETY_CHECK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PARTITION_SELECTOR { pub ServiceName: *mut u16, pub PartitionSelectorType: FABRIC_PARTITION_SELECTOR_TYPE, - pub PartitionKey: ::windows::core::PCWSTR, + pub PartitionKey: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PARTITION_SELECTOR {} @@ -20971,18 +21644,15 @@ impl ::core::fmt::Debug for FABRIC_PARTITION_SELECTOR { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PARTITION_SELECTOR { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PARTITION_SELECTOR { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PARTITION_SELECTOR { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.PartitionSelectorType == other.PartitionSelectorType + && self.PartitionKey == other.PartitionKey + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PARTITION_SELECTOR {} @@ -20992,8 +21662,9 @@ impl ::core::default::Default for FABRIC_PARTITION_SELECTOR { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { - pub InvalidFaultDomain: ::windows::core::PCWSTR, + pub InvalidFaultDomain: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION {} @@ -21010,18 +21681,12 @@ impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.InvalidFaultDomain == other.InvalidFaultDomain && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIPTION {} @@ -21031,6 +21696,7 @@ impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_INVALID_DOMAIN_DESCRIP } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { pub Reserved: *mut ::core::ffi::c_void, } @@ -21047,21 +21713,12 @@ impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_D .finish() } } -unsafe impl ::windows::core::Abi - for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION -{ - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } + self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SERVICE_DESCRIPTION {} @@ -21071,8 +21728,9 @@ impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_NONPARTIALLY_PLACE_SER } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { - pub PreferredPrimaryFaultDomain: ::windows::core::PCWSTR, + pub PreferredPrimaryFaultDomain: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION {} @@ -21092,19 +21750,13 @@ impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DES .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } + self.PreferredPrimaryFaultDomain == other.PreferredPrimaryFaultDomain + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMAIN_DESCRIPTION {} @@ -21114,8 +21766,9 @@ impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_PREFERRED_PRIMARY_DOMA } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { - pub RequiredFaultDomain: ::windows::core::PCWSTR, + pub RequiredFaultDomain: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION {} @@ -21132,18 +21785,12 @@ impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.RequiredFaultDomain == other.RequiredFaultDomain && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRIPTION {} @@ -21153,6 +21800,7 @@ impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DESCRI } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { pub Reserved: *mut ::core::ffi::c_void, } @@ -21169,22 +21817,12 @@ impl ::core::fmt::Debug for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION .finish() } } -unsafe impl ::windows::core::Abi - for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION -{ - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION, - >(), - ) == 0 - } + self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRIBUTION_DESCRIPTION {} @@ -21194,17 +21832,22 @@ impl ::core::default::Default for FABRIC_PLACEMENT_POLICY_REQUIRED_DOMAIN_DISTRI } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT") @@ -21214,27 +21857,28 @@ impl ::core::fmt::Debug for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ReplicationQueueStatus == other.ReplicationQueueStatus + && self.RemoteReplicators == other.RemoteReplicators + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PROPERTY_BATCH_OPERATION { pub Kind: FABRIC_PROPERTY_BATCH_OPERATION_KIND, pub Value: *mut ::core::ffi::c_void, @@ -21253,18 +21897,12 @@ impl ::core::fmt::Debug for FABRIC_PROPERTY_BATCH_OPERATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PROPERTY_BATCH_OPERATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PROPERTY_BATCH_OPERATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PROPERTY_BATCH_OPERATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_PROPERTY_BATCH_OPERATION {} @@ -21274,8 +21912,9 @@ impl ::core::default::Default for FABRIC_PROPERTY_BATCH_OPERATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { - pub CodeVersionFilter: ::windows::core::PCWSTR, + pub CodeVersionFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION {} @@ -21292,18 +21931,12 @@ impl ::core::fmt::Debug for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CodeVersionFilter == other.CodeVersionFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION {} @@ -21313,8 +21946,9 @@ impl ::core::default::Default for FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { - pub CodeVersion: ::windows::core::PCWSTR, + pub CodeVersion: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM {} @@ -21331,18 +21965,12 @@ impl ::core::fmt::Debug for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CodeVersion == other.CodeVersion && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM {} @@ -21352,6 +21980,7 @@ impl ::core::default::Default for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_I } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_ITEM, @@ -21370,18 +21999,12 @@ impl ::core::fmt::Debug for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST {} @@ -21391,8 +22014,9 @@ impl ::core::default::Default for FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_L } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { - pub ConfigVersionFilter: ::windows::core::PCWSTR, + pub ConfigVersionFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION {} @@ -21409,18 +22033,12 @@ impl ::core::fmt::Debug for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ConfigVersionFilter == other.ConfigVersionFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION {} @@ -21430,8 +22048,9 @@ impl ::core::default::Default for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRI } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { - pub ConfigVersion: ::windows::core::PCWSTR, + pub ConfigVersion: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM {} @@ -21448,18 +22067,12 @@ impl ::core::fmt::Debug for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ConfigVersion == other.ConfigVersion && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM {} @@ -21469,6 +22082,7 @@ impl ::core::default::Default for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_ITEM, @@ -21487,18 +22101,12 @@ impl ::core::fmt::Debug for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST {} @@ -21508,17 +22116,22 @@ impl ::core::default::Default for FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { - pub BuildPath: ::windows::core::PCWSTR, + pub BuildPath: ::windows_core::PCWSTR, pub Async: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION") @@ -21528,27 +22141,28 @@ impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.BuildPath == other.BuildPath + && self.Async == other.Async + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { pub Kind: FABRIC_PROVISION_APPLICATION_TYPE_KIND, pub Value: *mut ::core::ffi::c_void, @@ -21567,18 +22181,12 @@ impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE {} @@ -21588,6 +22196,7 @@ impl ::core::default::Default for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_ } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { pub ApplicationPackageCleanupPolicy: FABRIC_APPLICATION_PACKAGE_CLEANUP_POLICY, pub Reserved: *mut ::core::ffi::c_void, @@ -21609,18 +22218,13 @@ impl ::core::fmt::Debug for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationPackageCleanupPolicy == other.ApplicationPackageCleanupPolicy + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_EX1 {} @@ -21630,11 +22234,12 @@ impl ::core::default::Default for FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_ } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, + pub PropertyName: ::windows_core::PCWSTR, pub PropertyTypeId: FABRIC_PROPERTY_TYPE_ID, pub PropertyValue: *mut ::core::ffi::c_void, - pub PropertyCustomTypeId: ::windows::core::PCWSTR, + pub PropertyCustomTypeId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION {} @@ -21654,18 +22259,16 @@ impl ::core::fmt::Debug for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PropertyName == other.PropertyName + && self.PropertyTypeId == other.PropertyTypeId + && self.PropertyValue == other.PropertyValue + && self.PropertyCustomTypeId == other.PropertyCustomTypeId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION {} @@ -21675,8 +22278,9 @@ impl ::core::default::Default for FABRIC_PUT_CUSTOM_PROPERTY_OPERATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_PUT_PROPERTY_OPERATION { - pub PropertyName: ::windows::core::PCWSTR, + 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, @@ -21697,18 +22301,15 @@ impl ::core::fmt::Debug for FABRIC_PUT_PROPERTY_OPERATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_PUT_PROPERTY_OPERATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_PUT_PROPERTY_OPERATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_PUT_PROPERTY_OPERATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PropertyName == other.PropertyName + && self.PropertyTypeId == other.PropertyTypeId + && self.PropertyValue == other.PropertyValue + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_PUT_PROPERTY_OPERATION {} @@ -21718,8 +22319,9 @@ impl ::core::default::Default for FABRIC_PUT_PROPERTY_OPERATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_QUERY_PAGING_DESCRIPTION { - pub ContinuationToken: ::windows::core::PCWSTR, + pub ContinuationToken: ::windows_core::PCWSTR, pub MaxResults: i32, pub Reserved: *mut ::core::ffi::c_void, } @@ -21738,18 +22340,14 @@ impl ::core::fmt::Debug for FABRIC_QUERY_PAGING_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_QUERY_PAGING_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_QUERY_PAGING_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_QUERY_PAGING_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ContinuationToken == other.ContinuationToken + && self.MaxResults == other.MaxResults + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_QUERY_PAGING_DESCRIPTION {} @@ -21759,6 +22357,8 @@ impl ::core::default::Default for FABRIC_QUERY_PAGING_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { pub PreviousConfigurationRole: FABRIC_REPLICA_ROLE, pub ReconfigurationPhase: FABRIC_RECONFIGURATION_PHASE, @@ -21766,12 +22366,15 @@ pub struct FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { pub ReconfigurationStartTimeUtc: ::windows::Win32::Foundation::FILETIME, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT") @@ -21786,27 +22389,30 @@ impl ::core::fmt::Debug for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PreviousConfigurationRole == other.PreviousConfigurationRole + && self.ReconfigurationPhase == other.ReconfigurationPhase + && self.ReconfigurationType == other.ReconfigurationType + && self.ReconfigurationStartTimeUtc == other.ReconfigurationStartTimeUtc + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_RECONFIGURATION_INFORMATION_QUERY_RESULT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { pub AverageReceiveDurationMilliseconds: i64, pub AverageApplyDurationMilliseconds: i64, @@ -21840,18 +22446,16 @@ impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.AverageReceiveDurationMilliseconds == other.AverageReceiveDurationMilliseconds + && self.AverageApplyDurationMilliseconds == other.AverageApplyDurationMilliseconds + && self.NotReceivedCount == other.NotReceivedCount + && self.ReceivedAndNotAppliedCount == other.ReceivedAndNotAppliedCount + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL {} @@ -21861,6 +22465,7 @@ impl ::core::default::Default for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAI } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { pub CopyStreamAcknowledgementDetails: *mut FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_DETAIL, pub ReplicationStreamAcknowledgementDetails: @@ -21888,18 +22493,15 @@ impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CopyStreamAcknowledgementDetails == other.CopyStreamAcknowledgementDetails + && self.ReplicationStreamAcknowledgementDetails + == other.ReplicationStreamAcknowledgementDetails + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATUS {} @@ -21909,6 +22511,8 @@ impl ::core::default::Default for FABRIC_REMOTE_REPLICATOR_ACKNOWLEDGEMENT_STATU } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REMOTE_REPLICATOR_STATUS { pub ReplicaId: i64, pub LastAcknowledgementProcessedTimeUtc: ::windows::Win32::Foundation::FILETIME, @@ -21919,12 +22523,15 @@ pub struct FABRIC_REMOTE_REPLICATOR_STATUS { pub LastAppliedCopySequenceNumber: i64, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REMOTE_REPLICATOR_STATUS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REMOTE_REPLICATOR_STATUS { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_STATUS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REMOTE_REPLICATOR_STATUS") @@ -21954,37 +22561,49 @@ impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_STATUS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REMOTE_REPLICATOR_STATUS { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REMOTE_REPLICATOR_STATUS { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REMOTE_REPLICATOR_STATUS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ReplicaId == other.ReplicaId + && self.LastAcknowledgementProcessedTimeUtc == other.LastAcknowledgementProcessedTimeUtc + && self.LastReceivedReplicationSequenceNumber + == other.LastReceivedReplicationSequenceNumber + && self.LastAppliedReplicationSequenceNumber + == other.LastAppliedReplicationSequenceNumber + && self.IsInBuild == other.IsInBuild + && self.LastReceivedCopySequenceNumber == other.LastReceivedCopySequenceNumber + && self.LastAppliedCopySequenceNumber == other.LastAppliedCopySequenceNumber + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REMOTE_REPLICATOR_STATUS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REMOTE_REPLICATOR_STATUS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REMOTE_REPLICATOR_STATUS_LIST { pub Count: u32, pub Items: *mut FABRIC_REMOTE_REPLICATOR_STATUS, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REMOTE_REPLICATOR_STATUS_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REMOTE_REPLICATOR_STATUS_LIST") @@ -21993,30 +22612,29 @@ impl ::core::fmt::Debug for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REMOTE_REPLICATOR_STATUS_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REMOTE_REPLICATOR_STATUS_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REMOVE_REPLICA_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, + pub NodeName: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, pub ReplicaOrInstanceId: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -22036,18 +22654,15 @@ impl ::core::fmt::Debug for FABRIC_REMOVE_REPLICA_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REMOVE_REPLICA_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REMOVE_REPLICA_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REMOVE_REPLICA_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.PartitionId == other.PartitionId + && self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REMOVE_REPLICA_DESCRIPTION {} @@ -22057,16 +22672,21 @@ impl ::core::default::Default for FABRIC_REMOVE_REPLICA_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { pub ForceRemove: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1") @@ -22075,30 +22695,29 @@ impl ::core::fmt::Debug for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ForceRemove == other.ForceRemove && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REMOVE_REPLICA_DESCRIPTION_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPAIR_APPROVE_DESCRIPTION { pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, - pub RepairTaskId: ::windows::core::PCWSTR, + pub RepairTaskId: ::windows_core::PCWSTR, pub Version: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -22118,18 +22737,15 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_APPROVE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_APPROVE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPAIR_APPROVE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPAIR_APPROVE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Scope == other.Scope + && self.RepairTaskId == other.RepairTaskId + && self.Version == other.Version + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPAIR_APPROVE_DESCRIPTION {} @@ -22139,19 +22755,24 @@ impl ::core::default::Default for FABRIC_REPAIR_APPROVE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPAIR_CANCEL_DESCRIPTION { pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, - pub RepairTaskId: ::windows::core::PCWSTR, + pub RepairTaskId: ::windows_core::PCWSTR, pub Version: i64, pub RequestAbort: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPAIR_CANCEL_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPAIR_CANCEL_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPAIR_CANCEL_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPAIR_CANCEL_DESCRIPTION") @@ -22163,30 +22784,33 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_CANCEL_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_CANCEL_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPAIR_CANCEL_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPAIR_CANCEL_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Scope == other.Scope + && self.RepairTaskId == other.RepairTaskId + && self.Version == other.Version + && self.RequestAbort == other.RequestAbort + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPAIR_CANCEL_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPAIR_CANCEL_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPAIR_DELETE_DESCRIPTION { pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, - pub RepairTaskId: ::windows::core::PCWSTR, + pub RepairTaskId: ::windows_core::PCWSTR, pub Version: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -22206,18 +22830,15 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_DELETE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_DELETE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPAIR_DELETE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPAIR_DELETE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Scope == other.Scope + && self.RepairTaskId == other.RepairTaskId + && self.Version == other.Version + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPAIR_DELETE_DESCRIPTION {} @@ -22227,9 +22848,10 @@ impl ::core::default::Default for FABRIC_REPAIR_DELETE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPAIR_EXECUTOR_STATE { - pub Executor: ::windows::core::PCWSTR, - pub ExecutorData: ::windows::core::PCWSTR, + pub Executor: ::windows_core::PCWSTR, + pub ExecutorData: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_REPAIR_EXECUTOR_STATE {} @@ -22247,18 +22869,14 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_EXECUTOR_STATE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_EXECUTOR_STATE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPAIR_EXECUTOR_STATE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPAIR_EXECUTOR_STATE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Executor == other.Executor + && self.ExecutorData == other.ExecutorData + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPAIR_EXECUTOR_STATE {} @@ -22268,6 +22886,7 @@ impl ::core::default::Default for FABRIC_REPAIR_EXECUTOR_STATE { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPAIR_IMPACT_DESCRIPTION { pub Kind: FABRIC_REPAIR_IMPACT_KIND, pub Value: *mut ::core::ffi::c_void, @@ -22286,18 +22905,12 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_IMPACT_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_IMPACT_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPAIR_IMPACT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPAIR_IMPACT_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_REPAIR_IMPACT_DESCRIPTION {} @@ -22307,8 +22920,9 @@ impl ::core::default::Default for FABRIC_REPAIR_IMPACT_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPAIR_NODE_IMPACT { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub ImpactLevel: FABRIC_REPAIR_NODE_IMPACT_LEVEL, pub Reserved: *mut ::core::ffi::c_void, } @@ -22327,18 +22941,14 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_NODE_IMPACT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_NODE_IMPACT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPAIR_NODE_IMPACT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPAIR_NODE_IMPACT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.ImpactLevel == other.ImpactLevel + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPAIR_NODE_IMPACT {} @@ -22348,6 +22958,7 @@ impl ::core::default::Default for FABRIC_REPAIR_NODE_IMPACT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPAIR_NODE_IMPACT_LIST { pub Count: u32, pub Items: *const FABRIC_REPAIR_NODE_IMPACT, @@ -22366,18 +22977,12 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_NODE_IMPACT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_NODE_IMPACT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPAIR_NODE_IMPACT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPAIR_NODE_IMPACT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_REPAIR_NODE_IMPACT_LIST {} @@ -22387,10 +22992,11 @@ impl ::core::default::Default for FABRIC_REPAIR_NODE_IMPACT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPAIR_RESULT_DESCRIPTION { pub ResultStatus: FABRIC_REPAIR_TASK_RESULT, - pub ResultCode: ::windows::core::HRESULT, - pub ResultDetails: ::windows::core::PCWSTR, + pub ResultCode: ::windows_core::HRESULT, + pub ResultDetails: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_REPAIR_RESULT_DESCRIPTION {} @@ -22409,18 +23015,15 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_RESULT_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_RESULT_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPAIR_RESULT_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPAIR_RESULT_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ResultStatus == other.ResultStatus + && self.ResultCode == other.ResultCode + && self.ResultDetails == other.ResultDetails + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPAIR_RESULT_DESCRIPTION {} @@ -22430,6 +23033,7 @@ impl ::core::default::Default for FABRIC_REPAIR_RESULT_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPAIR_SCOPE_IDENTIFIER { pub Kind: FABRIC_REPAIR_SCOPE_IDENTIFIER_KIND, pub Value: *mut ::core::ffi::c_void, @@ -22448,18 +23052,12 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_SCOPE_IDENTIFIER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_SCOPE_IDENTIFIER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPAIR_SCOPE_IDENTIFIER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPAIR_SCOPE_IDENTIFIER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_REPAIR_SCOPE_IDENTIFIER {} @@ -22469,6 +23067,7 @@ impl ::core::default::Default for FABRIC_REPAIR_SCOPE_IDENTIFIER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPAIR_TARGET_DESCRIPTION { pub Kind: FABRIC_REPAIR_TARGET_KIND, pub Value: *mut ::core::ffi::c_void, @@ -22487,18 +23086,12 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TARGET_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TARGET_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPAIR_TARGET_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPAIR_TARGET_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_REPAIR_TARGET_DESCRIPTION {} @@ -22508,14 +23101,16 @@ impl ::core::default::Default for FABRIC_REPAIR_TARGET_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPAIR_TASK { pub Scope: *const FABRIC_REPAIR_SCOPE_IDENTIFIER, - pub TaskId: ::windows::core::PCWSTR, + pub TaskId: ::windows_core::PCWSTR, pub Version: i64, - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub State: FABRIC_REPAIR_TASK_STATE, pub Flags: u32, - pub Action: ::windows::core::PCWSTR, + pub Action: ::windows_core::PCWSTR, pub Target: *const FABRIC_REPAIR_TARGET_DESCRIPTION, pub ExecutorState: *mut FABRIC_REPAIR_EXECUTOR_STATE, pub Impact: *mut FABRIC_REPAIR_IMPACT_DESCRIPTION, @@ -22523,12 +23118,15 @@ pub struct FABRIC_REPAIR_TASK { pub History: *const FABRIC_REPAIR_TASK_HISTORY, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPAIR_TASK {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPAIR_TASK { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPAIR_TASK { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPAIR_TASK") @@ -22548,27 +23146,39 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} + self.Scope == other.Scope + && self.TaskId == other.TaskId + && self.Version == other.Version + && self.Description == other.Description + && self.State == other.State + && self.Flags == other.Flags + && self.Action == other.Action + && self.Target == other.Target + && self.ExecutorState == other.ExecutorState + && self.Impact == other.Impact + && self.Result == other.Result + && self.History == other.History + && self.Reserved == other.Reserved + } +} +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPAIR_TASK {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPAIR_TASK { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPAIR_TASK_EX1 { pub PerformPreparingHealthCheck: ::windows::Win32::Foundation::BOOLEAN, pub PerformRestoringHealthCheck: ::windows::Win32::Foundation::BOOLEAN, @@ -22576,12 +23186,15 @@ pub struct FABRIC_REPAIR_TASK_EX1 { pub RestoringHealthCheckState: FABRIC_REPAIR_TASK_HEALTH_CHECK_STATE, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPAIR_TASK_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPAIR_TASK_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPAIR_TASK_EX1") @@ -22599,42 +23212,49 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PerformPreparingHealthCheck == other.PerformPreparingHealthCheck + && self.PerformRestoringHealthCheck == other.PerformRestoringHealthCheck + && self.PreparingHealthCheckState == other.PreparingHealthCheckState + && self.RestoringHealthCheckState == other.RestoringHealthCheckState + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPAIR_TASK_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, - pub RepairTaskId: ::windows::core::PCWSTR, + pub RepairTaskId: ::windows_core::PCWSTR, pub Version: i64, pub Flags: u32, pub PerformPreparingHealthCheck: ::windows::Win32::Foundation::BOOLEAN, pub PerformRestoringHealthCheck: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION") @@ -22654,27 +23274,33 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Scope == other.Scope + && self.RepairTaskId == other.RepairTaskId + && self.Version == other.Version + && self.Flags == other.Flags + && self.PerformPreparingHealthCheck == other.PerformPreparingHealthCheck + && self.PerformRestoringHealthCheck == other.PerformRestoringHealthCheck + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPAIR_TASK_HISTORY { pub CreatedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, pub ClaimedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, @@ -22685,12 +23311,15 @@ pub struct FABRIC_REPAIR_TASK_HISTORY { pub CompletedUtcTimestamp: ::windows::Win32::Foundation::FILETIME, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HISTORY {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HISTORY { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HISTORY { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPAIR_TASK_HISTORY") @@ -22705,27 +23334,34 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HISTORY { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_HISTORY { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_HISTORY { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_HISTORY { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CreatedUtcTimestamp == other.CreatedUtcTimestamp + && self.ClaimedUtcTimestamp == other.ClaimedUtcTimestamp + && self.PreparingUtcTimestamp == other.PreparingUtcTimestamp + && self.ApprovedUtcTimestamp == other.ApprovedUtcTimestamp + && self.ExecutingUtcTimestamp == other.ExecutingUtcTimestamp + && self.RestoringUtcTimestamp == other.RestoringUtcTimestamp + && self.CompletedUtcTimestamp == other.CompletedUtcTimestamp + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_HISTORY {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPAIR_TASK_HISTORY { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPAIR_TASK_HISTORY_EX1 { pub PreparingHealthCheckStartUtcTimestamp: ::windows::Win32::Foundation::FILETIME, pub PreparingHealthCheckEndUtcTimestamp: ::windows::Win32::Foundation::FILETIME, @@ -22733,12 +23369,15 @@ pub struct FABRIC_REPAIR_TASK_HISTORY_EX1 { pub RestoringHealthCheckEndUtcTimestamp: ::windows::Win32::Foundation::FILETIME, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPAIR_TASK_HISTORY_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPAIR_TASK_HISTORY_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HISTORY_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPAIR_TASK_HISTORY_EX1") @@ -22762,37 +23401,45 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_HISTORY_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_HISTORY_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_HISTORY_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_HISTORY_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PreparingHealthCheckStartUtcTimestamp == other.PreparingHealthCheckStartUtcTimestamp + && self.PreparingHealthCheckEndUtcTimestamp == other.PreparingHealthCheckEndUtcTimestamp + && self.RestoringHealthCheckStartUtcTimestamp + == other.RestoringHealthCheckStartUtcTimestamp + && self.RestoringHealthCheckEndUtcTimestamp == other.RestoringHealthCheckEndUtcTimestamp + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_HISTORY_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPAIR_TASK_HISTORY_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPAIR_TASK_LIST { pub Count: u32, pub Items: *mut FABRIC_REPAIR_TASK, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPAIR_TASK_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPAIR_TASK_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPAIR_TASK_LIST") @@ -22801,32 +23448,31 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPAIR_TASK_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { pub Scope: *mut FABRIC_REPAIR_SCOPE_IDENTIFIER, - pub TaskIdFilter: ::windows::core::PCWSTR, + pub TaskIdFilter: ::windows_core::PCWSTR, pub StateFilter: u32, - pub ExecutorFilter: ::windows::core::PCWSTR, + pub ExecutorFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION {} @@ -22846,18 +23492,16 @@ impl ::core::fmt::Debug for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Scope == other.Scope + && self.TaskIdFilter == other.TaskIdFilter + && self.StateFilter == other.StateFilter + && self.ExecutorFilter == other.ExecutorFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION {} @@ -22867,8 +23511,9 @@ impl ::core::default::Default for FABRIC_REPAIR_TASK_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICAS_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub TotalCount: u32, @@ -22896,18 +23541,18 @@ impl ::core::fmt::Debug for FABRIC_REPLICAS_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICAS_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICAS_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICAS_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyReplicasPerPartition + == other.MaxPercentUnhealthyReplicasPerPartition + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICAS_HEALTH_EVALUATION {} @@ -22917,6 +23562,7 @@ impl ::core::default::Default for FABRIC_REPLICAS_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICATOR_QUEUE_STATUS { pub QueueUtilizationPercentage: u32, pub QueueMemorySize: i64, @@ -22948,18 +23594,18 @@ impl ::core::fmt::Debug for FABRIC_REPLICATOR_QUEUE_STATUS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_QUEUE_STATUS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICATOR_QUEUE_STATUS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_QUEUE_STATUS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.QueueUtilizationPercentage == other.QueueUtilizationPercentage + && self.QueueMemorySize == other.QueueMemorySize + && self.FirstSequenceNumber == other.FirstSequenceNumber + && self.CompletedSequenceNumber == other.CompletedSequenceNumber + && self.CommittedSequenceNumber == other.CommittedSequenceNumber + && self.LastSequenceNumber == other.LastSequenceNumber + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICATOR_QUEUE_STATUS {} @@ -22969,11 +23615,13 @@ impl ::core::default::Default for FABRIC_REPLICATOR_QUEUE_STATUS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPLICATOR_SETTINGS { pub Flags: u32, pub RetryIntervalMilliseconds: u32, pub BatchAcknowledgementIntervalMilliseconds: u32, - pub ReplicatorAddress: ::windows::core::PCWSTR, + pub ReplicatorAddress: ::windows_core::PCWSTR, pub RequireServiceAck: ::windows::Win32::Foundation::BOOLEAN, pub InitialReplicationQueueSize: u32, pub MaxReplicationQueueSize: u32, @@ -22982,12 +23630,15 @@ pub struct FABRIC_REPLICATOR_SETTINGS { pub SecurityCredentials: *const FABRIC_SECURITY_CREDENTIALS, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPLICATOR_SETTINGS") @@ -23011,39 +23662,53 @@ impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_SETTINGS { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} + self.Flags == other.Flags + && self.RetryIntervalMilliseconds == other.RetryIntervalMilliseconds + && self.BatchAcknowledgementIntervalMilliseconds + == other.BatchAcknowledgementIntervalMilliseconds + && self.ReplicatorAddress == other.ReplicatorAddress + && self.RequireServiceAck == other.RequireServiceAck + && self.InitialReplicationQueueSize == other.InitialReplicationQueueSize + && self.MaxReplicationQueueSize == other.MaxReplicationQueueSize + && self.InitialCopyQueueSize == other.InitialCopyQueueSize + && self.MaxCopyQueueSize == other.MaxCopyQueueSize + && self.SecurityCredentials == other.SecurityCredentials + && self.Reserved == other.Reserved + } +} +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPLICATOR_SETTINGS_EX1 { pub MaxReplicationQueueMemorySize: u32, pub SecondaryClearAcknowledgedOperations: ::windows::Win32::Foundation::BOOLEAN, pub MaxReplicationMessageSize: u32, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPLICATOR_SETTINGS_EX1") @@ -23060,37 +23725,44 @@ impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_SETTINGS_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MaxReplicationQueueMemorySize == other.MaxReplicationQueueMemorySize + && self.SecondaryClearAcknowledgedOperations + == other.SecondaryClearAcknowledgedOperations + && self.MaxReplicationMessageSize == other.MaxReplicationMessageSize + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPLICATOR_SETTINGS_EX2 { pub UseStreamFaultsAndEndOfStreamOperationAck: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPLICATOR_SETTINGS_EX2 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPLICATOR_SETTINGS_EX2") @@ -23102,27 +23774,28 @@ impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_SETTINGS_EX2 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_EX2 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UseStreamFaultsAndEndOfStreamOperationAck + == other.UseStreamFaultsAndEndOfStreamOperationAck + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_EX2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICATOR_SETTINGS_EX3 { pub InitialPrimaryReplicationQueueSize: u32, pub MaxPrimaryReplicationQueueSize: u32, @@ -23174,18 +23847,23 @@ impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_SETTINGS_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.InitialPrimaryReplicationQueueSize == other.InitialPrimaryReplicationQueueSize + && self.MaxPrimaryReplicationQueueSize == other.MaxPrimaryReplicationQueueSize + && self.MaxPrimaryReplicationQueueMemorySize + == other.MaxPrimaryReplicationQueueMemorySize + && self.InitialSecondaryReplicationQueueSize + == other.InitialSecondaryReplicationQueueSize + && self.MaxSecondaryReplicationQueueSize == other.MaxSecondaryReplicationQueueSize + && self.MaxSecondaryReplicationQueueMemorySize + == other.MaxSecondaryReplicationQueueMemorySize + && self.PrimaryWaitForPendingQuorumsTimeoutMilliseconds + == other.PrimaryWaitForPendingQuorumsTimeoutMilliseconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS_EX3 {} @@ -23195,9 +23873,10 @@ impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICATOR_SETTINGS_EX4 { - pub ReplicatorListenAddress: ::windows::core::PCWSTR, - pub ReplicatorPublishAddress: ::windows::core::PCWSTR, + pub ReplicatorListenAddress: ::windows_core::PCWSTR, + pub ReplicatorPublishAddress: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_REPLICATOR_SETTINGS_EX4 {} @@ -23215,18 +23894,14 @@ impl ::core::fmt::Debug for FABRIC_REPLICATOR_SETTINGS_EX4 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_SETTINGS_EX4 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICATOR_SETTINGS_EX4 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_SETTINGS_EX4 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ReplicatorListenAddress == other.ReplicatorListenAddress + && self.ReplicatorPublishAddress == other.ReplicatorPublishAddress + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICATOR_SETTINGS_EX4 {} @@ -23236,6 +23911,7 @@ impl ::core::default::Default for FABRIC_REPLICATOR_SETTINGS_EX4 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICATOR_STATUS_QUERY_RESULT { pub Role: FABRIC_REPLICA_ROLE, pub Value: *mut ::core::ffi::c_void, @@ -23254,18 +23930,12 @@ impl ::core::fmt::Debug for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Role == other.Role && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_REPLICATOR_STATUS_QUERY_RESULT {} @@ -23275,6 +23945,7 @@ impl ::core::default::Default for FABRIC_REPLICATOR_STATUS_QUERY_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_HEALTH { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut ::core::ffi::c_void, @@ -23293,18 +23964,12 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH {} @@ -23314,9 +23979,10 @@ impl ::core::default::Default for FABRIC_REPLICA_HEALTH { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, + pub Description: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, pub ReplicaOrInstanceId: i64, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, @@ -23340,18 +24006,17 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.PartitionId == other.PartitionId + && self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_EVALUATION {} @@ -23361,19 +24026,24 @@ impl ::core::default::Default for FABRIC_REPLICA_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub ReplicaOrInstanceId: i64, pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, pub EventsFilter: *const FABRIC_HEALTH_EVENTS_FILTER, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION") @@ -23385,27 +24055,30 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_HEALTH_STATE { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut ::core::ffi::c_void, @@ -23424,18 +24097,12 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE {} @@ -23445,6 +24112,7 @@ impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -23463,18 +24131,12 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATES_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATES_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATES_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATES_FILTER {} @@ -23484,6 +24146,7 @@ impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATES_FILTER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_HEALTH_STATE_CHUNK { pub ReplicaOrInstanceId: i64, pub HealthState: FABRIC_HEALTH_STATE, @@ -23504,18 +24167,14 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_CHUNK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATE_CHUNK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_CHUNK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.HealthState == other.HealthState + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_CHUNK {} @@ -23525,6 +24184,7 @@ impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_CHUNK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_REPLICA_HEALTH_STATE_CHUNK, @@ -23547,18 +24207,15 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST {} @@ -23568,6 +24225,7 @@ impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_CHUNK_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, pub ReplicaOrInstanceIdFilter: i64, @@ -23588,18 +24246,14 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATE_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter + && self.ReplicaOrInstanceIdFilter == other.ReplicaOrInstanceIdFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_FILTER {} @@ -23609,6 +24263,7 @@ impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_FILTER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_REPLICA_HEALTH_STATE_FILTER, @@ -23627,18 +24282,12 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST {} @@ -23648,6 +24297,7 @@ impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_FILTER_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_REPLICA_HEALTH_STATE, @@ -23666,18 +24316,12 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_HEALTH_STATE_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_HEALTH_STATE_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_HEALTH_STATE_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_REPLICA_HEALTH_STATE_LIST {} @@ -23687,11 +24331,12 @@ impl ::core::default::Default for FABRIC_REPLICA_HEALTH_STATE_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_INFORMATION { pub Id: i64, pub Role: FABRIC_REPLICA_ROLE, pub Status: FABRIC_REPLICA_STATUS, - pub ReplicatorAddress: ::windows::core::PCWSTR, + pub ReplicatorAddress: ::windows_core::PCWSTR, pub CurrentProgress: i64, pub CatchUpCapability: i64, pub Reserved: *mut ::core::ffi::c_void, @@ -23715,18 +24360,18 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_INFORMATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_INFORMATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Id == other.Id + && self.Role == other.Role + && self.Status == other.Status + && self.ReplicatorAddress == other.ReplicatorAddress + && self.CurrentProgress == other.CurrentProgress + && self.CatchUpCapability == other.CatchUpCapability + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICA_INFORMATION {} @@ -23736,16 +24381,21 @@ impl ::core::default::Default for FABRIC_REPLICA_INFORMATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPLICA_INFORMATION_EX1 { pub MustCatchup: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPLICA_INFORMATION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPLICA_INFORMATION_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPLICA_INFORMATION_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPLICA_INFORMATION_EX1") @@ -23754,39 +24404,42 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_INFORMATION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_INFORMATION_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPLICA_INFORMATION_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPLICA_INFORMATION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MustCatchup == other.MustCatchup && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPLICA_INFORMATION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPLICA_INFORMATION_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_REPLICA_LOAD_INFORMATION { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub ReplicaOrInstanceId: i64, pub LoadMetricReports: *mut FABRIC_LOAD_METRIC_REPORT_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_REPLICA_LOAD_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_REPLICA_LOAD_INFORMATION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_REPLICA_LOAD_INFORMATION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_REPLICA_LOAD_INFORMATION") @@ -23797,29 +24450,31 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_LOAD_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_LOAD_INFORMATION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_REPLICA_LOAD_INFORMATION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_REPLICA_LOAD_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.LoadMetricReports == other.LoadMetricReports + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_REPLICA_LOAD_INFORMATION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_REPLICA_LOAD_INFORMATION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub ReplicaOrInstanceId: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -23838,18 +24493,14 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION {} @@ -23859,6 +24510,7 @@ impl ::core::default::Default for FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_SET_CONFIGURATION { pub ReplicaCount: u32, pub Replicas: *const FABRIC_REPLICA_INFORMATION, @@ -23881,18 +24533,15 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_SET_CONFIGURATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_SET_CONFIGURATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_SET_CONFIGURATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_SET_CONFIGURATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ReplicaCount == other.ReplicaCount + && self.Replicas == other.Replicas + && self.WriteQuorum == other.WriteQuorum + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICA_SET_CONFIGURATION {} @@ -23902,6 +24551,7 @@ impl ::core::default::Default for FABRIC_REPLICA_SET_CONFIGURATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_REPLICA_STATUS_QUERY_RESULT { pub Kind: FABRIC_SERVICE_REPLICA_KIND, pub Value: *mut ::core::ffi::c_void, @@ -23922,18 +24572,12 @@ impl ::core::fmt::Debug for FABRIC_REPLICA_STATUS_QUERY_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_REPLICA_STATUS_QUERY_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_REPLICA_STATUS_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_REPLICA_STATUS_QUERY_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_REPLICA_STATUS_QUERY_RESULT {} @@ -23943,8 +24587,9 @@ impl ::core::default::Default for FABRIC_REPLICA_STATUS_QUERY_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_RESOLVED_SERVICE_ENDPOINT { - pub Address: ::windows::core::PCWSTR, + pub Address: ::windows_core::PCWSTR, pub Role: FABRIC_SERVICE_ENDPOINT_ROLE, pub Reserved: *mut ::core::ffi::c_void, } @@ -23963,18 +24608,12 @@ impl ::core::fmt::Debug for FABRIC_RESOLVED_SERVICE_ENDPOINT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_RESOLVED_SERVICE_ENDPOINT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_RESOLVED_SERVICE_ENDPOINT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_RESOLVED_SERVICE_ENDPOINT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Address == other.Address && self.Role == other.Role && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_RESOLVED_SERVICE_ENDPOINT {} @@ -23984,6 +24623,7 @@ impl ::core::default::Default for FABRIC_RESOLVED_SERVICE_ENDPOINT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_RESOLVED_SERVICE_PARTITION { pub Info: FABRIC_SERVICE_PARTITION_INFORMATION, pub EndpointCount: u32, @@ -24008,18 +24648,16 @@ impl ::core::fmt::Debug for FABRIC_RESOLVED_SERVICE_PARTITION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_RESOLVED_SERVICE_PARTITION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_RESOLVED_SERVICE_PARTITION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_RESOLVED_SERVICE_PARTITION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Info == other.Info + && self.EndpointCount == other.EndpointCount + && self.Endpoints == other.Endpoints + && self.ServiceName == other.ServiceName + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_RESOLVED_SERVICE_PARTITION {} @@ -24029,11 +24667,12 @@ impl ::core::default::Default for FABRIC_RESOLVED_SERVICE_PARTITION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, pub CodePackageInstanceId: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -24055,18 +24694,17 @@ impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.CodePackageName == other.CodePackageName + && self.CodePackageInstanceId == other.CodePackageInstanceId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION {} @@ -24076,6 +24714,7 @@ impl ::core::default::Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTI } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { pub Kind: FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_KIND, pub Value: *mut ::core::ffi::c_void, @@ -24094,18 +24733,12 @@ impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2 {} @@ -24115,11 +24748,12 @@ impl ::core::default::Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTI } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub ApplicationName: *mut u16, - pub ServiceManifestName: ::windows::core::PCWSTR, - pub CodePackageName: ::windows::core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, + pub CodePackageName: ::windows_core::PCWSTR, pub CodePackageInstanceId: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -24141,22 +24775,17 @@ impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USI .finish() } } -unsafe impl ::windows::core::Abi - for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME -{ - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME, - >(), - ) == 0 - } + self.NodeName == other.NodeName + && self.ApplicationName == other.ApplicationName + && self.ServiceManifestName == other.ServiceManifestName + && self.CodePackageName == other.CodePackageName + && self.CodePackageInstanceId == other.CodePackageInstanceId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME {} @@ -24166,8 +24795,9 @@ impl ::core::default::Default for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTI } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 { - pub ServicePackageActivationId: ::windows::core::PCWSTR, + pub ServicePackageActivationId: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 {} @@ -24187,24 +24817,17 @@ impl ::core::fmt::Debug for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USI .finish() } } -unsafe impl ::windows::core::Abi +impl ::windows_core::TypeKind for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 { - type Abi = Self; + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::< - FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1, - >(), - ) == 0 - } + self.ServicePackageActivationId == other.ServicePackageActivationId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION_USING_NODE_NAME_EX1 {} @@ -24216,8 +24839,9 @@ impl ::core::default::Default } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_RESTART_NODE_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub NodeInstanceId: u64, pub Reserved: *mut ::core::ffi::c_void, } @@ -24236,18 +24860,14 @@ impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_RESTART_NODE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_RESTART_NODE_DESCRIPTION {} @@ -24257,6 +24877,7 @@ impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_RESTART_NODE_DESCRIPTION2 { pub Kind: FABRIC_RESTART_NODE_DESCRIPTION_KIND, pub Value: *mut ::core::ffi::c_void, @@ -24275,18 +24896,12 @@ impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_RESTART_NODE_DESCRIPTION2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_DESCRIPTION2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_RESTART_NODE_DESCRIPTION2 {} @@ -24296,16 +24911,21 @@ impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_RESTART_NODE_DESCRIPTION_EX1 { pub CreateFabricDump: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_RESTART_NODE_DESCRIPTION_EX1") @@ -24314,39 +24934,42 @@ impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CreateFabricDump == other.CreateFabricDump && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_RESTART_NODE_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub NodeInstanceId: u64, pub ShouldCreateFabricDump: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME") @@ -24357,27 +24980,29 @@ impl ::core::fmt::Debug for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.ShouldCreateFabricDump == other.ShouldCreateFabricDump + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_RESTART_NODE_DESCRIPTION_USING_NODE_NAME { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_RESTART_NODE_STATUS { pub NodeResult: *mut FABRIC_NODE_RESULT, pub Reserved: *mut ::core::ffi::c_void, @@ -24396,18 +25021,12 @@ impl ::core::fmt::Debug for FABRIC_RESTART_NODE_STATUS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_RESTART_NODE_STATUS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_RESTART_NODE_STATUS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_RESTART_NODE_STATUS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeResult == other.NodeResult && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_RESTART_NODE_STATUS {} @@ -24417,9 +25036,10 @@ impl ::core::default::Default for FABRIC_RESTART_NODE_STATUS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_RESTART_REPLICA_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, - pub PartitionId: ::windows::core::GUID, + pub NodeName: ::windows_core::PCWSTR, + pub PartitionId: ::windows_core::GUID, pub ReplicaOrInstanceId: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -24439,18 +25059,15 @@ impl ::core::fmt::Debug for FABRIC_RESTART_REPLICA_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_RESTART_REPLICA_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_RESTART_REPLICA_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_RESTART_REPLICA_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.PartitionId == other.PartitionId + && self.ReplicaOrInstanceId == other.ReplicaOrInstanceId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_RESTART_REPLICA_DESCRIPTION {} @@ -24460,6 +25077,7 @@ impl ::core::default::Default for FABRIC_RESTART_REPLICA_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { pub FailureAction: FABRIC_MONITORED_UPGRADE_FAILURE_ACTION, pub HealthCheckWaitDurationInSeconds: u32, @@ -24495,18 +25113,17 @@ impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.FailureAction == other.FailureAction + && self.HealthCheckWaitDurationInSeconds == other.HealthCheckWaitDurationInSeconds + && self.HealthCheckRetryTimeoutInSeconds == other.HealthCheckRetryTimeoutInSeconds + && self.UpgradeTimeoutInSeconds == other.UpgradeTimeoutInSeconds + && self.UpgradeDomainTimeoutInSeconds == other.UpgradeDomainTimeoutInSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY {} @@ -24516,6 +25133,7 @@ impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { pub HealthCheckStableDurationInSeconds: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -24537,18 +25155,13 @@ impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthCheckStableDurationInSeconds == other.HealthCheckStableDurationInSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 {} @@ -24558,18 +25171,23 @@ impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_MONITORING_POLICY_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { pub RollingUpgradeMode: FABRIC_ROLLING_UPGRADE_MODE, pub ForceRestart: ::windows::Win32::Foundation::BOOLEAN, pub UpgradeReplicaSetCheckTimeoutInSeconds: u32, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION") @@ -24583,27 +25201,30 @@ impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.RollingUpgradeMode == other.RollingUpgradeMode + && self.ForceRestart == other.ForceRestart + && self.UpgradeReplicaSetCheckTimeoutInSeconds + == other.UpgradeReplicaSetCheckTimeoutInSeconds + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { pub MonitoringPolicy: *const FABRIC_ROLLING_UPGRADE_MONITORING_POLICY, pub HealthPolicy: *mut ::core::ffi::c_void, @@ -24624,18 +25245,14 @@ impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MonitoringPolicy == other.MonitoringPolicy + && self.HealthPolicy == other.HealthPolicy + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 {} @@ -24645,17 +25262,22 @@ impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX1 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { pub EnableDeltaHealthEvaluation: ::windows::Win32::Foundation::BOOLEAN, pub UpgradeHealthPolicy: *mut ::core::ffi::c_void, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2") @@ -24668,37 +25290,42 @@ impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.EnableDeltaHealthEvaluation == other.EnableDeltaHealthEvaluation + && self.UpgradeHealthPolicy == other.UpgradeHealthPolicy + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3") @@ -24710,29 +25337,29 @@ impl ::core::fmt::Debug for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationHealthPolicyMap == other.ApplicationHealthPolicyMap + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_ROLLING_UPGRADE_POLICY_DESCRIPTION_EX3 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_RUNAS_POLICY_DESCRIPTION { - pub UserName: ::windows::core::PCWSTR, + pub UserName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_RUNAS_POLICY_DESCRIPTION {} @@ -24749,18 +25376,12 @@ impl ::core::fmt::Debug for FABRIC_RUNAS_POLICY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_RUNAS_POLICY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_RUNAS_POLICY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_RUNAS_POLICY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UserName == other.UserName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_RUNAS_POLICY_DESCRIPTION {} @@ -24770,6 +25391,7 @@ impl ::core::default::Default for FABRIC_RUNAS_POLICY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SAFETY_CHECK { pub Kind: FABRIC_SAFETY_CHECK_KIND, pub Value: *mut ::core::ffi::c_void, @@ -24788,18 +25410,12 @@ impl ::core::fmt::Debug for FABRIC_SAFETY_CHECK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SAFETY_CHECK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SAFETY_CHECK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SAFETY_CHECK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_SAFETY_CHECK {} @@ -24809,6 +25425,7 @@ impl ::core::default::Default for FABRIC_SAFETY_CHECK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SAFETY_CHECK_LIST { pub Count: u32, pub Items: *const FABRIC_SAFETY_CHECK, @@ -24827,18 +25444,12 @@ impl ::core::fmt::Debug for FABRIC_SAFETY_CHECK_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SAFETY_CHECK_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SAFETY_CHECK_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SAFETY_CHECK_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SAFETY_CHECK_LIST {} @@ -24848,6 +25459,7 @@ impl ::core::default::Default for FABRIC_SAFETY_CHECK_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SCALING_MECHANISM { pub ScalingMechanismKind: FABRIC_SCALING_MECHANISM_KIND, pub ScalingMechanismDescription: *mut ::core::ffi::c_void, @@ -24869,18 +25481,13 @@ impl ::core::fmt::Debug for FABRIC_SCALING_MECHANISM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SCALING_MECHANISM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SCALING_MECHANISM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SCALING_MECHANISM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ScalingMechanismKind == other.ScalingMechanismKind + && self.ScalingMechanismDescription == other.ScalingMechanismDescription } } impl ::core::cmp::Eq for FABRIC_SCALING_MECHANISM {} @@ -24890,6 +25497,7 @@ impl ::core::default::Default for FABRIC_SCALING_MECHANISM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { pub MaximumPartitionCount: i32, pub MinimumPartitionCount: i32, @@ -24912,21 +25520,15 @@ impl ::core::fmt::Debug for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAME .finish() } } -unsafe impl ::windows::core::Abi - for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION -{ - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } + self.MaximumPartitionCount == other.MaximumPartitionCount + && self.MinimumPartitionCount == other.MinimumPartitionCount + && self.ScaleIncrement == other.ScaleIncrement + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTAL_NAMED_PARTITION {} @@ -24936,6 +25538,7 @@ impl ::core::default::Default for FABRIC_SCALING_MECHANISM_ADD_REMOVE_INCREMENTA } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { pub MaximumInstanceCount: i32, pub MinimumInstanceCount: i32, @@ -24958,18 +25561,15 @@ impl ::core::fmt::Debug for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MaximumInstanceCount == other.MaximumInstanceCount + && self.MinimumInstanceCount == other.MinimumInstanceCount + && self.ScaleIncrement == other.ScaleIncrement + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_COUNT {} @@ -24979,6 +25579,7 @@ impl ::core::default::Default for FABRIC_SCALING_MECHANISM_PARTITION_INSTANCE_CO } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SCALING_TRIGGER { pub ScalingTriggerKind: FABRIC_SCALING_TRIGGER_KIND, pub ScalingTriggerDescription: *mut ::core::ffi::c_void, @@ -24997,18 +25598,13 @@ impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SCALING_TRIGGER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SCALING_TRIGGER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SCALING_TRIGGER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ScalingTriggerKind == other.ScalingTriggerKind + && self.ScalingTriggerDescription == other.ScalingTriggerDescription } } impl ::core::cmp::Eq for FABRIC_SCALING_TRIGGER {} @@ -25018,8 +25614,9 @@ impl ::core::default::Default for FABRIC_SCALING_TRIGGER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { - pub MetricName: ::windows::core::PCWSTR, + pub MetricName: ::windows_core::PCWSTR, pub LowerLoadThreshold: f64, pub UpperLoadThreshold: f64, pub ScaleIntervalInSeconds: u32, @@ -25042,18 +25639,16 @@ impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MetricName == other.MetricName + && self.LowerLoadThreshold == other.LowerLoadThreshold + && self.UpperLoadThreshold == other.UpperLoadThreshold + && self.ScaleIntervalInSeconds == other.ScaleIntervalInSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD {} @@ -25063,8 +25658,9 @@ impl ::core::default::Default for FABRIC_SCALING_TRIGGER_AVERAGE_PARTITION_LOAD } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { - pub MetricName: ::windows::core::PCWSTR, + pub MetricName: ::windows_core::PCWSTR, pub LowerLoadThreshold: f64, pub UpperLoadThreshold: f64, pub ScaleIntervalInSeconds: u32, @@ -25087,18 +25683,16 @@ impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MetricName == other.MetricName + && self.LowerLoadThreshold == other.LowerLoadThreshold + && self.UpperLoadThreshold == other.UpperLoadThreshold + && self.ScaleIntervalInSeconds == other.ScaleIntervalInSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD {} @@ -25108,16 +25702,21 @@ impl ::core::default::Default for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { pub UseOnlyPrimaryLoad: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1") @@ -25126,27 +25725,27 @@ impl ::core::fmt::Debug for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UseOnlyPrimaryLoad == other.UseOnlyPrimaryLoad && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_SCALING_TRIGGER_AVERAGE_SERVICE_LOAD_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { pub ReplicationQueueStatus: *mut FABRIC_REPLICATOR_QUEUE_STATUS, pub LastReplicationOperationReceivedTimeUtc: ::windows::Win32::Foundation::FILETIME, @@ -25156,12 +25755,15 @@ pub struct FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { pub LastAcknowledgementSentTimeUtc: ::windows::Win32::Foundation::FILETIME, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT") @@ -25184,33 +25786,39 @@ impl ::core::fmt::Debug for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ReplicationQueueStatus == other.ReplicationQueueStatus + && self.LastReplicationOperationReceivedTimeUtc + == other.LastReplicationOperationReceivedTimeUtc + && self.IsInBuild == other.IsInBuild + && self.CopyQueueStatus == other.CopyQueueStatus + && self.LastCopyOperationReceivedTimeUtc == other.LastCopyOperationReceivedTimeUtc + && self.LastAcknowledgementSentTimeUtc == other.LastAcknowledgementSentTimeUtc + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SECRET { - pub Name: ::windows::core::PCWSTR, - pub Version: ::windows::core::PCWSTR, - pub Value: ::windows::core::PCWSTR, - pub Kind: ::windows::core::PCWSTR, - pub ContentType: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, + pub Version: ::windows_core::PCWSTR, + pub Value: ::windows_core::PCWSTR, + pub Kind: ::windows_core::PCWSTR, + pub ContentType: ::windows_core::PCWSTR, } impl ::core::marker::Copy for FABRIC_SECRET {} impl ::core::clone::Clone for FABRIC_SECRET { @@ -25229,18 +25837,16 @@ impl ::core::fmt::Debug for FABRIC_SECRET { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SECRET { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SECRET { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SECRET { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.Version == other.Version + && self.Value == other.Value + && self.Kind == other.Kind + && self.ContentType == other.ContentType } } impl ::core::cmp::Eq for FABRIC_SECRET {} @@ -25250,6 +25856,7 @@ impl ::core::default::Default for FABRIC_SECRET { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SECRET_LIST { pub Count: u32, pub Items: *mut FABRIC_SECRET, @@ -25268,18 +25875,12 @@ impl ::core::fmt::Debug for FABRIC_SECRET_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SECRET_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SECRET_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SECRET_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SECRET_LIST {} @@ -25289,9 +25890,10 @@ impl ::core::default::Default for FABRIC_SECRET_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SECRET_REFERENCE { - pub Name: ::windows::core::PCWSTR, - pub Version: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, + pub Version: ::windows_core::PCWSTR, } impl ::core::marker::Copy for FABRIC_SECRET_REFERENCE {} impl ::core::clone::Clone for FABRIC_SECRET_REFERENCE { @@ -25307,18 +25909,12 @@ impl ::core::fmt::Debug for FABRIC_SECRET_REFERENCE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SECRET_REFERENCE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SECRET_REFERENCE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SECRET_REFERENCE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name && self.Version == other.Version } } impl ::core::cmp::Eq for FABRIC_SECRET_REFERENCE {} @@ -25328,6 +25924,7 @@ impl ::core::default::Default for FABRIC_SECRET_REFERENCE { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SECRET_REFERENCE_LIST { pub Count: u32, pub Items: *mut FABRIC_SECRET_REFERENCE, @@ -25346,18 +25943,12 @@ impl ::core::fmt::Debug for FABRIC_SECRET_REFERENCE_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SECRET_REFERENCE_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SECRET_REFERENCE_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SECRET_REFERENCE_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SECRET_REFERENCE_LIST {} @@ -25367,6 +25958,7 @@ impl ::core::default::Default for FABRIC_SECRET_REFERENCE_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SECURITY_CREDENTIALS { pub Kind: FABRIC_SECURITY_CREDENTIAL_KIND, pub Value: *mut ::core::ffi::c_void, @@ -25385,18 +25977,12 @@ impl ::core::fmt::Debug for FABRIC_SECURITY_CREDENTIALS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SECURITY_CREDENTIALS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SECURITY_CREDENTIALS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SECURITY_CREDENTIALS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_SECURITY_CREDENTIALS {} @@ -25406,9 +25992,10 @@ impl ::core::default::Default for FABRIC_SECURITY_CREDENTIALS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SECURITY_GROUP_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub Sid: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, + pub Sid: ::windows_core::PCWSTR, pub DomainGroupMembers: *const FABRIC_STRING_LIST, pub SystemGroupMembers: *const FABRIC_STRING_LIST, pub DomainUserMembers: *const FABRIC_STRING_LIST, @@ -25432,18 +26019,17 @@ impl ::core::fmt::Debug for FABRIC_SECURITY_GROUP_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SECURITY_GROUP_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SECURITY_GROUP_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SECURITY_GROUP_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.Sid == other.Sid + && self.DomainGroupMembers == other.DomainGroupMembers + && self.SystemGroupMembers == other.SystemGroupMembers + && self.DomainUserMembers == other.DomainUserMembers + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SECURITY_GROUP_DESCRIPTION {} @@ -25453,6 +26039,7 @@ impl ::core::default::Default for FABRIC_SECURITY_GROUP_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_SECURITY_GROUP_DESCRIPTION, @@ -25471,18 +26058,12 @@ impl ::core::fmt::Debug for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST {} @@ -25492,9 +26073,10 @@ impl ::core::default::Default for FABRIC_SECURITY_GROUP_DESCRIPTION_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SECURITY_USER_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, - pub Sid: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, + pub Sid: ::windows_core::PCWSTR, pub ParentSystemGroups: *const FABRIC_STRING_LIST, pub ParentApplicationGroups: *const FABRIC_STRING_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -25516,18 +26098,16 @@ impl ::core::fmt::Debug for FABRIC_SECURITY_USER_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SECURITY_USER_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SECURITY_USER_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SECURITY_USER_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.Sid == other.Sid + && self.ParentSystemGroups == other.ParentSystemGroups + && self.ParentApplicationGroups == other.ParentApplicationGroups + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SECURITY_USER_DESCRIPTION {} @@ -25537,6 +26117,7 @@ impl ::core::default::Default for FABRIC_SECURITY_USER_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SECURITY_USER_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_SECURITY_USER_DESCRIPTION, @@ -25555,18 +26136,12 @@ impl ::core::fmt::Debug for FABRIC_SECURITY_USER_DESCRIPTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SECURITY_USER_DESCRIPTION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SECURITY_USER_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SECURITY_USER_DESCRIPTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SECURITY_USER_DESCRIPTION_LIST {} @@ -25576,6 +26151,7 @@ impl ::core::default::Default for FABRIC_SECURITY_USER_DESCRIPTION_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SEED_NODE_SAFETY_CHECK { pub Reserved: *mut ::core::ffi::c_void, } @@ -25592,18 +26168,12 @@ impl ::core::fmt::Debug for FABRIC_SEED_NODE_SAFETY_CHECK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SEED_NODE_SAFETY_CHECK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SEED_NODE_SAFETY_CHECK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SEED_NODE_SAFETY_CHECK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SEED_NODE_SAFETY_CHECK {} @@ -25613,9 +26183,10 @@ impl ::core::default::Default for FABRIC_SEED_NODE_SAFETY_CHECK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SELECTED_PARTITION { pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SELECTED_PARTITION {} @@ -25633,18 +26204,14 @@ impl ::core::fmt::Debug for FABRIC_SELECTED_PARTITION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SELECTED_PARTITION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SELECTED_PARTITION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SELECTED_PARTITION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SELECTED_PARTITION {} @@ -25654,10 +26221,11 @@ impl ::core::default::Default for FABRIC_SELECTED_PARTITION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICES_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub ServiceTypeName: ::windows::core::PCWSTR, + pub ServiceTypeName: ::windows_core::PCWSTR, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub TotalCount: u32, pub MaxPercentUnhealthyServices: u8, @@ -25685,18 +26253,18 @@ impl ::core::fmt::Debug for FABRIC_SERVICES_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICES_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICES_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICES_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.ServiceTypeName == other.ServiceTypeName + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyServices == other.MaxPercentUnhealthyServices + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICES_HEALTH_EVALUATION {} @@ -25706,6 +26274,7 @@ impl ::core::default::Default for FABRIC_SERVICES_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_CORRELATION_DESCRIPTION { pub ServiceName: *mut u16, pub Scheme: FABRIC_SERVICE_CORRELATION_SCHEME, @@ -25726,18 +26295,14 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_CORRELATION_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_CORRELATION_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_CORRELATION_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_CORRELATION_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.Scheme == other.Scheme + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_CORRELATION_DESCRIPTION {} @@ -25747,6 +26312,7 @@ impl ::core::default::Default for FABRIC_SERVICE_CORRELATION_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_DESCRIPTION { pub Kind: FABRIC_SERVICE_DESCRIPTION_KIND, pub Value: *mut ::core::ffi::c_void, @@ -25765,18 +26331,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_SERVICE_DESCRIPTION {} @@ -25786,11 +26346,12 @@ impl ::core::default::Default for FABRIC_SERVICE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { pub ApplicationName: *mut u16, pub ServiceName: *mut u16, - pub ServiceDnsName: ::windows::core::PCWSTR, - pub ServiceTypeName: ::windows::core::PCWSTR, + pub ServiceDnsName: ::windows_core::PCWSTR, + pub ServiceTypeName: ::windows_core::PCWSTR, pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, pub InitializationDataSize: u32, pub InitializationData: *mut u8, @@ -25819,18 +26380,19 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.ServiceName == other.ServiceName + && self.ServiceDnsName == other.ServiceDnsName + && self.ServiceTypeName == other.ServiceTypeName + && self.ServicePackageActivationMode == other.ServicePackageActivationMode + && self.InitializationDataSize == other.InitializationDataSize + && self.InitializationData == other.InitializationData + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION {} @@ -25840,6 +26402,7 @@ impl ::core::default::Default for FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_GROUP_DESCRIPTION { pub Description: *mut FABRIC_SERVICE_DESCRIPTION, pub MemberCount: u32, @@ -25862,18 +26425,15 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.MemberCount == other.MemberCount + && self.MemberDescriptions == other.MemberDescriptions + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_DESCRIPTION {} @@ -25883,10 +26443,11 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { pub ApplicationName: *mut u16, pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, + pub ServiceTypeName: ::windows_core::PCWSTR, pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, pub InitializationDataSize: u32, pub InitializationData: *mut u8, @@ -25914,18 +26475,18 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.ServicePackageActivationMode == other.ServicePackageActivationMode + && self.InitializationDataSize == other.InitializationDataSize + && self.InitializationData == other.InitializationData + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION {} @@ -25935,8 +26496,9 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { - pub ServiceType: ::windows::core::PCWSTR, + pub ServiceType: ::windows_core::PCWSTR, pub ServiceName: *mut u16, pub InitializationDataSize: u32, pub InitializationData: *const u8, @@ -25963,18 +26525,18 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceType == other.ServiceType + && self.ServiceName == other.ServiceName + && self.InitializationDataSize == other.InitializationDataSize + && self.InitializationData == other.InitializationData + && self.MetricCount == other.MetricCount + && self.Metrics == other.Metrics + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION {} @@ -25984,8 +26546,9 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { - pub ServiceType: ::windows::core::PCWSTR, + pub ServiceType: ::windows_core::PCWSTR, pub ServiceName: *mut u16, pub Reserved: *mut ::core::ffi::c_void, } @@ -26004,18 +26567,14 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceType == other.ServiceType + && self.ServiceName == other.ServiceName + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM {} @@ -26025,6 +26584,7 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESUL } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_ITEM, @@ -26043,18 +26603,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST {} @@ -26064,6 +26618,7 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESUL } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { pub ApplicationName: *mut u16, pub ServiceNameFilter: *mut u16, @@ -26084,18 +26639,14 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.ServiceNameFilter == other.ServiceNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION {} @@ -26105,6 +26656,7 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { pub ServiceName: *mut u16, pub Members: *mut FABRIC_SERVICE_GROUP_MEMBER_MEMBER_QUERY_RESULT_LIST, @@ -26125,18 +26677,14 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.Members == other.Members + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM {} @@ -26146,6 +26694,7 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_ITEM, @@ -26164,18 +26713,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST {} @@ -26185,10 +26728,11 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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 ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, + pub ServiceGroupTypeNameFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION {} @@ -26210,18 +26754,15 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.ServiceGroupTypeNameFilter == other.ServiceGroupTypeNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION {} @@ -26231,10 +26772,11 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIP } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] 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 ServiceManifestVersion: ::windows_core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM {} @@ -26256,18 +26798,15 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceGroupMemberTypeDescription == other.ServiceGroupMemberTypeDescription + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.ServiceManifestName == other.ServiceManifestName + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM {} @@ -26277,6 +26816,7 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ITEM, @@ -26295,18 +26835,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST {} @@ -26316,18 +26850,23 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_ } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] 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 Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION") @@ -26338,37 +26877,43 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.Members == other.Members + && self.UseImplicitFactory == other.UseImplicitFactory + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST") @@ -26377,29 +26922,28 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_SERVICE_GROUP_TYPE_DESCRIPTION_LIST { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { - pub ServiceTypeName: ::windows::core::PCWSTR, + pub ServiceTypeName: ::windows_core::PCWSTR, pub LoadMetrics: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST, pub Reserved: *mut ::core::ffi::c_void, } @@ -26418,18 +26962,14 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceTypeName == other.ServiceTypeName + && self.LoadMetrics == other.LoadMetrics + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION {} @@ -26439,6 +26979,7 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION, @@ -26457,18 +26998,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_LIST {} @@ -26478,6 +27013,7 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_TYPE_MEMBER_DESCRIPTION_L } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { pub Description: *mut FABRIC_SERVICE_UPDATE_DESCRIPTION, pub Reserved: *mut ::core::ffi::c_void, @@ -26496,18 +27032,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION {} @@ -26517,6 +27047,8 @@ impl ::core::default::Default for FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_SERVICE_HEALTH { pub ServiceName: *mut u16, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -26524,12 +27056,15 @@ pub struct FABRIC_SERVICE_HEALTH { pub PartitionHealthStates: *const FABRIC_PARTITION_HEALTH_STATE_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_SERVICE_HEALTH") @@ -26541,29 +27076,32 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.PartitionHealthStates == other.PartitionHealthStates + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_SERVICE_HEALTH { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub ServiceName: *mut u16, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, @@ -26586,18 +27124,16 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.ServiceName == other.ServiceName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_EVALUATION {} @@ -26607,6 +27143,7 @@ impl ::core::default::Default for FABRIC_SERVICE_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -26625,18 +27162,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UnhealthyEvaluations == other.UnhealthyEvaluations && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_EX1 {} @@ -26646,6 +27177,7 @@ impl ::core::default::Default for FABRIC_SERVICE_HEALTH_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_HEALTH_EX2 { pub HealthStatistics: *const FABRIC_HEALTH_STATISTICS, pub Reserved: *mut ::core::ffi::c_void, @@ -26664,18 +27196,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStatistics == other.HealthStatistics && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_EX2 {} @@ -26685,6 +27211,8 @@ impl ::core::default::Default for FABRIC_SERVICE_HEALTH_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { pub ServiceName: *mut u16, pub HealthPolicy: *const FABRIC_APPLICATION_HEALTH_POLICY, @@ -26692,12 +27220,15 @@ pub struct FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { pub PartitionsFilter: *const FABRIC_PARTITION_HEALTH_STATES_FILTER, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION") @@ -26709,37 +27240,44 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.HealthPolicy == other.HealthPolicy + && self.EventsFilter == other.EventsFilter + && self.PartitionsFilter == other.PartitionsFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { pub HealthStatisticsFilter: *const FABRIC_SERVICE_HEALTH_STATISTICS_FILTER, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1") @@ -26748,38 +27286,42 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStatisticsFilter == other.HealthStatisticsFilter + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_SERVICE_HEALTH_REPORT { pub ServiceName: *mut u16, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_REPORT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_REPORT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_SERVICE_HEALTH_REPORT") @@ -26789,27 +27331,28 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_REPORT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_REPORT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_REPORT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_SERVICE_HEALTH_REPORT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_HEALTH_STATE { pub ServiceName: *mut u16, pub AggregatedHealthState: FABRIC_HEALTH_STATE, @@ -26830,18 +27373,14 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE {} @@ -26851,6 +27390,7 @@ impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_HEALTH_STATES_FILTER { pub HealthStateFilter: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -26869,18 +27409,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATES_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATES_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATES_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATES_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATES_FILTER {} @@ -26890,6 +27424,7 @@ impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATES_FILTER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_HEALTH_STATE_CHUNK { pub ServiceName: *mut u16, pub HealthState: FABRIC_HEALTH_STATE, @@ -26915,18 +27450,15 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_CHUNK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATE_CHUNK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_CHUNK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_CHUNK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.HealthState == other.HealthState + && self.PartitionHealthStateChunks == other.PartitionHealthStateChunks + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_CHUNK {} @@ -26936,6 +27468,7 @@ impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_CHUNK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_HEALTH_STATE_CHUNK, @@ -26958,18 +27491,15 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count + && self.Items == other.Items + && self.TotalCount == other.TotalCount + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST {} @@ -26979,6 +27509,7 @@ impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_CHUNK_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_HEALTH_STATE_FILTER { pub HealthStateFilter: u32, pub ServiceNameFilter: *mut u16, @@ -27001,18 +27532,15 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATE_FILTER { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_FILTER { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.HealthStateFilter == other.HealthStateFilter + && self.ServiceNameFilter == other.ServiceNameFilter + && self.PartitionFilters == other.PartitionFilters + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_FILTER {} @@ -27022,6 +27550,7 @@ impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_FILTER { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_HEALTH_STATE_FILTER, @@ -27040,18 +27569,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST {} @@ -27061,6 +27584,7 @@ impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_FILTER_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_HEALTH_STATE_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_HEALTH_STATE, @@ -27079,18 +27603,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATE_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATE_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATE_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATE_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATE_LIST {} @@ -27100,16 +27618,21 @@ impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATE_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { pub ExcludeHealthStatistics: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_SERVICE_HEALTH_STATISTICS_FILTER") @@ -27118,29 +27641,29 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ExcludeHealthStatistics == other.ExcludeHealthStatistics + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_SERVICE_HEALTH_STATISTICS_FILTER { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, pub Weight: FABRIC_SERVICE_LOAD_METRIC_WEIGHT, pub PrimaryDefaultLoad: u32, pub SecondaryDefaultLoad: u32, @@ -27163,18 +27686,16 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.Weight == other.Weight + && self.PrimaryDefaultLoad == other.PrimaryDefaultLoad + && self.SecondaryDefaultLoad == other.SecondaryDefaultLoad + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION {} @@ -27184,6 +27705,7 @@ impl ::core::default::Default for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION, @@ -27202,18 +27724,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST {} @@ -27223,8 +27739,9 @@ impl ::core::default::Default for FABRIC_SERVICE_LOAD_METRIC_DESCRIPTION_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION {} @@ -27241,18 +27758,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION {} @@ -27262,6 +27773,7 @@ impl ::core::default::Default for FABRIC_SERVICE_NAME_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_NAME_QUERY_RESULT { pub ServiceName: *mut u16, pub Reserved: *mut ::core::ffi::c_void, @@ -27280,18 +27792,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_NAME_QUERY_RESULT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_NAME_QUERY_RESULT { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_NAME_QUERY_RESULT { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_NAME_QUERY_RESULT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_NAME_QUERY_RESULT {} @@ -27301,9 +27807,10 @@ impl ::core::default::Default for FABRIC_SERVICE_NAME_QUERY_RESULT { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_NOTIFICATION { pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub EndpointCount: u32, pub Endpoints: *mut FABRIC_RESOLVED_SERVICE_ENDPOINT, pub PartitionInfo: *mut FABRIC_SERVICE_PARTITION_INFORMATION, @@ -27327,18 +27834,17 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_NOTIFICATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_NOTIFICATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_NOTIFICATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_NOTIFICATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.EndpointCount == other.EndpointCount + && self.Endpoints == other.Endpoints + && self.PartitionInfo == other.PartitionInfo + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_NOTIFICATION {} @@ -27348,6 +27854,7 @@ impl ::core::default::Default for FABRIC_SERVICE_NOTIFICATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { pub Name: *mut u16, pub Flags: FABRIC_SERVICE_NOTIFICATION_FILTER_FLAGS, @@ -27368,18 +27875,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name && self.Flags == other.Flags && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION {} @@ -27389,6 +27890,7 @@ impl ::core::default::Default for FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_PARTITION_INFORMATION { pub Kind: FABRIC_SERVICE_PARTITION_KIND, pub Value: *mut ::core::ffi::c_void, @@ -27407,18 +27909,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_INFORMATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_PARTITION_INFORMATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_INFORMATION {} @@ -27428,9 +27924,10 @@ impl ::core::default::Default for FABRIC_SERVICE_PARTITION_INFORMATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { pub ServiceName: *mut u16, - pub PartitionIdFilter: ::windows::core::GUID, + pub PartitionIdFilter: ::windows_core::GUID, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION {} @@ -27448,18 +27945,14 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.PartitionIdFilter == other.PartitionIdFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION {} @@ -27469,8 +27962,9 @@ impl ::core::default::Default for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { - pub ContinuationToken: ::windows::core::PCWSTR, + pub ContinuationToken: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 {} @@ -27487,18 +27981,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ContinuationToken == other.ContinuationToken && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 {} @@ -27508,6 +27996,7 @@ impl ::core::default::Default for FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION_EX1 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut ::core::ffi::c_void, @@ -27526,18 +28015,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM {} @@ -27547,6 +28030,7 @@ impl ::core::default::Default for FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_PARTITION_QUERY_RESULT_ITEM, @@ -27565,18 +28049,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST {} @@ -27586,6 +28064,7 @@ impl ::core::default::Default for FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { pub Type: FABRIC_PLACEMENT_POLICY_TYPE, pub Value: *mut ::core::ffi::c_void, @@ -27604,18 +28083,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Type == other.Type && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION {} @@ -27625,6 +28098,7 @@ impl ::core::default::Default for FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_PLACEMENT_POLICY_LIST { pub PolicyCount: u32, pub Policies: *mut FABRIC_SERVICE_PLACEMENT_POLICY_DESCRIPTION, @@ -27643,18 +28117,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PolicyCount == other.PolicyCount && self.Policies == other.Policies } } impl ::core::cmp::Eq for FABRIC_SERVICE_PLACEMENT_POLICY_LIST {} @@ -27664,6 +28132,7 @@ impl ::core::default::Default for FABRIC_SERVICE_PLACEMENT_POLICY_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_QUERY_DESCRIPTION { pub ApplicationName: *mut u16, pub ServiceNameFilter: *mut u16, @@ -27684,18 +28153,14 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.ServiceNameFilter == other.ServiceNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_DESCRIPTION {} @@ -27705,8 +28170,9 @@ impl ::core::default::Default for FABRIC_SERVICE_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { - pub ContinuationToken: ::windows::core::PCWSTR, + pub ContinuationToken: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 {} @@ -27723,18 +28189,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ContinuationToken == other.ContinuationToken && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 {} @@ -27744,8 +28204,9 @@ impl ::core::default::Default for FABRIC_SERVICE_QUERY_DESCRIPTION_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { - pub ServiceTypeNameFilter: ::windows::core::PCWSTR, + pub ServiceTypeNameFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 {} @@ -27762,18 +28223,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceTypeNameFilter == other.ServiceTypeNameFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 {} @@ -27783,6 +28238,7 @@ impl ::core::default::Default for FABRIC_SERVICE_QUERY_DESCRIPTION_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { pub MaxResults: i32, pub Reserved: *mut ::core::ffi::c_void, @@ -27801,18 +28257,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MaxResults == other.MaxResults && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 {} @@ -27822,6 +28272,7 @@ impl ::core::default::Default for FABRIC_SERVICE_QUERY_DESCRIPTION_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_QUERY_RESULT_ITEM { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut ::core::ffi::c_void, @@ -27840,18 +28291,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_RESULT_ITEM {} @@ -27861,6 +28306,7 @@ impl ::core::default::Default for FABRIC_SERVICE_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_QUERY_RESULT_ITEM, @@ -27879,18 +28325,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_QUERY_RESULT_LIST {} @@ -27900,8 +28340,9 @@ impl ::core::default::Default for FABRIC_SERVICE_QUERY_RESULT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub ReplicaIdOrInstanceIdFilter: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -27923,18 +28364,14 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.ReplicaIdOrInstanceIdFilter == other.ReplicaIdOrInstanceIdFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION {} @@ -27944,6 +28381,7 @@ impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { pub ReplicaStatusFilter: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -27962,18 +28400,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ReplicaStatusFilter == other.ReplicaStatusFilter && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 {} @@ -27983,8 +28415,9 @@ impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { - pub ContinuationToken: ::windows::core::PCWSTR, + pub ContinuationToken: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 {} @@ -28001,18 +28434,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ContinuationToken == other.ContinuationToken && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 {} @@ -28022,6 +28449,7 @@ impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut ::core::ffi::c_void, @@ -28040,18 +28468,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM {} @@ -28061,6 +28483,7 @@ impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_REPLICA_QUERY_RESULT_ITEM, @@ -28079,18 +28502,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST {} @@ -28100,6 +28517,7 @@ impl ::core::default::Default for FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_SCALING_POLICY { pub ServiceScalingPolicyTrigger: FABRIC_SCALING_TRIGGER, pub ServiceScalingPolicyMechanism: FABRIC_SCALING_MECHANISM, @@ -28126,18 +28544,14 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_SCALING_POLICY { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_SCALING_POLICY { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_SCALING_POLICY { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_SCALING_POLICY { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceScalingPolicyTrigger == other.ServiceScalingPolicyTrigger + && self.ServiceScalingPolicyMechanism == other.ServiceScalingPolicyMechanism + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_SCALING_POLICY {} @@ -28147,6 +28561,7 @@ impl ::core::default::Default for FABRIC_SERVICE_SCALING_POLICY { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_TYPE_DESCRIPTION { pub Kind: FABRIC_SERVICE_KIND, pub Value: *mut ::core::ffi::c_void, @@ -28165,18 +28580,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_DESCRIPTION {} @@ -28186,9 +28595,10 @@ impl ::core::default::Default for FABRIC_SERVICE_TYPE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { - pub Name: ::windows::core::PCWSTR, - pub Value: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, + pub Value: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION {} @@ -28206,18 +28616,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name && self.Value == other.Value && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION {} @@ -28227,6 +28631,7 @@ impl ::core::default::Default for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION, @@ -28245,18 +28650,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST {} @@ -28266,6 +28665,7 @@ impl ::core::default::Default for FABRIC_SERVICE_TYPE_DESCRIPTION_EXTENSION_LIST } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_TYPE_DESCRIPTION, @@ -28284,18 +28684,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST {} @@ -28305,6 +28699,7 @@ impl ::core::default::Default for FABRIC_SERVICE_TYPE_DESCRIPTION_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_TYPE_HEALTH_POLICY { pub MaxPercentUnhealthyServices: u8, pub MaxPercentUnhealthyPartitionsPerService: u8, @@ -28336,18 +28731,17 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_HEALTH_POLICY { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_HEALTH_POLICY { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_HEALTH_POLICY { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_HEALTH_POLICY { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MaxPercentUnhealthyServices == other.MaxPercentUnhealthyServices + && self.MaxPercentUnhealthyPartitionsPerService + == other.MaxPercentUnhealthyPartitionsPerService + && self.MaxPercentUnhealthyReplicasPerPartition + == other.MaxPercentUnhealthyReplicasPerPartition + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_HEALTH_POLICY {} @@ -28357,6 +28751,7 @@ impl ::core::default::Default for FABRIC_SERVICE_TYPE_HEALTH_POLICY { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { pub Count: u32, pub Items: *mut FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM, @@ -28375,18 +28770,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP {} @@ -28396,8 +28785,9 @@ impl ::core::default::Default for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { - pub ServiceTypeName: ::windows::core::PCWSTR, + pub ServiceTypeName: ::windows_core::PCWSTR, pub ServiceTypeHealthPolicy: *const FABRIC_SERVICE_TYPE_HEALTH_POLICY, } impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM {} @@ -28414,18 +28804,13 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceTypeName == other.ServiceTypeName + && self.ServiceTypeHealthPolicy == other.ServiceTypeHealthPolicy } } impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM {} @@ -28435,10 +28820,11 @@ impl ::core::default::Default for FABRIC_SERVICE_TYPE_HEALTH_POLICY_MAP_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub ApplicationTypeVersion: ::windows::core::PCWSTR, - pub ServiceTypeNameFilter: ::windows::core::PCWSTR, + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, + pub ServiceTypeNameFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION {} @@ -28457,18 +28843,15 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.ServiceTypeNameFilter == other.ServiceTypeNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION {} @@ -28478,9 +28861,10 @@ impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { pub ServiceTypeDescription: *mut FABRIC_SERVICE_TYPE_DESCRIPTION, - pub ServiceManifestVersion: ::windows::core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM {} @@ -28498,18 +28882,14 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceTypeDescription == other.ServiceTypeDescription + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM {} @@ -28519,8 +28899,9 @@ impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - pub ServiceManifestName: ::windows::core::PCWSTR, + pub ServiceManifestName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 {} @@ -28537,18 +28918,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceManifestName == other.ServiceManifestName && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 {} @@ -28558,16 +28933,21 @@ impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { pub IsServiceGroup: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2") @@ -28576,27 +28956,26 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.IsServiceGroup == other.IsServiceGroup && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { pub Count: u32, pub Items: *const FABRIC_SERVICE_TYPE_QUERY_RESULT_ITEM, @@ -28615,18 +28994,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST {} @@ -28636,6 +29009,7 @@ impl ::core::default::Default for FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SERVICE_UPDATE_DESCRIPTION { pub Kind: FABRIC_SERVICE_DESCRIPTION_KIND, pub Value: *mut ::core::ffi::c_void, @@ -28654,18 +29028,12 @@ impl ::core::fmt::Debug for FABRIC_SERVICE_UPDATE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SERVICE_UPDATE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SERVICE_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SERVICE_UPDATE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_SERVICE_UPDATE_DESCRIPTION {} @@ -28675,8 +29043,9 @@ impl ::core::default::Default for FABRIC_SERVICE_UPDATE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SINGLETON_PARTITION_INFORMATION { - pub Id: ::windows::core::GUID, + pub Id: ::windows_core::GUID, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_SINGLETON_PARTITION_INFORMATION {} @@ -28693,18 +29062,12 @@ impl ::core::fmt::Debug for FABRIC_SINGLETON_PARTITION_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SINGLETON_PARTITION_INFORMATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SINGLETON_PARTITION_INFORMATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SINGLETON_PARTITION_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Id == other.Id && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SINGLETON_PARTITION_INFORMATION {} @@ -28714,17 +29077,22 @@ impl ::core::default::Default for FABRIC_SINGLETON_PARTITION_INFORMATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STARTED_EVENT { pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, pub ChaosParameters: *mut FABRIC_CHAOS_PARAMETERS, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STARTED_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STARTED_EVENT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STARTED_EVENT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STARTED_EVENT") @@ -28734,39 +29102,44 @@ impl ::core::fmt::Debug for FABRIC_STARTED_EVENT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STARTED_EVENT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STARTED_EVENT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STARTED_EVENT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.TimeStampUtc == other.TimeStampUtc + && self.ChaosParameters == other.ChaosParameters + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STARTED_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STARTED_EVENT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { - pub OperationId: ::windows::core::GUID, - pub ClusterConfigPath: ::windows::core::PCWSTR, + pub OperationId: ::windows_core::GUID, + pub ClusterConfigPath: ::windows_core::PCWSTR, pub RollbackOnFailure: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_START_APPROVED_UPGRADES_DESCRIPTION") @@ -28777,37 +29150,43 @@ impl ::core::fmt::Debug for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.OperationId == other.OperationId + && self.ClusterConfigPath == other.ClusterConfigPath + && self.RollbackOnFailure == other.RollbackOnFailure + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_START_APPROVED_UPGRADES_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_START_CHAOS_DESCRIPTION { pub ChaosParameters: *mut FABRIC_CHAOS_PARAMETERS, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_START_CHAOS_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_START_CHAOS_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_START_CHAOS_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_START_CHAOS_DESCRIPTION") @@ -28816,31 +29195,30 @@ impl ::core::fmt::Debug for FABRIC_START_CHAOS_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_START_CHAOS_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_START_CHAOS_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_START_CHAOS_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ChaosParameters == other.ChaosParameters && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_START_CHAOS_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_START_CHAOS_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_START_NODE_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub NodeInstanceId: u64, - pub IPAddressOrFQDN: ::windows::core::PCWSTR, + pub IPAddressOrFQDN: ::windows_core::PCWSTR, pub ClusterConnectionPort: u32, pub Reserved: *mut ::core::ffi::c_void, } @@ -28861,18 +29239,16 @@ impl ::core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_START_NODE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_START_NODE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_START_NODE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.IPAddressOrFQDN == other.IPAddressOrFQDN + && self.ClusterConnectionPort == other.ClusterConnectionPort + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_START_NODE_DESCRIPTION {} @@ -28882,6 +29258,7 @@ impl ::core::default::Default for FABRIC_START_NODE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_START_NODE_DESCRIPTION2 { pub Kind: FABRIC_START_NODE_DESCRIPTION_KIND, pub Value: *mut ::core::ffi::c_void, @@ -28900,18 +29277,12 @@ impl ::core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_START_NODE_DESCRIPTION2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_START_NODE_DESCRIPTION2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_START_NODE_DESCRIPTION2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_START_NODE_DESCRIPTION2 {} @@ -28921,10 +29292,11 @@ impl ::core::default::Default for FABRIC_START_NODE_DESCRIPTION2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub NodeInstanceId: u64, - pub IPAddressOrFQDN: ::windows::core::PCWSTR, + pub IPAddressOrFQDN: ::windows_core::PCWSTR, pub ClusterConnectionPort: u32, pub Reserved: *mut ::core::ffi::c_void, } @@ -28945,18 +29317,16 @@ impl ::core::fmt::Debug for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.IPAddressOrFQDN == other.IPAddressOrFQDN + && self.ClusterConnectionPort == other.ClusterConnectionPort + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME {} @@ -28966,6 +29336,7 @@ impl ::core::default::Default for FABRIC_START_NODE_DESCRIPTION_USING_NODE_NAME } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_START_NODE_STATUS { pub NodeResult: *mut FABRIC_NODE_RESULT, pub Reserved: *mut ::core::ffi::c_void, @@ -28984,18 +29355,12 @@ impl ::core::fmt::Debug for FABRIC_START_NODE_STATUS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_START_NODE_STATUS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_START_NODE_STATUS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_START_NODE_STATUS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeResult == other.NodeResult && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_START_NODE_STATUS {} @@ -29005,8 +29370,9 @@ impl ::core::default::Default for FABRIC_START_NODE_STATUS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { - pub OperationId: ::windows::core::GUID, + pub OperationId: ::windows_core::GUID, pub PartitionSelector: *mut FABRIC_PARTITION_SELECTOR, pub DataLossMode: FABRIC_DATA_LOSS_MODE, pub Reserved: *mut ::core::ffi::c_void, @@ -29027,18 +29393,15 @@ impl ::core::fmt::Debug for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.OperationId == other.OperationId + && self.PartitionSelector == other.PartitionSelector + && self.DataLossMode == other.DataLossMode + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION {} @@ -29048,8 +29411,9 @@ impl ::core::default::Default for FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { - pub OperationId: ::windows::core::GUID, + pub OperationId: ::windows_core::GUID, pub PartitionSelector: *mut FABRIC_PARTITION_SELECTOR, pub QuorumLossMode: FABRIC_QUORUM_LOSS_MODE, pub QuorumLossDurationInMilliSeconds: i32, @@ -29075,18 +29439,16 @@ impl ::core::fmt::Debug for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.OperationId == other.OperationId + && self.PartitionSelector == other.PartitionSelector + && self.QuorumLossMode == other.QuorumLossMode + && self.QuorumLossDurationInMilliSeconds == other.QuorumLossDurationInMilliSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION {} @@ -29096,8 +29458,9 @@ impl ::core::default::Default for FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_START_PARTITION_RESTART_DESCRIPTION { - pub OperationId: ::windows::core::GUID, + pub OperationId: ::windows_core::GUID, pub PartitionSelector: *mut FABRIC_PARTITION_SELECTOR, pub RestartPartitionMode: FABRIC_RESTART_PARTITION_MODE, pub Reserved: *mut ::core::ffi::c_void, @@ -29118,18 +29481,15 @@ impl ::core::fmt::Debug for FABRIC_START_PARTITION_RESTART_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_START_PARTITION_RESTART_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_START_PARTITION_RESTART_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_START_PARTITION_RESTART_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.OperationId == other.OperationId + && self.PartitionSelector == other.PartitionSelector + && self.RestartPartitionMode == other.RestartPartitionMode + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_START_PARTITION_RESTART_DESCRIPTION {} @@ -29139,8 +29499,9 @@ impl ::core::default::Default for FABRIC_START_PARTITION_RESTART_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_START_UPGRADE_DESCRIPTION { - pub ClusterConfig: ::windows::core::PCWSTR, + pub ClusterConfig: ::windows_core::PCWSTR, pub HealthCheckRetryTimeoutInSeconds: u32, pub HealthCheckWaitDurationInSeconds: u32, pub HealthCheckStableDurationInSeconds: u32, @@ -29196,18 +29557,23 @@ impl ::core::fmt::Debug for FABRIC_START_UPGRADE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_START_UPGRADE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_START_UPGRADE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_START_UPGRADE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ClusterConfig == other.ClusterConfig + && self.HealthCheckRetryTimeoutInSeconds == other.HealthCheckRetryTimeoutInSeconds + && self.HealthCheckWaitDurationInSeconds == other.HealthCheckWaitDurationInSeconds + && self.HealthCheckStableDurationInSeconds == other.HealthCheckStableDurationInSeconds + && self.UpgradeDomainTimeoutInSeconds == other.UpgradeDomainTimeoutInSeconds + && self.UpgradeTimeoutInSeconds == other.UpgradeTimeoutInSeconds + && self.MaxPercentUnhealthyApplications == other.MaxPercentUnhealthyApplications + && self.MaxPercentUnhealthyNodes == other.MaxPercentUnhealthyNodes + && self.MaxPercentDeltaUnhealthyNodes == other.MaxPercentDeltaUnhealthyNodes + && self.MaxPercentUpgradeDomainDeltaUnhealthyNodes + == other.MaxPercentUpgradeDomainDeltaUnhealthyNodes + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_START_UPGRADE_DESCRIPTION {} @@ -29217,16 +29583,21 @@ impl ::core::default::Default for FABRIC_START_UPGRADE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_START_UPGRADE_DESCRIPTION_EX1 { pub ApplicationHealthPolicyMap: *const FABRIC_APPLICATION_HEALTH_POLICY_MAP, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_START_UPGRADE_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_START_UPGRADE_DESCRIPTION_EX1") @@ -29238,38 +29609,39 @@ impl ::core::fmt::Debug for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationHealthPolicyMap == other.ApplicationHealthPolicyMap + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_START_UPGRADE_DESCRIPTION_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_START_UPGRADE_DESCRIPTION_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION { pub ApplicationName: *mut u16, pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, + pub ServiceTypeName: ::windows_core::PCWSTR, pub InitializationDataSize: u32, pub InitializationData: *mut u8, pub PartitionScheme: FABRIC_PARTITION_SCHEME, pub PartitionSchemeDescription: *mut ::core::ffi::c_void, pub TargetReplicaSetSize: i32, pub MinReplicaSetSize: i32, - pub PlacementConstraints: ::windows::core::PCWSTR, + pub PlacementConstraints: ::windows_core::PCWSTR, pub CorrelationCount: u32, pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, pub MetricCount: u32, @@ -29277,12 +29649,15 @@ pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION { pub HasPersistedState: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STATEFUL_SERVICE_DESCRIPTION") @@ -29308,27 +29683,41 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } - } -} + self.ApplicationName == other.ApplicationName + && self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.InitializationDataSize == other.InitializationDataSize + && self.InitializationData == other.InitializationData + && self.PartitionScheme == other.PartitionScheme + && self.PartitionSchemeDescription == other.PartitionSchemeDescription + && self.TargetReplicaSetSize == other.TargetReplicaSetSize + && self.MinReplicaSetSize == other.MinReplicaSetSize + && self.PlacementConstraints == other.PlacementConstraints + && self.CorrelationCount == other.CorrelationCount + && self.Correlations == other.Correlations + && self.MetricCount == other.MetricCount + && self.Metrics == other.Metrics + && self.HasPersistedState == other.HasPersistedState + && self.Reserved == other.Reserved + } +} +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, pub FailoverSettings: *mut FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS, @@ -29349,18 +29738,14 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PolicyList == other.PolicyList + && self.FailoverSettings == other.FailoverSettings + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 {} @@ -29370,17 +29755,22 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { pub IsDefaultMoveCostSpecified: ::windows::Win32::Foundation::BOOLEAN, pub DefaultMoveCost: FABRIC_MOVE_COST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2") @@ -29393,30 +29783,31 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.IsDefaultMoveCostSpecified == other.IsDefaultMoveCostSpecified + && self.DefaultMoveCost == other.DefaultMoveCost + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, - pub ServiceDnsName: ::windows::core::PCWSTR, + pub ServiceDnsName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 {} @@ -29437,18 +29828,14 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServicePackageActivationMode == other.ServicePackageActivationMode + && self.ServiceDnsName == other.ServiceDnsName + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 {} @@ -29458,6 +29845,7 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { pub ScalingPolicyCount: u32, pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, @@ -29478,18 +29866,14 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ScalingPolicyCount == other.ScalingPolicyCount + && self.ServiceScalingPolicies == other.ServiceScalingPolicies + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 {} @@ -29499,6 +29883,7 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_DESCRIPTION_EX4 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { pub Flags: u32, pub ReplicaRestartWaitDurationSeconds: u32, @@ -29527,18 +29912,15 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Flags == other.Flags + && self.ReplicaRestartWaitDurationSeconds == other.ReplicaRestartWaitDurationSeconds + && self.QuorumLossWaitDurationSeconds == other.QuorumLossWaitDurationSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS {} @@ -29548,6 +29930,7 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { pub StandByReplicaKeepDurationSeconds: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -29569,18 +29952,13 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.StandByReplicaKeepDurationSeconds == other.StandByReplicaKeepDurationSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 {} @@ -29590,6 +29968,7 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_FAILOVER_SETTINGS_EX1 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { pub PartitionInformation: *const FABRIC_SERVICE_PARTITION_INFORMATION, pub TargetReplicaSetSize: u32, @@ -29621,18 +30000,18 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionInformation == other.PartitionInformation + && self.TargetReplicaSetSize == other.TargetReplicaSetSize + && self.MinReplicaSetSize == other.MinReplicaSetSize + && self.HealthState == other.HealthState + && self.PartitionStatus == other.PartitionStatus + && self.LastQuorumLossDurationInSeconds == other.LastQuorumLossDurationInSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM {} @@ -29642,6 +30021,7 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { pub PrimaryEpoch: FABRIC_EPOCH, pub Reserved: *mut ::core::ffi::c_void, @@ -29660,18 +30040,12 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_ .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PrimaryEpoch == other.PrimaryEpoch && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT_ITEM_EX1 {} @@ -29681,20 +30055,25 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_PARTITION_QUERY_RESULT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, pub HasPersistedState: ::windows::Win32::Foundation::BOOLEAN, pub HealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM") @@ -29707,27 +30086,31 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.HasPersistedState == other.HasPersistedState + && self.HealthState == other.HealthState + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { pub ServiceStatus: FABRIC_QUERY_SERVICE_STATUS, pub Reserved: *mut ::core::ffi::c_void, @@ -29746,18 +30129,12 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceStatus == other.ServiceStatus && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 {} @@ -29767,16 +30144,21 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX1 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { pub IsServiceGroup: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2") @@ -29785,40 +30167,43 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.IsServiceGroup == other.IsServiceGroup && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub ReplicaId: i64, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH") @@ -29830,27 +30215,30 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.ReplicaId == other.ReplicaId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -29869,18 +30257,12 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UnhealthyEvaluations == other.UnhealthyEvaluations && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 {} @@ -29890,18 +30272,23 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub ReplicaId: i64, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT") @@ -29912,29 +30299,31 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.ReplicaId == other.ReplicaId + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_REPORT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub ReplicaId: i64, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut ::core::ffi::c_void, @@ -29955,18 +30344,15 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.ReplicaId == other.ReplicaId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE {} @@ -29976,6 +30362,7 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -29994,18 +30381,12 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UnhealthyEvaluations == other.UnhealthyEvaluations && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_EX1 {} @@ -30015,13 +30396,14 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_HEALTH_STATE_E } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { pub ReplicaId: i64, pub ReplicaRole: FABRIC_REPLICA_ROLE, pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub ReplicaAddress: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, + pub ReplicaAddress: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub LastInBuildDurationInSeconds: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -30048,18 +30430,19 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ReplicaId == other.ReplicaId + && self.ReplicaRole == other.ReplicaRole + && self.ReplicaStatus == other.ReplicaStatus + && self.AggregatedHealthState == other.AggregatedHealthState + && self.ReplicaAddress == other.ReplicaAddress + && self.NodeName == other.NodeName + && self.LastInBuildDurationInSeconds == other.LastInBuildDurationInSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_ITEM {} @@ -30069,20 +30452,25 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_REPLICA_QUERY_RESULT_I } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { - pub ServiceTypeName: ::windows::core::PCWSTR, - pub PlacementConstraints: ::windows::core::PCWSTR, + 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 Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION") @@ -30095,27 +30483,31 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceTypeName == other.ServiceTypeName + && self.PlacementConstraints == other.PlacementConstraints + && self.LoadMetrics == other.LoadMetrics + && self.Extensions == other.Extensions + && self.HasPersistedState == other.HasPersistedState + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -30134,18 +30526,12 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PolicyList == other.PolicyList && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 {} @@ -30155,6 +30541,7 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_TYPE_DESCRIPTION_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { pub Flags: u32, pub TargetReplicaSetSize: i32, @@ -30185,18 +30572,16 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Flags == other.Flags + && self.TargetReplicaSetSize == other.TargetReplicaSetSize + && self.ReplicaRestartWaitDurationSeconds == other.ReplicaRestartWaitDurationSeconds + && self.QuorumLossWaitDurationSeconds == other.QuorumLossWaitDurationSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION {} @@ -30206,6 +30591,7 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { pub StandByReplicaKeepDurationSeconds: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -30227,18 +30613,13 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.StandByReplicaKeepDurationSeconds == other.StandByReplicaKeepDurationSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 {} @@ -30248,6 +30629,7 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX1 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { pub MinReplicaSetSize: i32, pub Reserved: *mut ::core::ffi::c_void, @@ -30266,18 +30648,12 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.MinReplicaSetSize == other.MinReplicaSetSize && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 {} @@ -30287,8 +30663,9 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX2 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { - pub PlacementConstraints: ::windows::core::PCWSTR, + pub PlacementConstraints: ::windows_core::PCWSTR, pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, pub CorrelationCount: u32, pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, @@ -30315,18 +30692,18 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PlacementConstraints == other.PlacementConstraints + && self.PolicyList == other.PolicyList + && self.CorrelationCount == other.CorrelationCount + && self.Correlations == other.Correlations + && self.MetricCount == other.MetricCount + && self.Metrics == other.Metrics + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 {} @@ -30336,6 +30713,7 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX3 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { pub DefaultMoveCost: FABRIC_MOVE_COST, pub Reserved: *mut ::core::ffi::c_void, @@ -30354,18 +30732,12 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.DefaultMoveCost == other.DefaultMoveCost && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 {} @@ -30375,6 +30747,7 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX4 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { pub RepartitionKind: FABRIC_SERVICE_PARTITION_KIND, pub RepartitionDescription: *mut ::core::ffi::c_void, @@ -30399,18 +30772,16 @@ impl ::core::fmt::Debug for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.RepartitionKind == other.RepartitionKind + && self.RepartitionDescription == other.RepartitionDescription + && self.ScalingPolicyCount == other.ScalingPolicyCount + && self.ServiceScalingPolicies == other.ServiceScalingPolicies + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 {} @@ -30420,16 +30791,17 @@ impl ::core::default::Default for FABRIC_STATEFUL_SERVICE_UPDATE_DESCRIPTION_EX5 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION { pub ApplicationName: *mut u16, pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, + pub ServiceTypeName: ::windows_core::PCWSTR, pub InitializationDataSize: u32, pub InitializationData: *mut u8, pub PartitionScheme: FABRIC_PARTITION_SCHEME, pub PartitionSchemeDescription: *mut ::core::ffi::c_void, pub InstanceCount: i32, - pub PlacementConstraints: ::windows::core::PCWSTR, + pub PlacementConstraints: ::windows_core::PCWSTR, pub CorrelationCount: u32, pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, pub MetricCount: u32, @@ -30465,18 +30837,25 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationName == other.ApplicationName + && self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.InitializationDataSize == other.InitializationDataSize + && self.InitializationData == other.InitializationData + && self.PartitionScheme == other.PartitionScheme + && self.PartitionSchemeDescription == other.PartitionSchemeDescription + && self.InstanceCount == other.InstanceCount + && self.PlacementConstraints == other.PlacementConstraints + && self.CorrelationCount == other.CorrelationCount + && self.Correlations == other.Correlations + && self.MetricCount == other.MetricCount + && self.Metrics == other.Metrics + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION {} @@ -30486,6 +30865,7 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -30504,18 +30884,12 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PolicyList == other.PolicyList && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 {} @@ -30525,17 +30899,22 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { pub IsDefaultMoveCostSpecified: ::windows::Win32::Foundation::BOOLEAN, pub DefaultMoveCost: FABRIC_MOVE_COST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2") @@ -30548,30 +30927,31 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.IsDefaultMoveCostSpecified == other.IsDefaultMoveCostSpecified + && self.DefaultMoveCost == other.DefaultMoveCost + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { pub ServicePackageActivationMode: FABRIC_SERVICE_PACKAGE_ACTIVATION_MODE, - pub ServiceDnsName: ::windows::core::PCWSTR, + pub ServiceDnsName: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 {} @@ -30592,18 +30972,14 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServicePackageActivationMode == other.ServicePackageActivationMode + && self.ServiceDnsName == other.ServiceDnsName + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 {} @@ -30613,6 +30989,7 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { pub ScalingPolicyCount: u32, pub ServiceScalingPolicies: *mut FABRIC_SERVICE_SCALING_POLICY, @@ -30633,18 +31010,14 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ScalingPolicyCount == other.ScalingPolicyCount + && self.ServiceScalingPolicies == other.ServiceScalingPolicies + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 {} @@ -30654,19 +31027,24 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_DESCRIPTION_EX4 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub InstanceId: i64, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub HealthEvents: *const FABRIC_HEALTH_EVENT_LIST, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH") @@ -30678,27 +31056,30 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.InstanceId == other.InstanceId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.HealthEvents == other.HealthEvents + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -30717,18 +31098,12 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UnhealthyEvaluations == other.UnhealthyEvaluations && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 {} @@ -30738,18 +31113,23 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub InstanceId: i64, pub HealthInformation: *const FABRIC_HEALTH_INFORMATION, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT") @@ -30760,29 +31140,31 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.InstanceId == other.InstanceId + && self.HealthInformation == other.HealthInformation + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_REPORT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub InstanceId: i64, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut ::core::ffi::c_void, @@ -30803,18 +31185,15 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId + && self.InstanceId == other.InstanceId + && self.AggregatedHealthState == other.AggregatedHealthState + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE {} @@ -30824,6 +31203,7 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -30842,18 +31222,12 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UnhealthyEvaluations == other.UnhealthyEvaluations && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE_EX1 {} @@ -30863,12 +31237,13 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_HEALTH_STATE } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { pub InstanceId: i64, pub ReplicaStatus: FABRIC_QUERY_SERVICE_REPLICA_STATUS, pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub ReplicaAddress: ::windows::core::PCWSTR, - pub NodeName: ::windows::core::PCWSTR, + pub ReplicaAddress: ::windows_core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub LastInBuildDurationInSeconds: i64, pub Reserved: *mut ::core::ffi::c_void, } @@ -30894,18 +31269,18 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.InstanceId == other.InstanceId + && self.ReplicaStatus == other.ReplicaStatus + && self.AggregatedHealthState == other.AggregatedHealthState + && self.ReplicaAddress == other.ReplicaAddress + && self.NodeName == other.NodeName + && self.LastInBuildDurationInSeconds == other.LastInBuildDurationInSeconds + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT_ITEM {} @@ -30915,6 +31290,7 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_INSTANCE_QUERY_RESULT } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { pub PartitionInformation: *const FABRIC_SERVICE_PARTITION_INFORMATION, pub InstanceCount: u32, @@ -30939,18 +31315,16 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionInformation == other.PartitionInformation + && self.InstanceCount == other.InstanceCount + && self.HealthState == other.HealthState + && self.PartitionStatus == other.PartitionStatus + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESULT_ITEM {} @@ -30960,10 +31334,11 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_PARTITION_QUERY_RESUL } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { pub ServiceName: *mut u16, - pub ServiceTypeName: ::windows::core::PCWSTR, - pub ServiceManifestVersion: ::windows::core::PCWSTR, + pub ServiceTypeName: ::windows_core::PCWSTR, + pub ServiceManifestVersion: ::windows_core::PCWSTR, pub HealthState: FABRIC_HEALTH_STATE, pub Reserved: *mut ::core::ffi::c_void, } @@ -30984,18 +31359,16 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.ServiceTypeName == other.ServiceTypeName + && self.ServiceManifestVersion == other.ServiceManifestVersion + && self.HealthState == other.HealthState + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM {} @@ -31005,6 +31378,7 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { pub ServiceStatus: FABRIC_QUERY_SERVICE_STATUS, pub Reserved: *mut ::core::ffi::c_void, @@ -31023,18 +31397,12 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceStatus == other.ServiceStatus && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 {} @@ -31044,16 +31412,21 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX1 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { pub IsServiceGroup: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2") @@ -31062,41 +31435,44 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.IsServiceGroup == other.IsServiceGroup && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STATELESS_SERVICE_QUERY_RESULT_ITEM_EX2 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { - pub ServiceTypeName: ::windows::core::PCWSTR, - pub PlacementConstraints: ::windows::core::PCWSTR, + 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 Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION") @@ -31109,27 +31485,31 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceTypeName == other.ServiceTypeName + && self.PlacementConstraints == other.PlacementConstraints + && self.LoadMetrics == other.LoadMetrics + && self.Extensions == other.Extensions + && self.UseImplicitHost == other.UseImplicitHost + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -31148,18 +31528,12 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PolicyList == other.PolicyList && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 {} @@ -31169,6 +31543,7 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_TYPE_DESCRIPTION_EX1 } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { pub Flags: u32, pub InstanceCount: i32, @@ -31189,18 +31564,14 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Flags == other.Flags + && self.InstanceCount == other.InstanceCount + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION {} @@ -31210,8 +31581,9 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { - pub PlacementConstraints: ::windows::core::PCWSTR, + pub PlacementConstraints: ::windows_core::PCWSTR, pub PolicyList: *mut FABRIC_SERVICE_PLACEMENT_POLICY_LIST, pub CorrelationCount: u32, pub Correlations: *mut FABRIC_SERVICE_CORRELATION_DESCRIPTION, @@ -31238,18 +31610,18 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PlacementConstraints == other.PlacementConstraints + && self.PolicyList == other.PolicyList + && self.CorrelationCount == other.CorrelationCount + && self.Correlations == other.Correlations + && self.MetricCount == other.MetricCount + && self.Metrics == other.Metrics + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX1 {} @@ -31259,6 +31631,7 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { pub DefaultMoveCost: FABRIC_MOVE_COST, pub Reserved: *mut ::core::ffi::c_void, @@ -31277,18 +31650,12 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.DefaultMoveCost == other.DefaultMoveCost && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX2 {} @@ -31298,6 +31665,7 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { pub RepartitionKind: FABRIC_SERVICE_PARTITION_KIND, pub RepartitionDescription: *mut ::core::ffi::c_void, @@ -31322,18 +31690,16 @@ impl ::core::fmt::Debug for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.RepartitionKind == other.RepartitionKind + && self.RepartitionDescription == other.RepartitionDescription + && self.ScalingPolicyCount == other.ScalingPolicyCount + && self.ServiceScalingPolicies == other.ServiceScalingPolicies + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX3 {} @@ -31343,17 +31709,22 @@ impl ::core::default::Default for FABRIC_STATELESS_SERVICE_UPDATE_DESCRIPTION_EX } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_STOPPED_EVENT { pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, - pub Reason: ::windows::core::PCWSTR, + pub Reason: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_STOPPED_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_STOPPED_EVENT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_STOPPED_EVENT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_STOPPED_EVENT") @@ -31363,29 +31734,30 @@ impl ::core::fmt::Debug for FABRIC_STOPPED_EVENT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STOPPED_EVENT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_STOPPED_EVENT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_STOPPED_EVENT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.TimeStampUtc == other.TimeStampUtc + && self.Reason == other.Reason + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_STOPPED_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_STOPPED_EVENT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STOP_NODE_DESCRIPTION { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub NodeInstanceId: u64, pub Reserved: *mut ::core::ffi::c_void, } @@ -31404,18 +31776,14 @@ impl ::core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STOP_NODE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STOP_NODE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STOP_NODE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STOP_NODE_DESCRIPTION {} @@ -31425,6 +31793,7 @@ impl ::core::default::Default for FABRIC_STOP_NODE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STOP_NODE_DESCRIPTION2 { pub Kind: FABRIC_STOP_NODE_DESCRIPTION_KIND, pub Value: *mut ::core::ffi::c_void, @@ -31443,18 +31812,12 @@ impl ::core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STOP_NODE_DESCRIPTION2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STOP_NODE_DESCRIPTION2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STOP_NODE_DESCRIPTION2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_STOP_NODE_DESCRIPTION2 {} @@ -31464,8 +31827,9 @@ impl ::core::default::Default for FABRIC_STOP_NODE_DESCRIPTION2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { - pub NodeName: ::windows::core::PCWSTR, + pub NodeName: ::windows_core::PCWSTR, pub NodeInstanceId: u64, pub Reserved: *mut ::core::ffi::c_void, } @@ -31484,18 +31848,14 @@ impl ::core::fmt::Debug for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeName == other.NodeName + && self.NodeInstanceId == other.NodeInstanceId + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME {} @@ -31505,6 +31865,7 @@ impl ::core::default::Default for FABRIC_STOP_NODE_DESCRIPTION_USING_NODE_NAME { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STOP_NODE_STATUS { pub NodeResult: *mut FABRIC_NODE_RESULT, pub Reserved: *mut ::core::ffi::c_void, @@ -31523,18 +31884,12 @@ impl ::core::fmt::Debug for FABRIC_STOP_NODE_STATUS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STOP_NODE_STATUS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STOP_NODE_STATUS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STOP_NODE_STATUS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.NodeResult == other.NodeResult && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STOP_NODE_STATUS {} @@ -31544,8 +31899,9 @@ impl ::core::default::Default for FABRIC_STOP_NODE_STATUS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STORE_BACKUP_INFO { - pub BackupFolder: ::windows::core::PCWSTR, + pub BackupFolder: ::windows_core::PCWSTR, pub BackupOption: FABRIC_STORE_BACKUP_OPTION, pub Reserved: *mut ::core::ffi::c_void, } @@ -31564,18 +31920,14 @@ impl ::core::fmt::Debug for FABRIC_STORE_BACKUP_INFO { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STORE_BACKUP_INFO { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STORE_BACKUP_INFO { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STORE_BACKUP_INFO { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.BackupFolder == other.BackupFolder + && self.BackupOption == other.BackupOption + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STORE_BACKUP_INFO {} @@ -31585,8 +31937,9 @@ impl ::core::default::Default for FABRIC_STORE_BACKUP_INFO { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STORE_BACKUP_INFO_EX1 { - pub BackupChainId: ::windows::core::GUID, + pub BackupChainId: ::windows_core::GUID, pub BackupIndex: u32, pub Reserved: *mut ::core::ffi::c_void, } @@ -31605,18 +31958,14 @@ impl ::core::fmt::Debug for FABRIC_STORE_BACKUP_INFO_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STORE_BACKUP_INFO_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STORE_BACKUP_INFO_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STORE_BACKUP_INFO_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.BackupChainId == other.BackupChainId + && self.BackupIndex == other.BackupIndex + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_STORE_BACKUP_INFO_EX1 {} @@ -31626,9 +31975,10 @@ impl ::core::default::Default for FABRIC_STORE_BACKUP_INFO_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STRING_LIST { pub Count: u32, - pub Items: *const ::windows::core::PWSTR, + pub Items: *const ::windows_core::PCWSTR, } impl ::core::marker::Copy for FABRIC_STRING_LIST {} impl ::core::clone::Clone for FABRIC_STRING_LIST { @@ -31644,18 +31994,12 @@ impl ::core::fmt::Debug for FABRIC_STRING_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STRING_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STRING_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STRING_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_STRING_LIST {} @@ -31665,6 +32009,7 @@ impl ::core::default::Default for FABRIC_STRING_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_STRING_MAP { pub Count: u32, pub Items: *const FABRIC_APPLICATION_PARAMETER, @@ -31683,18 +32028,12 @@ impl ::core::fmt::Debug for FABRIC_STRING_MAP { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_STRING_MAP { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_STRING_MAP { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_STRING_MAP { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_STRING_MAP {} @@ -31704,8 +32043,9 @@ impl ::core::default::Default for FABRIC_STRING_MAP { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub Reserved: *mut ::core::ffi::c_void, @@ -31726,18 +32066,15 @@ impl ::core::fmt::Debug for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION {} @@ -31747,6 +32084,7 @@ impl ::core::default::Default for FABRIC_SYSTEM_APPLICATION_HEALTH_EVALUATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { pub SystemServiceNameFilter: *mut u16, pub Reserved: *mut ::core::ffi::c_void, @@ -31765,18 +32103,13 @@ impl ::core::fmt::Debug for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.SystemServiceNameFilter == other.SystemServiceNameFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION {} @@ -31786,6 +32119,7 @@ impl ::core::default::Default for FABRIC_SYSTEM_SERVICE_QUERY_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_TEST_COMMAND_LIST_DESCRIPTION { pub TestCommandStateFilter: FABRIC_TEST_COMMAND_STATE_FILTER, pub TestCommandTypeFilter: FABRIC_TEST_COMMAND_TYPE_FILTER, @@ -31806,18 +32140,14 @@ impl ::core::fmt::Debug for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.TestCommandStateFilter == other.TestCommandStateFilter + && self.TestCommandTypeFilter == other.TestCommandTypeFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_TEST_COMMAND_LIST_DESCRIPTION {} @@ -31827,17 +32157,22 @@ impl ::core::default::Default for FABRIC_TEST_COMMAND_LIST_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_TEST_ERROR_EVENT { pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, - pub Reason: ::windows::core::PCWSTR, + pub Reason: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_TEST_ERROR_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_TEST_ERROR_EVENT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_TEST_ERROR_EVENT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_TEST_ERROR_EVENT") @@ -31847,27 +32182,28 @@ impl ::core::fmt::Debug for FABRIC_TEST_ERROR_EVENT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_TEST_ERROR_EVENT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_TEST_ERROR_EVENT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_TEST_ERROR_EVENT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.TimeStampUtc == other.TimeStampUtc + && self.Reason == other.Reason + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_TEST_ERROR_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_TEST_ERROR_EVENT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { pub PartitionCount: i32, pub LowKey: i64, @@ -31890,18 +32226,15 @@ impl ::core::fmt::Debug for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPT .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionCount == other.PartitionCount + && self.LowKey == other.LowKey + && self.HighKey == other.HighKey + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DESCRIPTION {} @@ -31911,9 +32244,10 @@ impl ::core::default::Default for FABRIC_UNIFORM_INT64_RANGE_PARTITION_SCHEME_DE } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UNPLACED_REPLICA_INFORMATION { pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub UnplacedReplicaReasons: *const FABRIC_STRING_LIST, pub Reserved: *mut ::core::ffi::c_void, } @@ -31933,18 +32267,15 @@ impl ::core::fmt::Debug for FABRIC_UNPLACED_REPLICA_INFORMATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UNPLACED_REPLICA_INFORMATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UNPLACED_REPLICA_INFORMATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UNPLACED_REPLICA_INFORMATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.UnplacedReplicaReasons == other.UnplacedReplicaReasons + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UNPLACED_REPLICA_INFORMATION {} @@ -31954,9 +32285,10 @@ impl ::core::default::Default for FABRIC_UNPLACED_REPLICA_INFORMATION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { pub Count: u32, - pub Items: *const ::windows::core::PWSTR, + pub Items: *const ::windows_core::PCWSTR, } impl ::core::marker::Copy for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST {} impl ::core::clone::Clone for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { @@ -31972,18 +32304,12 @@ impl ::core::fmt::Debug for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST {} @@ -31993,18 +32319,23 @@ impl ::core::default::Default for FABRIC_UNPLACED_REPLICA_INFORMATION_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { pub ServiceName: *mut u16, - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub OnlyQueryPrimaries: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION") @@ -32015,39 +32346,45 @@ impl ::core::fmt::Debug for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTIO .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ServiceName == other.ServiceName + && self.PartitionId == other.PartitionId + && self.OnlyQueryPrimaries == other.OnlyQueryPrimaries + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { - pub ApplicationTypeName: ::windows::core::PCWSTR, - pub ApplicationTypeVersion: ::windows::core::PCWSTR, + pub ApplicationTypeName: ::windows_core::PCWSTR, + pub ApplicationTypeVersion: ::windows_core::PCWSTR, pub Async: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION") @@ -32058,30 +32395,32 @@ impl ::core::fmt::Debug for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeName == other.ApplicationTypeName + && self.ApplicationTypeVersion == other.ApplicationTypeVersion + && self.Async == other.Async + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_DESCRIPTION { - pub CodeVersion: ::windows::core::PCWSTR, - pub ConfigVersion: ::windows::core::PCWSTR, + pub CodeVersion: ::windows_core::PCWSTR, + pub ConfigVersion: ::windows_core::PCWSTR, pub UpgradeKind: FABRIC_UPGRADE_KIND, pub UpgradePolicyDescription: *mut ::core::ffi::c_void, pub Reserved: *mut ::core::ffi::c_void, @@ -32103,18 +32442,16 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CodeVersion == other.CodeVersion + && self.ConfigVersion == other.ConfigVersion + && self.UpgradeKind == other.UpgradeKind + && self.UpgradePolicyDescription == other.UpgradePolicyDescription + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UPGRADE_DESCRIPTION {} @@ -32124,10 +32461,11 @@ impl ::core::default::Default for FABRIC_UPGRADE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UpgradeDomainName: ::windows::core::PCWSTR, + pub UpgradeDomainName: ::windows_core::PCWSTR, pub BaselineErrorCount: u32, pub BaselineTotalCount: u32, pub TotalCount: u32, @@ -32159,18 +32497,21 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALU .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UpgradeDomainName == other.UpgradeDomainName + && self.BaselineErrorCount == other.BaselineErrorCount + && self.BaselineTotalCount == other.BaselineTotalCount + && self.TotalCount == other.TotalCount + && self.MaxPercentUpgradeDomainDeltaUnhealthyNodes + == other.MaxPercentUpgradeDomainDeltaUnhealthyNodes + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH_EVALUATION {} @@ -32180,10 +32521,11 @@ impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_DELTA_NODES_CHECK_HEALTH } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UpgradeDomainName: ::windows::core::PCWSTR, + pub UpgradeDomainName: ::windows_core::PCWSTR, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub TotalCount: u32, pub MaxPercentUnhealthyDeployedApplications: u8, @@ -32211,19 +32553,19 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_E .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::( - ), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UpgradeDomainName == other.UpgradeDomainName + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyDeployedApplications + == other.MaxPercentUnhealthyDeployedApplications + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HEALTH_EVALUATION {} @@ -32233,10 +32575,11 @@ impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_DEPLOYED_APPLICATIONS_HE } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { - pub Description: ::windows::core::PCWSTR, + pub Description: ::windows_core::PCWSTR, pub AggregatedHealthState: FABRIC_HEALTH_STATE, - pub UpgradeDomainName: ::windows::core::PCWSTR, + pub UpgradeDomainName: ::windows_core::PCWSTR, pub UnhealthyEvaluations: *const FABRIC_HEALTH_EVALUATION_LIST, pub TotalCount: u32, pub MaxPercentUnhealthyNodes: u8, @@ -32261,18 +32604,18 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Description == other.Description + && self.AggregatedHealthState == other.AggregatedHealthState + && self.UpgradeDomainName == other.UpgradeDomainName + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.TotalCount == other.TotalCount + && self.MaxPercentUnhealthyNodes == other.MaxPercentUnhealthyNodes + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION {} @@ -32282,8 +32625,9 @@ impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_NODES_HEALTH_EVALUATION } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_DOMAIN_PROGRESS { - pub UpgradeDomainName: ::windows::core::PCWSTR, + pub UpgradeDomainName: ::windows_core::PCWSTR, pub NodeProgressList: *mut FABRIC_NODE_UPGRADE_PROGRESS_LIST, pub Reserved: *mut ::core::ffi::c_void, } @@ -32302,18 +32646,14 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_PROGRESS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_PROGRESS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_PROGRESS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_PROGRESS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UpgradeDomainName == other.UpgradeDomainName + && self.NodeProgressList == other.NodeProgressList + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_PROGRESS {} @@ -32323,8 +32663,9 @@ impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_PROGRESS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { - pub Name: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, pub State: FABRIC_UPGRADE_DOMAIN_STATE, pub Reserved: *mut ::core::ffi::c_void, } @@ -32343,18 +32684,12 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name && self.State == other.State && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION {} @@ -32364,6 +32699,7 @@ impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { pub Count: u32, pub Items: *const FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION, @@ -32382,18 +32718,12 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST {} @@ -32403,12 +32733,13 @@ impl ::core::default::Default for FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - pub CurrentCodeVersion: ::windows::core::PCWSTR, - pub CurrentManifestVersion: ::windows::core::PCWSTR, - pub TargetCodeVersion: ::windows::core::PCWSTR, - pub TargetManifestVersion: ::windows::core::PCWSTR, - pub PendingUpgradeType: ::windows::core::PCWSTR, + pub CurrentCodeVersion: ::windows_core::PCWSTR, + pub CurrentManifestVersion: ::windows_core::PCWSTR, + pub TargetCodeVersion: ::windows_core::PCWSTR, + pub TargetManifestVersion: ::windows_core::PCWSTR, + pub PendingUpgradeType: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE {} @@ -32429,18 +32760,17 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CurrentCodeVersion == other.CurrentCodeVersion + && self.CurrentManifestVersion == other.CurrentManifestVersion + && self.TargetCodeVersion == other.TargetCodeVersion + && self.TargetManifestVersion == other.TargetManifestVersion + && self.PendingUpgradeType == other.PendingUpgradeType + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE {} @@ -32450,8 +32780,9 @@ impl ::core::default::Default for FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { - pub PartitionId: ::windows::core::GUID, + pub PartitionId: ::windows_core::GUID, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK {} @@ -32468,18 +32799,12 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.PartitionId == other.PartitionId && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK {} @@ -32489,11 +32814,12 @@ impl ::core::default::Default for FABRIC_UPGRADE_PARTITION_SAFETY_CHECK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_PROGRESS { pub UpgradeDescription: *const FABRIC_UPGRADE_DESCRIPTION, pub UpgradeState: FABRIC_UPGRADE_STATE, pub UpgradeMode: FABRIC_ROLLING_UPGRADE_MODE, - pub NextUpgradeDomain: ::windows::core::PCWSTR, + pub NextUpgradeDomain: ::windows_core::PCWSTR, pub UpgradeDomains: *const FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION_LIST, pub UpgradeDurationInSeconds: u32, pub CurrentUpgradeDomainDurationInSeconds: u32, @@ -32529,18 +32855,22 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_PROGRESS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_PROGRESS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_PROGRESS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_PROGRESS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UpgradeDescription == other.UpgradeDescription + && self.UpgradeState == other.UpgradeState + && self.UpgradeMode == other.UpgradeMode + && self.NextUpgradeDomain == other.NextUpgradeDomain + && self.UpgradeDomains == other.UpgradeDomains + && self.UpgradeDurationInSeconds == other.UpgradeDurationInSeconds + && self.CurrentUpgradeDomainDurationInSeconds + == other.CurrentUpgradeDomainDurationInSeconds + && self.UnhealthyEvaluations == other.UnhealthyEvaluations + && self.CurrentUpgradeDomainProgress == other.CurrentUpgradeDomainProgress + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UPGRADE_PROGRESS {} @@ -32550,6 +32880,8 @@ impl ::core::default::Default for FABRIC_UPGRADE_PROGRESS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_UPGRADE_PROGRESS_EX1 { pub StartTimestampUtc: ::windows::Win32::Foundation::FILETIME, pub FailureTimestampUtc: ::windows::Win32::Foundation::FILETIME, @@ -32557,12 +32889,15 @@ pub struct FABRIC_UPGRADE_PROGRESS_EX1 { pub UpgradeDomainProgressAtFailure: *const FABRIC_UPGRADE_DOMAIN_PROGRESS, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_UPGRADE_PROGRESS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_UPGRADE_PROGRESS_EX1 { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_UPGRADE_PROGRESS_EX1 { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_UPGRADE_PROGRESS_EX1") @@ -32577,27 +32912,30 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_PROGRESS_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_PROGRESS_EX1 { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_UPGRADE_PROGRESS_EX1 { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_UPGRADE_PROGRESS_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.StartTimestampUtc == other.StartTimestampUtc + && self.FailureTimestampUtc == other.FailureTimestampUtc + && self.FailureReason == other.FailureReason + && self.UpgradeDomainProgressAtFailure == other.UpgradeDomainProgressAtFailure + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_UPGRADE_PROGRESS_EX1 {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_UPGRADE_PROGRESS_EX1 { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_SAFETY_CHECK { pub Kind: FABRIC_UPGRADE_SAFETY_CHECK_KIND, pub Value: *mut ::core::ffi::c_void, @@ -32616,18 +32954,12 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_SAFETY_CHECK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_SAFETY_CHECK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_SAFETY_CHECK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_SAFETY_CHECK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Kind == other.Kind && self.Value == other.Value } } impl ::core::cmp::Eq for FABRIC_UPGRADE_SAFETY_CHECK {} @@ -32637,6 +32969,7 @@ impl ::core::default::Default for FABRIC_UPGRADE_SAFETY_CHECK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_SAFETY_CHECK_LIST { pub Count: u32, pub Items: *const FABRIC_UPGRADE_SAFETY_CHECK, @@ -32655,18 +32988,12 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_SAFETY_CHECK_LIST { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_SAFETY_CHECK_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_SAFETY_CHECK_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_SAFETY_CHECK_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for FABRIC_UPGRADE_SAFETY_CHECK_LIST {} @@ -32676,6 +33003,7 @@ impl ::core::default::Default for FABRIC_UPGRADE_SAFETY_CHECK_LIST { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { pub Reserved: *mut ::core::ffi::c_void, } @@ -32692,18 +33020,12 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK {} @@ -32713,6 +33035,7 @@ impl ::core::default::Default for FABRIC_UPGRADE_SEED_NODE_SAFETY_CHECK { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_UPGRADE_UPDATE_DESCRIPTION { pub UpgradeKind: FABRIC_UPGRADE_KIND, pub UpdateFlags: u32, @@ -32735,18 +33058,15 @@ impl ::core::fmt::Debug for FABRIC_UPGRADE_UPDATE_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_UPGRADE_UPDATE_DESCRIPTION { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_UPGRADE_UPDATE_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_UPGRADE_UPDATE_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.UpgradeKind == other.UpgradeKind + && self.UpdateFlags == other.UpdateFlags + && self.UpgradePolicyDescription == other.UpgradePolicyDescription + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_UPGRADE_UPDATE_DESCRIPTION {} @@ -32756,17 +33076,22 @@ impl ::core::default::Default for FABRIC_UPGRADE_UPDATE_DESCRIPTION { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_VALIDATION_FAILED_EVENT { pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, - pub Reason: ::windows::core::PCWSTR, + pub Reason: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_VALIDATION_FAILED_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_VALIDATION_FAILED_EVENT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_VALIDATION_FAILED_EVENT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_VALIDATION_FAILED_EVENT") @@ -32776,38 +33101,43 @@ impl ::core::fmt::Debug for FABRIC_VALIDATION_FAILED_EVENT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_VALIDATION_FAILED_EVENT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_VALIDATION_FAILED_EVENT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_VALIDATION_FAILED_EVENT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.TimeStampUtc == other.TimeStampUtc + && self.Reason == other.Reason + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_VALIDATION_FAILED_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_VALIDATION_FAILED_EVENT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct FABRIC_WAITING_EVENT { pub TimeStampUtc: ::windows::Win32::Foundation::FILETIME, - pub Reason: ::windows::core::PCWSTR, + pub Reason: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for FABRIC_WAITING_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for FABRIC_WAITING_EVENT { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for FABRIC_WAITING_EVENT { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("FABRIC_WAITING_EVENT") @@ -32817,31 +33147,32 @@ impl ::core::fmt::Debug for FABRIC_WAITING_EVENT { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_WAITING_EVENT { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for FABRIC_WAITING_EVENT { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for FABRIC_WAITING_EVENT { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.TimeStampUtc == other.TimeStampUtc + && self.Reason == other.Reason + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for FABRIC_WAITING_EVENT {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for FABRIC_WAITING_EVENT { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_WINDOWS_CREDENTIALS { - pub RemoteSpn: ::windows::core::PCWSTR, + pub RemoteSpn: ::windows_core::PCWSTR, pub RemoteIdentityCount: u32, - pub RemoteIdentities: *const ::windows::core::PWSTR, + pub RemoteIdentities: *const ::windows_core::PCWSTR, pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, pub Reserved: *mut ::core::ffi::c_void, } @@ -32862,18 +33193,16 @@ impl ::core::fmt::Debug for FABRIC_WINDOWS_CREDENTIALS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_WINDOWS_CREDENTIALS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_WINDOWS_CREDENTIALS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_WINDOWS_CREDENTIALS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.RemoteSpn == other.RemoteSpn + && self.RemoteIdentityCount == other.RemoteIdentityCount + && self.RemoteIdentities == other.RemoteIdentities + && self.ProtectionLevel == other.ProtectionLevel + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_WINDOWS_CREDENTIALS {} @@ -32883,13 +33212,14 @@ impl ::core::default::Default for FABRIC_WINDOWS_CREDENTIALS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_X509_CREDENTIALS { pub AllowedCommonNameCount: u32, - pub AllowedCommonNames: *const ::windows::core::PWSTR, + pub AllowedCommonNames: *const ::windows_core::PCWSTR, pub FindType: FABRIC_X509_FIND_TYPE, pub FindValue: *mut ::core::ffi::c_void, pub StoreLocation: FABRIC_X509_STORE_LOCATION, - pub StoreName: ::windows::core::PCWSTR, + pub StoreName: ::windows_core::PCWSTR, pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, pub Reserved: *mut ::core::ffi::c_void, } @@ -32913,18 +33243,19 @@ impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_X509_CREDENTIALS { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_X509_CREDENTIALS { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.AllowedCommonNameCount == other.AllowedCommonNameCount + && self.AllowedCommonNames == other.AllowedCommonNames + && self.FindType == other.FindType + && self.FindValue == other.FindValue + && self.StoreLocation == other.StoreLocation + && self.StoreName == other.StoreName + && self.ProtectionLevel == other.ProtectionLevel + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS {} @@ -32934,10 +33265,11 @@ impl ::core::default::Default for FABRIC_X509_CREDENTIALS { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_X509_CREDENTIALS2 { - pub CertLoadPath: ::windows::core::PCWSTR, + pub CertLoadPath: ::windows_core::PCWSTR, pub RemoteCertThumbprintCount: u32, - pub RemoteCertThumbprints: *const ::windows::core::PWSTR, + pub RemoteCertThumbprints: *const ::windows_core::PCWSTR, pub RemoteX509NameCount: u32, pub RemoteX509Names: *mut FABRIC_X509_NAME, pub ProtectionLevel: FABRIC_PROTECTION_LEVEL, @@ -32962,18 +33294,18 @@ impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_X509_CREDENTIALS2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_X509_CREDENTIALS2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.CertLoadPath == other.CertLoadPath + && self.RemoteCertThumbprintCount == other.RemoteCertThumbprintCount + && self.RemoteCertThumbprints == other.RemoteCertThumbprints + && self.RemoteX509NameCount == other.RemoteX509NameCount + && self.RemoteX509Names == other.RemoteX509Names + && self.ProtectionLevel == other.ProtectionLevel + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS2 {} @@ -32983,9 +33315,10 @@ impl ::core::default::Default for FABRIC_X509_CREDENTIALS2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_X509_CREDENTIALS_EX1 { pub IssuerThumbprintCount: u32, - pub IssuerThumbprints: *const ::windows::core::PWSTR, + pub IssuerThumbprints: *const ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_X509_CREDENTIALS_EX1 {} @@ -33003,18 +33336,14 @@ impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS_EX1 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_X509_CREDENTIALS_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_X509_CREDENTIALS_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.IssuerThumbprintCount == other.IssuerThumbprintCount + && self.IssuerThumbprints == other.IssuerThumbprints + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS_EX1 {} @@ -33024,9 +33353,10 @@ impl ::core::default::Default for FABRIC_X509_CREDENTIALS_EX1 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_X509_CREDENTIALS_EX2 { pub RemoteCertThumbprintCount: u32, - pub RemoteCertThumbprints: *const ::windows::core::PWSTR, + pub RemoteCertThumbprints: *const ::windows_core::PCWSTR, pub RemoteX509NameCount: u32, pub RemoteX509Names: *mut FABRIC_X509_NAME, pub FindValueSecondary: *mut ::core::ffi::c_void, @@ -33050,18 +33380,17 @@ impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS_EX2 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_X509_CREDENTIALS_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_X509_CREDENTIALS_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.RemoteCertThumbprintCount == other.RemoteCertThumbprintCount + && self.RemoteCertThumbprints == other.RemoteCertThumbprints + && self.RemoteX509NameCount == other.RemoteX509NameCount + && self.RemoteX509Names == other.RemoteX509Names + && self.FindValueSecondary == other.FindValueSecondary + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS_EX2 {} @@ -33071,6 +33400,7 @@ impl ::core::default::Default for FABRIC_X509_CREDENTIALS_EX2 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_X509_CREDENTIALS_EX3 { pub RemoteCertIssuerCount: u32, pub RemoteCertIssuers: *mut FABRIC_X509_ISSUER_NAME, @@ -33091,18 +33421,14 @@ impl ::core::fmt::Debug for FABRIC_X509_CREDENTIALS_EX3 { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_X509_CREDENTIALS_EX3 { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_X509_CREDENTIALS_EX3 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_X509_CREDENTIALS_EX3 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.RemoteCertIssuerCount == other.RemoteCertIssuerCount + && self.RemoteCertIssuers == other.RemoteCertIssuers + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_X509_CREDENTIALS_EX3 {} @@ -33112,10 +33438,11 @@ impl ::core::default::Default for FABRIC_X509_CREDENTIALS_EX3 { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_X509_ISSUER_NAME { - pub Name: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, pub IssuerStoreCount: u32, - pub IssuerStores: *const ::windows::core::PWSTR, + pub IssuerStores: *const ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_X509_ISSUER_NAME {} @@ -33134,18 +33461,15 @@ impl ::core::fmt::Debug for FABRIC_X509_ISSUER_NAME { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_X509_ISSUER_NAME { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_X509_ISSUER_NAME { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_X509_ISSUER_NAME { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.IssuerStoreCount == other.IssuerStoreCount + && self.IssuerStores == other.IssuerStores + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_X509_ISSUER_NAME {} @@ -33155,9 +33479,10 @@ impl ::core::default::Default for FABRIC_X509_ISSUER_NAME { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct FABRIC_X509_NAME { - pub Name: ::windows::core::PCWSTR, - pub IssuerCertThumbprint: ::windows::core::PCWSTR, + pub Name: ::windows_core::PCWSTR, + pub IssuerCertThumbprint: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for FABRIC_X509_NAME {} @@ -33175,18 +33500,14 @@ impl ::core::fmt::Debug for FABRIC_X509_NAME { .finish() } } -unsafe impl ::windows::core::Abi for FABRIC_X509_NAME { - type Abi = Self; +impl ::windows_core::TypeKind for FABRIC_X509_NAME { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for FABRIC_X509_NAME { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Name == other.Name + && self.IssuerCertThumbprint == other.IssuerCertThumbprint + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for FABRIC_X509_NAME {} @@ -33196,19 +33517,24 @@ impl ::core::default::Default for FABRIC_X509_NAME { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`, `\"Win32_Foundation\"`*"] +#[cfg(feature = "Win32_Foundation")] pub struct PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - pub ApplicationTypeNameFilter: ::windows::core::PCWSTR, + pub ApplicationTypeNameFilter: ::windows_core::PCWSTR, pub MaxResults: i32, - pub ContinuationToken: ::windows::core::PCWSTR, + pub ContinuationToken: ::windows_core::PCWSTR, pub ExcludeApplicationParameters: ::windows::Win32::Foundation::BOOLEAN, pub Reserved: *mut ::core::ffi::c_void, } +#[cfg(feature = "Win32_Foundation")] impl ::core::marker::Copy for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::clone::Clone for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { fn clone(&self) -> Self { *self } } +#[cfg(feature = "Win32_Foundation")] impl ::core::fmt::Debug for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { f.debug_struct("PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION") @@ -33223,29 +33549,32 @@ impl ::core::fmt::Debug for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { .finish() } } -unsafe impl ::windows::core::Abi for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { - type Abi = Self; +#[cfg(feature = "Win32_Foundation")] +impl ::windows_core::TypeKind for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { + type TypeKind = ::windows_core::CopyType; } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::PartialEq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeNameFilter == other.ApplicationTypeNameFilter + && self.MaxResults == other.MaxResults + && self.ContinuationToken == other.ContinuationToken + && self.ExcludeApplicationParameters == other.ExcludeApplicationParameters + && self.Reserved == other.Reserved } } +#[cfg(feature = "Win32_Foundation")] impl ::core::cmp::Eq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION {} +#[cfg(feature = "Win32_Foundation")] impl ::core::default::Default for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION { fn default() -> Self { unsafe { ::core::mem::zeroed() } } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { - pub ApplicationTypeVersionFilter: ::windows::core::PCWSTR, + pub ApplicationTypeVersionFilter: ::windows_core::PCWSTR, pub Reserved: *mut ::core::ffi::c_void, } impl ::core::marker::Copy for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 {} @@ -33265,18 +33594,13 @@ impl ::core::fmt::Debug for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 .finish() } } -unsafe impl ::windows::core::Abi for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { - type Abi = Self; +impl ::windows_core::TypeKind for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeVersionFilter == other.ApplicationTypeVersionFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX1 {} @@ -33286,6 +33610,7 @@ impl ::core::default::Default for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTIO } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { pub ApplicationTypeDefinitionKindFilter: u32, pub Reserved: *mut ::core::ffi::c_void, @@ -33307,18 +33632,13 @@ impl ::core::fmt::Debug for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 .finish() } } -unsafe impl ::windows::core::Abi for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { - type Abi = Self; +impl ::windows_core::TypeKind for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.ApplicationTypeDefinitionKindFilter == other.ApplicationTypeDefinitionKindFilter + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION_EX2 {} @@ -33328,8 +33648,9 @@ impl ::core::default::Default for PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTIO } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct TEST_COMMAND_QUERY_RESULT_ITEM { - pub OperationId: ::windows::core::GUID, + 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, @@ -33350,18 +33671,15 @@ impl ::core::fmt::Debug for TEST_COMMAND_QUERY_RESULT_ITEM { .finish() } } -unsafe impl ::windows::core::Abi for TEST_COMMAND_QUERY_RESULT_ITEM { - type Abi = Self; +impl ::windows_core::TypeKind for TEST_COMMAND_QUERY_RESULT_ITEM { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for TEST_COMMAND_QUERY_RESULT_ITEM { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.OperationId == other.OperationId + && self.TestCommandState == other.TestCommandState + && self.TestCommandType == other.TestCommandType + && self.Reserved == other.Reserved } } impl ::core::cmp::Eq for TEST_COMMAND_QUERY_RESULT_ITEM {} @@ -33371,6 +33689,7 @@ impl ::core::default::Default for TEST_COMMAND_QUERY_RESULT_ITEM { } } #[repr(C)] +#[doc = "*Required features: `\"ServiceFabric\"`*"] pub struct TEST_COMMAND_QUERY_RESULT_LIST { pub Count: u32, pub Items: *mut ::core::ffi::c_void, @@ -33389,18 +33708,12 @@ impl ::core::fmt::Debug for TEST_COMMAND_QUERY_RESULT_LIST { .finish() } } -unsafe impl ::windows::core::Abi for TEST_COMMAND_QUERY_RESULT_LIST { - type Abi = Self; +impl ::windows_core::TypeKind for TEST_COMMAND_QUERY_RESULT_LIST { + type TypeKind = ::windows_core::CopyType; } impl ::core::cmp::PartialEq for TEST_COMMAND_QUERY_RESULT_LIST { fn eq(&self, other: &Self) -> bool { - unsafe { - ::windows::core::memcmp( - self as *const _ as _, - other as *const _ as _, - core::mem::size_of::(), - ) == 0 - } + self.Count == other.Count && self.Items == other.Items } } impl ::core::cmp::Eq for TEST_COMMAND_QUERY_RESULT_LIST {} @@ -33409,5 +33722,3 @@ impl ::core::default::Default for TEST_COMMAND_QUERY_RESULT_LIST { unsafe { ::core::mem::zeroed() } } } -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/src/Microsoft/impl.rs b/src/Microsoft/impl.rs deleted file mode 100644 index 8b137891..00000000 --- a/src/Microsoft/impl.rs +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/Microsoft/mod.rs b/src/Microsoft/mod.rs index 5658529d..94587fa7 100644 --- a/src/Microsoft/mod.rs +++ b/src/Microsoft/mod.rs @@ -1,3 +1,2 @@ +#[cfg(feature = "ServiceFabric")] pub mod ServiceFabric; -#[cfg(feature = "implement")] -::core::include!("impl.rs"); diff --git a/src/lib.rs b/src/lib.rs index 15b5b417..d1ddfedc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,8 +20,9 @@ extern crate windows; clippy::extra_unused_lifetimes, clippy::useless_transmute )] -mod Microsoft; +pub mod Microsoft; +#[cfg(feature = "ServiceFabric")] pub use Microsoft::ServiceFabric::*; pub use fabric_metadata;