#[inline]
pub unsafe fn FabricCreateClient<T>(
connectionstringssize: u16,
connectionstrings: *const windows_core::PCWSTR,
) -> windows_core::Result<T>
where
T: windows_core::Interface,
{
windows_core::link!("" "C" fn FabricCreateClient(connectionstringssize : u16, connectionstrings : *const windows_core::PCWSTR, iid : *const windows_core::GUID, fabricclient : *mut *mut core::ffi::c_void) -> windows_core::HRESULT);
let mut result__ = core::ptr::null_mut();
unsafe {
FabricCreateClient(
connectionstringssize,
connectionstrings,
&T::IID,
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[inline]
pub unsafe fn FabricCreateClient2<P2, T>(
connectionstringssize: u16,
connectionstrings: *const windows_core::PCWSTR,
param2: P2,
) -> windows_core::Result<T>
where
P2: windows_core::Param<IFabricServiceNotificationEventHandler>,
T: windows_core::Interface,
{
windows_core::link!("" "C" fn FabricCreateClient2(connectionstringssize : u16, connectionstrings : *const windows_core::PCWSTR, param2 : *mut core::ffi::c_void, iid : *const windows_core::GUID, fabricclient : *mut *mut core::ffi::c_void) -> windows_core::HRESULT);
let mut result__ = core::ptr::null_mut();
unsafe {
FabricCreateClient2(
connectionstringssize,
connectionstrings,
param2.param().abi(),
&T::IID,
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[inline]
pub unsafe fn FabricCreateClient3<P2, P3, T>(
connectionstringssize: u16,
connectionstrings: *const windows_core::PCWSTR,
param2: P2,
param3: P3,
) -> windows_core::Result<T>
where
P2: windows_core::Param<IFabricServiceNotificationEventHandler>,
P3: windows_core::Param<IFabricClientConnectionEventHandler>,
T: windows_core::Interface,
{
windows_core::link!("" "C" fn FabricCreateClient3(connectionstringssize : u16, connectionstrings : *const windows_core::PCWSTR, param2 : *mut core::ffi::c_void, param3 : *mut core::ffi::c_void, iid : *const windows_core::GUID, fabricclient : *mut *mut core::ffi::c_void) -> windows_core::HRESULT);
let mut result__ = core::ptr::null_mut();
unsafe {
FabricCreateClient3(
connectionstringssize,
connectionstrings,
param2.param().abi(),
param3.param().abi(),
&T::IID,
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[inline]
pub unsafe fn FabricCreateLocalClient<T>() -> windows_core::Result<T>
where
T: windows_core::Interface,
{
windows_core::link!("" "C" fn FabricCreateLocalClient(iid : *const windows_core::GUID, fabricclient : *mut *mut core::ffi::c_void) -> windows_core::HRESULT);
let mut result__ = core::ptr::null_mut();
unsafe {
FabricCreateLocalClient(&T::IID, &mut result__)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[inline]
pub unsafe fn FabricCreateLocalClient2<P0, T>(param0: P0) -> windows_core::Result<T>
where
P0: windows_core::Param<IFabricServiceNotificationEventHandler>,
T: windows_core::Interface,
{
windows_core::link!("" "C" fn FabricCreateLocalClient2(param0 : *mut core::ffi::c_void, iid : *const windows_core::GUID, fabricclient : *mut *mut core::ffi::c_void) -> windows_core::HRESULT);
let mut result__ = core::ptr::null_mut();
unsafe {
FabricCreateLocalClient2(param0.param().abi(), &T::IID, &mut result__)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[inline]
pub unsafe fn FabricCreateLocalClient3<P0, P1, T>(param0: P0, param1: P1) -> windows_core::Result<T>
where
P0: windows_core::Param<IFabricServiceNotificationEventHandler>,
P1: windows_core::Param<IFabricClientConnectionEventHandler>,
T: windows_core::Interface,
{
windows_core::link!("" "C" fn FabricCreateLocalClient3(param0 : *mut core::ffi::c_void, param1 : *mut core::ffi::c_void, iid : *const windows_core::GUID, fabricclient : *mut *mut core::ffi::c_void) -> windows_core::HRESULT);
let mut result__ = core::ptr::null_mut();
unsafe {
FabricCreateLocalClient3(
param0.param().abi(),
param1.param().abi(),
&T::IID,
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
#[inline]
pub unsafe fn FabricCreateLocalClient4<P0, P1, T>(
param0: P0,
param1: P1,
clientrole: super::FabricTypes::FABRIC_CLIENT_ROLE,
) -> windows_core::Result<T>
where
P0: windows_core::Param<IFabricServiceNotificationEventHandler>,
P1: windows_core::Param<IFabricClientConnectionEventHandler>,
T: windows_core::Interface,
{
windows_core::link!("" "C" fn FabricCreateLocalClient4(param0 : *mut core::ffi::c_void, param1 : *mut core::ffi::c_void, clientrole : super::FabricTypes::FABRIC_CLIENT_ROLE, iid : *const windows_core::GUID, fabricclient : *mut *mut core::ffi::c_void) -> windows_core::HRESULT);
let mut result__ = core::ptr::null_mut();
unsafe {
FabricCreateLocalClient4(
param0.param().abi(),
param1.param().abi(),
clientrole,
&T::IID,
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[inline]
pub unsafe fn FabricGetDefaultRollingUpgradeMonitoringPolicy()
-> windows_core::Result<IFabricGetRollingUpgradeMonitoringPolicyResult> {
windows_core::link!("" "C" fn FabricGetDefaultRollingUpgradeMonitoringPolicy(result : *mut *mut core::ffi::c_void) -> windows_core::HRESULT);
unsafe {
let mut result__ = core::mem::zeroed();
FabricGetDefaultRollingUpgradeMonitoringPolicy(&mut result__)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
pub const FabricClient: windows_core::GUID =
windows_core::GUID::from_u128(0x75f087fa_37f1_4984_b513_724da5b02197);
windows_core::imp::define_interface!(
IFabricApplicationHealthResult,
IFabricApplicationHealthResult_Vtbl,
0x41612fab_e615_4a48_98e7_4abcc93b6049
);
windows_core::imp::interface_hierarchy!(IFabricApplicationHealthResult, windows_core::IUnknown);
impl IFabricApplicationHealthResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_ApplicationHealth(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_HEALTH {
unsafe {
(windows_core::Interface::vtable(self).get_ApplicationHealth)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationHealthResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub get_ApplicationHealth:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_APPLICATION_HEALTH,
#[cfg(not(all(feature = "ServiceFabric_FabricTypes", feature = "Win32")))]
get_ApplicationHealth: usize,
}
unsafe impl Send for IFabricApplicationHealthResult {}
unsafe impl Sync for IFabricApplicationHealthResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricApplicationHealthResult_Impl: windows_core::IUnknownImpl {
fn get_ApplicationHealth(&self) -> *const super::FabricTypes::FABRIC_APPLICATION_HEALTH;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricApplicationHealthResult_Vtbl {
pub const fn new<Identity: IFabricApplicationHealthResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_ApplicationHealth<
Identity: IFabricApplicationHealthResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_APPLICATION_HEALTH {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationHealthResult_Impl::get_ApplicationHealth(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ApplicationHealth: get_ApplicationHealth::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationHealthResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricApplicationHealthResult {}
windows_core::imp::define_interface!(
IFabricApplicationManagementClient,
IFabricApplicationManagementClient_Vtbl,
0x7c219ae9_e58d_431f_8b30_92a40281faac
);
windows_core::imp::interface_hierarchy!(IFabricApplicationManagementClient, windows_core::IUnknown);
impl IFabricApplicationManagementClient {
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginProvisionApplicationType<P0, P2>(
&self,
applicationbuildpath: P0,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginProvisionApplicationType)(
windows_core::Interface::as_raw(self),
applicationbuildpath.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndProvisionApplicationType<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndProvisionApplicationType)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginCreateApplication<P2>(
&self,
description: *const super::FabricTypes::FABRIC_APPLICATION_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginCreateApplication)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndCreateApplication<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndCreateApplication)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpgradeApplication<P2>(
&self,
upgradedescription: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpgradeApplication)(
windows_core::Interface::as_raw(self),
upgradedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpgradeApplication<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUpgradeApplication)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetApplicationUpgradeProgress<P2>(
&self,
applicationname: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetApplicationUpgradeProgress)(
windows_core::Interface::as_raw(self),
applicationname,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetApplicationUpgradeProgress<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricApplicationUpgradeProgressResult2>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetApplicationUpgradeProgress)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginMoveNextApplicationUpgradeDomain<P0, P2>(
&self,
progress: P0,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<IFabricApplicationUpgradeProgressResult2>,
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginMoveNextApplicationUpgradeDomain)(
windows_core::Interface::as_raw(self),
progress.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndMoveNextApplicationUpgradeDomain<P0>(
&self,
context: P0,
) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndMoveNextApplicationUpgradeDomain)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDeleteApplication<P2>(
&self,
applicationname: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDeleteApplication)(
windows_core::Interface::as_raw(self),
applicationname,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDeleteApplication<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDeleteApplication)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginUnprovisionApplicationType<P0, P1, P3>(
&self,
applicationtypename: P0,
applicationtypeversion: P1,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P1: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUnprovisionApplicationType)(
windows_core::Interface::as_raw(self),
applicationtypename.param().abi(),
applicationtypeversion.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUnprovisionApplicationType<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUnprovisionApplicationType)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationManagementClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginProvisionApplicationType: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginProvisionApplicationType: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndProvisionApplicationType: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndProvisionApplicationType: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginCreateApplication: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_APPLICATION_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginCreateApplication: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndCreateApplication: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndCreateApplication: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpgradeApplication: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpgradeApplication: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpgradeApplication: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpgradeApplication: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetApplicationUpgradeProgress: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetApplicationUpgradeProgress: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetApplicationUpgradeProgress: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetApplicationUpgradeProgress: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginMoveNextApplicationUpgradeDomain: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginMoveNextApplicationUpgradeDomain: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndMoveNextApplicationUpgradeDomain: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndMoveNextApplicationUpgradeDomain: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDeleteApplication: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDeleteApplication: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDeleteApplication: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDeleteApplication: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginUnprovisionApplicationType: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginUnprovisionApplicationType: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUnprovisionApplicationType: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUnprovisionApplicationType: usize,
}
unsafe impl Send for IFabricApplicationManagementClient {}
unsafe impl Sync for IFabricApplicationManagementClient {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricApplicationManagementClient_Impl: windows_core::IUnknownImpl {
fn BeginProvisionApplicationType(
&self,
applicationbuildpath: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndProvisionApplicationType(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginCreateApplication(
&self,
description: *const super::FabricTypes::FABRIC_APPLICATION_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndCreateApplication(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginUpgradeApplication(
&self,
upgradedescription: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpgradeApplication(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetApplicationUpgradeProgress(
&self,
applicationname: &super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetApplicationUpgradeProgress(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricApplicationUpgradeProgressResult2>;
fn BeginMoveNextApplicationUpgradeDomain(
&self,
progress: windows_core::Ref<IFabricApplicationUpgradeProgressResult2>,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndMoveNextApplicationUpgradeDomain(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginDeleteApplication(
&self,
applicationname: &super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDeleteApplication(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginUnprovisionApplicationType(
&self,
applicationtypename: &windows_core::PCWSTR,
applicationtypeversion: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUnprovisionApplicationType(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricApplicationManagementClient_Vtbl {
pub const fn new<Identity: IFabricApplicationManagementClient_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginProvisionApplicationType<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationbuildpath: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient_Impl::BeginProvisionApplicationType(
this,
core::mem::transmute(&applicationbuildpath),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndProvisionApplicationType<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient_Impl::EndProvisionApplicationType(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginCreateApplication<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_APPLICATION_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient_Impl::BeginCreateApplication(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndCreateApplication<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient_Impl::EndCreateApplication(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginUpgradeApplication<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
upgradedescription: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient_Impl::BeginUpgradeApplication(
this,
core::mem::transmute_copy(&upgradedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpgradeApplication<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient_Impl::EndUpgradeApplication(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetApplicationUpgradeProgress<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationname: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient_Impl::BeginGetApplicationUpgradeProgress(
this,
core::mem::transmute(&applicationname),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetApplicationUpgradeProgress<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient_Impl::EndGetApplicationUpgradeProgress(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginMoveNextApplicationUpgradeDomain<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
progress: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient_Impl::BeginMoveNextApplicationUpgradeDomain(
this,
core::mem::transmute_copy(&progress),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndMoveNextApplicationUpgradeDomain<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient_Impl::EndMoveNextApplicationUpgradeDomain(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginDeleteApplication<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationname: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient_Impl::BeginDeleteApplication(
this,
core::mem::transmute(&applicationname),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDeleteApplication<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient_Impl::EndDeleteApplication(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginUnprovisionApplicationType<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationtypename: windows_core::PCWSTR,
applicationtypeversion: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient_Impl::BeginUnprovisionApplicationType(
this,
core::mem::transmute(&applicationtypename),
core::mem::transmute(&applicationtypeversion),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUnprovisionApplicationType<
Identity: IFabricApplicationManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient_Impl::EndUnprovisionApplicationType(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginProvisionApplicationType: BeginProvisionApplicationType::<Identity, OFFSET>,
EndProvisionApplicationType: EndProvisionApplicationType::<Identity, OFFSET>,
BeginCreateApplication: BeginCreateApplication::<Identity, OFFSET>,
EndCreateApplication: EndCreateApplication::<Identity, OFFSET>,
BeginUpgradeApplication: BeginUpgradeApplication::<Identity, OFFSET>,
EndUpgradeApplication: EndUpgradeApplication::<Identity, OFFSET>,
BeginGetApplicationUpgradeProgress: BeginGetApplicationUpgradeProgress::<
Identity,
OFFSET,
>,
EndGetApplicationUpgradeProgress: EndGetApplicationUpgradeProgress::<Identity, OFFSET>,
BeginMoveNextApplicationUpgradeDomain: BeginMoveNextApplicationUpgradeDomain::<
Identity,
OFFSET,
>,
EndMoveNextApplicationUpgradeDomain: EndMoveNextApplicationUpgradeDomain::<
Identity,
OFFSET,
>,
BeginDeleteApplication: BeginDeleteApplication::<Identity, OFFSET>,
EndDeleteApplication: EndDeleteApplication::<Identity, OFFSET>,
BeginUnprovisionApplicationType: BeginUnprovisionApplicationType::<Identity, OFFSET>,
EndUnprovisionApplicationType: EndUnprovisionApplicationType::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricApplicationManagementClient {}
windows_core::imp::define_interface!(
IFabricApplicationManagementClient10,
IFabricApplicationManagementClient10_Vtbl,
0x67001225_d106_41ae_8bd4_5a0a119c5c01
);
impl core::ops::Deref for IFabricApplicationManagementClient10 {
type Target = IFabricApplicationManagementClient9;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricApplicationManagementClient10,
windows_core::IUnknown,
IFabricApplicationManagementClient,
IFabricApplicationManagementClient2,
IFabricApplicationManagementClient3,
IFabricApplicationManagementClient4,
IFabricApplicationManagementClient5,
IFabricApplicationManagementClient6,
IFabricApplicationManagementClient7,
IFabricApplicationManagementClient8,
IFabricApplicationManagementClient9
);
impl IFabricApplicationManagementClient10 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginProvisionApplicationType3<P2>(
&self,
description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginProvisionApplicationType3)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndProvisionApplicationType3<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndProvisionApplicationType3)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationManagementClient10_Vtbl {
pub base__: IFabricApplicationManagementClient9_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginProvisionApplicationType3: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginProvisionApplicationType3: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndProvisionApplicationType3: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndProvisionApplicationType3: usize,
}
unsafe impl Send for IFabricApplicationManagementClient10 {}
unsafe impl Sync for IFabricApplicationManagementClient10 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricApplicationManagementClient10_Impl:
IFabricApplicationManagementClient9_Impl
{
fn BeginProvisionApplicationType3(
&self,
description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndProvisionApplicationType3(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricApplicationManagementClient10_Vtbl {
pub const fn new<Identity: IFabricApplicationManagementClient10_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginProvisionApplicationType3<
Identity: IFabricApplicationManagementClient10_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description : * const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION_BASE,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient10_Impl::BeginProvisionApplicationType3(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndProvisionApplicationType3<
Identity: IFabricApplicationManagementClient10_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient10_Impl::EndProvisionApplicationType3(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricApplicationManagementClient9_Vtbl::new::<Identity, OFFSET>(),
BeginProvisionApplicationType3: BeginProvisionApplicationType3::<Identity, OFFSET>,
EndProvisionApplicationType3: EndProvisionApplicationType3::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationManagementClient10 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient8 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient9 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricApplicationManagementClient10 {}
windows_core::imp::define_interface!(
IFabricApplicationManagementClient11,
IFabricApplicationManagementClient11_Vtbl,
0xf1130057_50c2_400d_8a1f_5bd782952944
);
impl core::ops::Deref for IFabricApplicationManagementClient11 {
type Target = IFabricApplicationManagementClient10;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricApplicationManagementClient11,
windows_core::IUnknown,
IFabricApplicationManagementClient,
IFabricApplicationManagementClient2,
IFabricApplicationManagementClient3,
IFabricApplicationManagementClient4,
IFabricApplicationManagementClient5,
IFabricApplicationManagementClient6,
IFabricApplicationManagementClient7,
IFabricApplicationManagementClient8,
IFabricApplicationManagementClient9,
IFabricApplicationManagementClient10
);
impl IFabricApplicationManagementClient11 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpdateApplicationTypeArmMetadata<P0, P1, P4>(
&self,
applicationtypename: P0,
applicationtypeversion: P1,
description : * const super::FabricTypes::FABRIC_APPLICATION_TYPE_ARM_METADATA_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P1: windows_core::Param<windows_core::PCWSTR>,
P4: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpdateApplicationTypeArmMetadata)(
windows_core::Interface::as_raw(self),
applicationtypename.param().abi(),
applicationtypeversion.param().abi(),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpdateApplicationTypeArmMetadata<P0>(
&self,
context: P0,
) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUpdateApplicationTypeArmMetadata)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpdateApplicationArmMetadata<P3>(
&self,
applicationname: super::FabricTypes::FABRIC_URI,
description: *const super::FabricTypes::FABRIC_APPLICATION_ARM_METADATA_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpdateApplicationArmMetadata)(
windows_core::Interface::as_raw(self),
applicationname,
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpdateApplicationArmMetadata<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUpdateApplicationArmMetadata)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpdateServiceArmMetadata<P3>(
&self,
servicename: super::FabricTypes::FABRIC_URI,
description: *const super::FabricTypes::FABRIC_SERVICE_ARM_METADATA_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpdateServiceArmMetadata)(
windows_core::Interface::as_raw(self),
servicename,
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpdateServiceArmMetadata<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUpdateServiceArmMetadata)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationManagementClient11_Vtbl {
pub base__: IFabricApplicationManagementClient10_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpdateApplicationTypeArmMetadata: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
windows_core::PCWSTR,
*const super::FabricTypes::FABRIC_APPLICATION_TYPE_ARM_METADATA_UPDATE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpdateApplicationTypeArmMetadata: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpdateApplicationTypeArmMetadata: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpdateApplicationTypeArmMetadata: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpdateApplicationArmMetadata: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
*const super::FabricTypes::FABRIC_APPLICATION_ARM_METADATA_UPDATE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpdateApplicationArmMetadata: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpdateApplicationArmMetadata: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpdateApplicationArmMetadata: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpdateServiceArmMetadata: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
*const super::FabricTypes::FABRIC_SERVICE_ARM_METADATA_UPDATE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpdateServiceArmMetadata: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpdateServiceArmMetadata: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpdateServiceArmMetadata: usize,
}
unsafe impl Send for IFabricApplicationManagementClient11 {}
unsafe impl Sync for IFabricApplicationManagementClient11 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricApplicationManagementClient11_Impl:
IFabricApplicationManagementClient10_Impl
{
fn BeginUpdateApplicationTypeArmMetadata(
&self,
applicationtypename: &windows_core::PCWSTR,
applicationtypeversion: &windows_core::PCWSTR,
description : * const super::FabricTypes::FABRIC_APPLICATION_TYPE_ARM_METADATA_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpdateApplicationTypeArmMetadata(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginUpdateApplicationArmMetadata(
&self,
applicationname: &super::FabricTypes::FABRIC_URI,
description: *const super::FabricTypes::FABRIC_APPLICATION_ARM_METADATA_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpdateApplicationArmMetadata(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginUpdateServiceArmMetadata(
&self,
servicename: &super::FabricTypes::FABRIC_URI,
description: *const super::FabricTypes::FABRIC_SERVICE_ARM_METADATA_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpdateServiceArmMetadata(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricApplicationManagementClient11_Vtbl {
pub const fn new<Identity: IFabricApplicationManagementClient11_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginUpdateApplicationTypeArmMetadata<
Identity: IFabricApplicationManagementClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationtypename: windows_core::PCWSTR,
applicationtypeversion: windows_core::PCWSTR,
description : * const super::FabricTypes::FABRIC_APPLICATION_TYPE_ARM_METADATA_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient11_Impl::BeginUpdateApplicationTypeArmMetadata (this , core::mem::transmute (& applicationtypename) , core::mem::transmute (& applicationtypeversion) , core::mem::transmute_copy (& description) , core::mem::transmute_copy (& timeoutmilliseconds) , core::mem::transmute_copy (& callback) ,) { Ok (ok__) => { context . write (core::mem::transmute (ok__)) ; windows_core::HRESULT (0) } Err (err) => err . into () }
}
}
unsafe extern "system" fn EndUpdateApplicationTypeArmMetadata<
Identity: IFabricApplicationManagementClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient11_Impl::EndUpdateApplicationTypeArmMetadata(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginUpdateApplicationArmMetadata<
Identity: IFabricApplicationManagementClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationname: super::FabricTypes::FABRIC_URI,
description : * const super::FabricTypes::FABRIC_APPLICATION_ARM_METADATA_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient11_Impl::BeginUpdateApplicationArmMetadata(
this,
core::mem::transmute(&applicationname),
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpdateApplicationArmMetadata<
Identity: IFabricApplicationManagementClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient11_Impl::EndUpdateApplicationArmMetadata(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginUpdateServiceArmMetadata<
Identity: IFabricApplicationManagementClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
servicename: super::FabricTypes::FABRIC_URI,
description: *const super::FabricTypes::FABRIC_SERVICE_ARM_METADATA_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient11_Impl::BeginUpdateServiceArmMetadata(
this,
core::mem::transmute(&servicename),
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpdateServiceArmMetadata<
Identity: IFabricApplicationManagementClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient11_Impl::EndUpdateServiceArmMetadata(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricApplicationManagementClient10_Vtbl::new::<Identity, OFFSET>(),
BeginUpdateApplicationTypeArmMetadata: BeginUpdateApplicationTypeArmMetadata::<
Identity,
OFFSET,
>,
EndUpdateApplicationTypeArmMetadata: EndUpdateApplicationTypeArmMetadata::<
Identity,
OFFSET,
>,
BeginUpdateApplicationArmMetadata: BeginUpdateApplicationArmMetadata::<Identity, OFFSET>,
EndUpdateApplicationArmMetadata: EndUpdateApplicationArmMetadata::<Identity, OFFSET>,
BeginUpdateServiceArmMetadata: BeginUpdateServiceArmMetadata::<Identity, OFFSET>,
EndUpdateServiceArmMetadata: EndUpdateServiceArmMetadata::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationManagementClient11 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient8 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient9 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient10 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricApplicationManagementClient11 {}
windows_core::imp::define_interface!(
IFabricApplicationManagementClient2,
IFabricApplicationManagementClient2_Vtbl,
0xf873516f_9bfe_47e5_93b9_3667aaf19324
);
impl core::ops::Deref for IFabricApplicationManagementClient2 {
type Target = IFabricApplicationManagementClient;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricApplicationManagementClient2,
windows_core::IUnknown,
IFabricApplicationManagementClient
);
impl IFabricApplicationManagementClient2 {
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetApplicationManifest<P0, P1, P3>(
&self,
applicationtypename: P0,
applicationtypeversion: P1,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P1: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetApplicationManifest)(
windows_core::Interface::as_raw(self),
applicationtypename.param().abi(),
applicationtypeversion.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetApplicationManifest<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetApplicationManifest)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginMoveNextApplicationUpgradeDomain2<P1, P3>(
&self,
applicationname: super::FabricTypes::FABRIC_URI,
nextupgradedomain: P1,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginMoveNextApplicationUpgradeDomain2)(
windows_core::Interface::as_raw(self),
applicationname,
nextupgradedomain.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndMoveNextApplicationUpgradeDomain2<P0>(
&self,
context: P0,
) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndMoveNextApplicationUpgradeDomain2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationManagementClient2_Vtbl {
pub base__: IFabricApplicationManagementClient_Vtbl,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetApplicationManifest: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetApplicationManifest: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetApplicationManifest: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetApplicationManifest: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginMoveNextApplicationUpgradeDomain2: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginMoveNextApplicationUpgradeDomain2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndMoveNextApplicationUpgradeDomain2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndMoveNextApplicationUpgradeDomain2: usize,
}
unsafe impl Send for IFabricApplicationManagementClient2 {}
unsafe impl Sync for IFabricApplicationManagementClient2 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricApplicationManagementClient2_Impl:
IFabricApplicationManagementClient_Impl
{
fn BeginGetApplicationManifest(
&self,
applicationtypename: &windows_core::PCWSTR,
applicationtypeversion: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetApplicationManifest(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>;
fn BeginMoveNextApplicationUpgradeDomain2(
&self,
applicationname: &super::FabricTypes::FABRIC_URI,
nextupgradedomain: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndMoveNextApplicationUpgradeDomain2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricApplicationManagementClient2_Vtbl {
pub const fn new<Identity: IFabricApplicationManagementClient2_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginGetApplicationManifest<
Identity: IFabricApplicationManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationtypename: windows_core::PCWSTR,
applicationtypeversion: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient2_Impl::BeginGetApplicationManifest(
this,
core::mem::transmute(&applicationtypename),
core::mem::transmute(&applicationtypeversion),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetApplicationManifest<
Identity: IFabricApplicationManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient2_Impl::EndGetApplicationManifest(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginMoveNextApplicationUpgradeDomain2<
Identity: IFabricApplicationManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationname: super::FabricTypes::FABRIC_URI,
nextupgradedomain: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient2_Impl::BeginMoveNextApplicationUpgradeDomain2 (this , core::mem::transmute (& applicationname) , core::mem::transmute (& nextupgradedomain) , core::mem::transmute_copy (& timeoutmilliseconds) , core::mem::transmute_copy (& callback) ,) { Ok (ok__) => { context . write (core::mem::transmute (ok__)) ; windows_core::HRESULT (0) } Err (err) => err . into () }
}
}
unsafe extern "system" fn EndMoveNextApplicationUpgradeDomain2<
Identity: IFabricApplicationManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient2_Impl::EndMoveNextApplicationUpgradeDomain2(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricApplicationManagementClient_Vtbl::new::<Identity, OFFSET>(),
BeginGetApplicationManifest: BeginGetApplicationManifest::<Identity, OFFSET>,
EndGetApplicationManifest: EndGetApplicationManifest::<Identity, OFFSET>,
BeginMoveNextApplicationUpgradeDomain2: BeginMoveNextApplicationUpgradeDomain2::<
Identity,
OFFSET,
>,
EndMoveNextApplicationUpgradeDomain2: EndMoveNextApplicationUpgradeDomain2::<
Identity,
OFFSET,
>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricApplicationManagementClient2 {}
windows_core::imp::define_interface!(
IFabricApplicationManagementClient3,
IFabricApplicationManagementClient3_Vtbl,
0x108c7735_97e1_4af8_8c2d_9080b1b29d33
);
impl core::ops::Deref for IFabricApplicationManagementClient3 {
type Target = IFabricApplicationManagementClient2;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricApplicationManagementClient3,
windows_core::IUnknown,
IFabricApplicationManagementClient,
IFabricApplicationManagementClient2
);
impl IFabricApplicationManagementClient3 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpdateApplicationUpgrade<P2>(
&self,
description: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpdateApplicationUpgrade)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpdateApplicationUpgrade<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUpdateApplicationUpgrade)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginRestartDeployedCodePackage<P2>(
&self,
restartcodepackagedescription : * const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRestartDeployedCodePackage)(
windows_core::Interface::as_raw(self),
restartcodepackagedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRestartDeployedCodePackage<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndRestartDeployedCodePackage)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
pub unsafe fn CopyApplicationPackage<P0, P1, P2>(
&self,
imagestoreconnectionstring: P0,
applicationpackagepath: P1,
applicationpackagepathinimagestore: P2,
) -> windows_core::HRESULT
where
P0: windows_core::Param<windows_core::PCWSTR>,
P1: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<windows_core::PCWSTR>,
{
unsafe {
(windows_core::Interface::vtable(self).CopyApplicationPackage)(
windows_core::Interface::as_raw(self),
imagestoreconnectionstring.param().abi(),
applicationpackagepath.param().abi(),
applicationpackagepathinimagestore.param().abi(),
)
}
}
pub unsafe fn RemoveApplicationPackage<P0, P1>(
&self,
imagestoreconnectionstring: P0,
applicationpackagepathinimagestore: P1,
) -> windows_core::HRESULT
where
P0: windows_core::Param<windows_core::PCWSTR>,
P1: windows_core::Param<windows_core::PCWSTR>,
{
unsafe {
(windows_core::Interface::vtable(self).RemoveApplicationPackage)(
windows_core::Interface::as_raw(self),
imagestoreconnectionstring.param().abi(),
applicationpackagepathinimagestore.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationManagementClient3_Vtbl {
pub base__: IFabricApplicationManagementClient2_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpdateApplicationUpgrade: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpdateApplicationUpgrade: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpdateApplicationUpgrade: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpdateApplicationUpgrade: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginRestartDeployedCodePackage: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginRestartDeployedCodePackage: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRestartDeployedCodePackage: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRestartDeployedCodePackage: usize,
pub CopyApplicationPackage: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
windows_core::PCWSTR,
windows_core::PCWSTR,
) -> windows_core::HRESULT,
pub RemoveApplicationPackage: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
windows_core::PCWSTR,
) -> windows_core::HRESULT,
}
unsafe impl Send for IFabricApplicationManagementClient3 {}
unsafe impl Sync for IFabricApplicationManagementClient3 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricApplicationManagementClient3_Impl:
IFabricApplicationManagementClient2_Impl
{
fn BeginUpdateApplicationUpgrade(
&self,
description: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpdateApplicationUpgrade(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginRestartDeployedCodePackage(
&self,
restartcodepackagedescription : * const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRestartDeployedCodePackage(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn CopyApplicationPackage(
&self,
imagestoreconnectionstring: &windows_core::PCWSTR,
applicationpackagepath: &windows_core::PCWSTR,
applicationpackagepathinimagestore: &windows_core::PCWSTR,
) -> windows_core::Result<()>;
fn RemoveApplicationPackage(
&self,
imagestoreconnectionstring: &windows_core::PCWSTR,
applicationpackagepathinimagestore: &windows_core::PCWSTR,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricApplicationManagementClient3_Vtbl {
pub const fn new<Identity: IFabricApplicationManagementClient3_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginUpdateApplicationUpgrade<
Identity: IFabricApplicationManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient3_Impl::BeginUpdateApplicationUpgrade(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpdateApplicationUpgrade<
Identity: IFabricApplicationManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient3_Impl::EndUpdateApplicationUpgrade(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginRestartDeployedCodePackage<
Identity: IFabricApplicationManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
restartcodepackagedescription : * const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient3_Impl::BeginRestartDeployedCodePackage(
this,
core::mem::transmute_copy(&restartcodepackagedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRestartDeployedCodePackage<
Identity: IFabricApplicationManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient3_Impl::EndRestartDeployedCodePackage(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn CopyApplicationPackage<
Identity: IFabricApplicationManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
imagestoreconnectionstring: windows_core::PCWSTR,
applicationpackagepath: windows_core::PCWSTR,
applicationpackagepathinimagestore: windows_core::PCWSTR,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient3_Impl::CopyApplicationPackage(
this,
core::mem::transmute(&imagestoreconnectionstring),
core::mem::transmute(&applicationpackagepath),
core::mem::transmute(&applicationpackagepathinimagestore),
)
.into()
}
}
unsafe extern "system" fn RemoveApplicationPackage<
Identity: IFabricApplicationManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
imagestoreconnectionstring: windows_core::PCWSTR,
applicationpackagepathinimagestore: windows_core::PCWSTR,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient3_Impl::RemoveApplicationPackage(
this,
core::mem::transmute(&imagestoreconnectionstring),
core::mem::transmute(&applicationpackagepathinimagestore),
)
.into()
}
}
Self {
base__: IFabricApplicationManagementClient2_Vtbl::new::<Identity, OFFSET>(),
BeginUpdateApplicationUpgrade: BeginUpdateApplicationUpgrade::<Identity, OFFSET>,
EndUpdateApplicationUpgrade: EndUpdateApplicationUpgrade::<Identity, OFFSET>,
BeginRestartDeployedCodePackage: BeginRestartDeployedCodePackage::<Identity, OFFSET>,
EndRestartDeployedCodePackage: EndRestartDeployedCodePackage::<Identity, OFFSET>,
CopyApplicationPackage: CopyApplicationPackage::<Identity, OFFSET>,
RemoveApplicationPackage: RemoveApplicationPackage::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient2 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricApplicationManagementClient3 {}
windows_core::imp::define_interface!(
IFabricApplicationManagementClient4,
IFabricApplicationManagementClient4_Vtbl,
0x82c41b22_dbcb_4f7a_8d2f_f9bb94add446
);
impl core::ops::Deref for IFabricApplicationManagementClient4 {
type Target = IFabricApplicationManagementClient3;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricApplicationManagementClient4,
windows_core::IUnknown,
IFabricApplicationManagementClient,
IFabricApplicationManagementClient2,
IFabricApplicationManagementClient3
);
impl IFabricApplicationManagementClient4 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDeployServicePackageToNode<P0, P1, P2, P4, P6>(
&self,
applicationtypename: P0,
applicationtypeversion: P1,
servicemanifestname: P2,
sharingpolicy: *const super::FabricTypes::FABRIC_PACKAGE_SHARING_POLICY_LIST,
nodename: P4,
timeoutmilliseconds: u32,
callback: P6,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P1: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<windows_core::PCWSTR>,
P4: windows_core::Param<windows_core::PCWSTR>,
P6: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDeployServicePackageToNode)(
windows_core::Interface::as_raw(self),
applicationtypename.param().abi(),
applicationtypeversion.param().abi(),
servicemanifestname.param().abi(),
sharingpolicy,
nodename.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDeployServicePackageToNode<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDeployServicePackageToNode)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationManagementClient4_Vtbl {
pub base__: IFabricApplicationManagementClient3_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDeployServicePackageToNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
windows_core::PCWSTR,
windows_core::PCWSTR,
*const super::FabricTypes::FABRIC_PACKAGE_SHARING_POLICY_LIST,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDeployServicePackageToNode: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDeployServicePackageToNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDeployServicePackageToNode: usize,
}
unsafe impl Send for IFabricApplicationManagementClient4 {}
unsafe impl Sync for IFabricApplicationManagementClient4 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricApplicationManagementClient4_Impl:
IFabricApplicationManagementClient3_Impl
{
fn BeginDeployServicePackageToNode(
&self,
applicationtypename: &windows_core::PCWSTR,
applicationtypeversion: &windows_core::PCWSTR,
servicemanifestname: &windows_core::PCWSTR,
sharingpolicy: *const super::FabricTypes::FABRIC_PACKAGE_SHARING_POLICY_LIST,
nodename: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDeployServicePackageToNode(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricApplicationManagementClient4_Vtbl {
pub const fn new<Identity: IFabricApplicationManagementClient4_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginDeployServicePackageToNode<
Identity: IFabricApplicationManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationtypename: windows_core::PCWSTR,
applicationtypeversion: windows_core::PCWSTR,
servicemanifestname: windows_core::PCWSTR,
sharingpolicy: *const super::FabricTypes::FABRIC_PACKAGE_SHARING_POLICY_LIST,
nodename: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient4_Impl::BeginDeployServicePackageToNode(
this,
core::mem::transmute(&applicationtypename),
core::mem::transmute(&applicationtypeversion),
core::mem::transmute(&servicemanifestname),
core::mem::transmute_copy(&sharingpolicy),
core::mem::transmute(&nodename),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDeployServicePackageToNode<
Identity: IFabricApplicationManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient4_Impl::EndDeployServicePackageToNode(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricApplicationManagementClient3_Vtbl::new::<Identity, OFFSET>(),
BeginDeployServicePackageToNode: BeginDeployServicePackageToNode::<Identity, OFFSET>,
EndDeployServicePackageToNode: EndDeployServicePackageToNode::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient3 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricApplicationManagementClient4 {}
windows_core::imp::define_interface!(
IFabricApplicationManagementClient5,
IFabricApplicationManagementClient5_Vtbl,
0xd7490e43_2217_4158_93e1_9ce4dd6f724a
);
impl core::ops::Deref for IFabricApplicationManagementClient5 {
type Target = IFabricApplicationManagementClient4;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricApplicationManagementClient5,
windows_core::IUnknown,
IFabricApplicationManagementClient,
IFabricApplicationManagementClient2,
IFabricApplicationManagementClient3,
IFabricApplicationManagementClient4
);
impl IFabricApplicationManagementClient5 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginRollbackApplicationUpgrade<P2>(
&self,
applicationname: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRollbackApplicationUpgrade)(
windows_core::Interface::as_raw(self),
applicationname,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRollbackApplicationUpgrade<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndRollbackApplicationUpgrade)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationManagementClient5_Vtbl {
pub base__: IFabricApplicationManagementClient4_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginRollbackApplicationUpgrade: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginRollbackApplicationUpgrade: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRollbackApplicationUpgrade: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRollbackApplicationUpgrade: usize,
}
unsafe impl Send for IFabricApplicationManagementClient5 {}
unsafe impl Sync for IFabricApplicationManagementClient5 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricApplicationManagementClient5_Impl:
IFabricApplicationManagementClient4_Impl
{
fn BeginRollbackApplicationUpgrade(
&self,
applicationname: &super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRollbackApplicationUpgrade(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricApplicationManagementClient5_Vtbl {
pub const fn new<Identity: IFabricApplicationManagementClient5_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginRollbackApplicationUpgrade<
Identity: IFabricApplicationManagementClient5_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationname: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient5_Impl::BeginRollbackApplicationUpgrade(
this,
core::mem::transmute(&applicationname),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRollbackApplicationUpgrade<
Identity: IFabricApplicationManagementClient5_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient5_Impl::EndRollbackApplicationUpgrade(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricApplicationManagementClient4_Vtbl::new::<Identity, OFFSET>(),
BeginRollbackApplicationUpgrade: BeginRollbackApplicationUpgrade::<Identity, OFFSET>,
EndRollbackApplicationUpgrade: EndRollbackApplicationUpgrade::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient4 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricApplicationManagementClient5 {}
windows_core::imp::define_interface!(
IFabricApplicationManagementClient6,
IFabricApplicationManagementClient6_Vtbl,
0xb01e63ee_1ea4_4181_95c7_983b32e16848
);
impl core::ops::Deref for IFabricApplicationManagementClient6 {
type Target = IFabricApplicationManagementClient5;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricApplicationManagementClient6,
windows_core::IUnknown,
IFabricApplicationManagementClient,
IFabricApplicationManagementClient2,
IFabricApplicationManagementClient3,
IFabricApplicationManagementClient4,
IFabricApplicationManagementClient5
);
impl IFabricApplicationManagementClient6 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpdateApplication<P2>(
&self,
applicationupdatedescription : * const super::FabricTypes::FABRIC_APPLICATION_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpdateApplication)(
windows_core::Interface::as_raw(self),
applicationupdatedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpdateApplication<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUpdateApplication)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationManagementClient6_Vtbl {
pub base__: IFabricApplicationManagementClient5_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpdateApplication: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_APPLICATION_UPDATE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpdateApplication: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpdateApplication: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpdateApplication: usize,
}
unsafe impl Send for IFabricApplicationManagementClient6 {}
unsafe impl Sync for IFabricApplicationManagementClient6 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricApplicationManagementClient6_Impl:
IFabricApplicationManagementClient5_Impl
{
fn BeginUpdateApplication(
&self,
applicationupdatedescription : * const super::FabricTypes::FABRIC_APPLICATION_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpdateApplication(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricApplicationManagementClient6_Vtbl {
pub const fn new<Identity: IFabricApplicationManagementClient6_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginUpdateApplication<
Identity: IFabricApplicationManagementClient6_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationupdatedescription : * const super::FabricTypes::FABRIC_APPLICATION_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient6_Impl::BeginUpdateApplication(
this,
core::mem::transmute_copy(&applicationupdatedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpdateApplication<
Identity: IFabricApplicationManagementClient6_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient6_Impl::EndUpdateApplication(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricApplicationManagementClient5_Vtbl::new::<Identity, OFFSET>(),
BeginUpdateApplication: BeginUpdateApplication::<Identity, OFFSET>,
EndUpdateApplication: EndUpdateApplication::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient5 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricApplicationManagementClient6 {}
windows_core::imp::define_interface!(
IFabricApplicationManagementClient7,
IFabricApplicationManagementClient7_Vtbl,
0x26844276_25b1_4f8c_adbe_b1b3a3083c17
);
impl core::ops::Deref for IFabricApplicationManagementClient7 {
type Target = IFabricApplicationManagementClient6;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricApplicationManagementClient7,
windows_core::IUnknown,
IFabricApplicationManagementClient,
IFabricApplicationManagementClient2,
IFabricApplicationManagementClient3,
IFabricApplicationManagementClient4,
IFabricApplicationManagementClient5,
IFabricApplicationManagementClient6
);
impl IFabricApplicationManagementClient7 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDeleteApplication2<P2>(
&self,
deletedescription: *const super::FabricTypes::FABRIC_DELETE_APPLICATION_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDeleteApplication2)(
windows_core::Interface::as_raw(self),
deletedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDeleteApplication2<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDeleteApplication2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationManagementClient7_Vtbl {
pub base__: IFabricApplicationManagementClient6_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDeleteApplication2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DELETE_APPLICATION_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDeleteApplication2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDeleteApplication2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDeleteApplication2: usize,
}
unsafe impl Send for IFabricApplicationManagementClient7 {}
unsafe impl Sync for IFabricApplicationManagementClient7 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricApplicationManagementClient7_Impl:
IFabricApplicationManagementClient6_Impl
{
fn BeginDeleteApplication2(
&self,
deletedescription: *const super::FabricTypes::FABRIC_DELETE_APPLICATION_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDeleteApplication2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricApplicationManagementClient7_Vtbl {
pub const fn new<Identity: IFabricApplicationManagementClient7_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginDeleteApplication2<
Identity: IFabricApplicationManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
deletedescription: *const super::FabricTypes::FABRIC_DELETE_APPLICATION_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient7_Impl::BeginDeleteApplication2(
this,
core::mem::transmute_copy(&deletedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDeleteApplication2<
Identity: IFabricApplicationManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient7_Impl::EndDeleteApplication2(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricApplicationManagementClient6_Vtbl::new::<Identity, OFFSET>(),
BeginDeleteApplication2: BeginDeleteApplication2::<Identity, OFFSET>,
EndDeleteApplication2: EndDeleteApplication2::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient6 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricApplicationManagementClient7 {}
windows_core::imp::define_interface!(
IFabricApplicationManagementClient8,
IFabricApplicationManagementClient8_Vtbl,
0x97b38e85_7329_47ff_a8d2_b7cbf1603689
);
impl core::ops::Deref for IFabricApplicationManagementClient8 {
type Target = IFabricApplicationManagementClient7;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricApplicationManagementClient8,
windows_core::IUnknown,
IFabricApplicationManagementClient,
IFabricApplicationManagementClient2,
IFabricApplicationManagementClient3,
IFabricApplicationManagementClient4,
IFabricApplicationManagementClient5,
IFabricApplicationManagementClient6,
IFabricApplicationManagementClient7
);
impl IFabricApplicationManagementClient8 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginProvisionApplicationType2<P2>(
&self,
description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginProvisionApplicationType2)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndProvisionApplicationType2<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndProvisionApplicationType2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationManagementClient8_Vtbl {
pub base__: IFabricApplicationManagementClient7_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginProvisionApplicationType2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginProvisionApplicationType2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndProvisionApplicationType2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndProvisionApplicationType2: usize,
}
unsafe impl Send for IFabricApplicationManagementClient8 {}
unsafe impl Sync for IFabricApplicationManagementClient8 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricApplicationManagementClient8_Impl:
IFabricApplicationManagementClient7_Impl
{
fn BeginProvisionApplicationType2(
&self,
description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndProvisionApplicationType2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricApplicationManagementClient8_Vtbl {
pub const fn new<Identity: IFabricApplicationManagementClient8_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginProvisionApplicationType2<
Identity: IFabricApplicationManagementClient8_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_PROVISION_APPLICATION_TYPE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient8_Impl::BeginProvisionApplicationType2(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndProvisionApplicationType2<
Identity: IFabricApplicationManagementClient8_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient8_Impl::EndProvisionApplicationType2(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricApplicationManagementClient7_Vtbl::new::<Identity, OFFSET>(),
BeginProvisionApplicationType2: BeginProvisionApplicationType2::<Identity, OFFSET>,
EndProvisionApplicationType2: EndProvisionApplicationType2::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationManagementClient8 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient7 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricApplicationManagementClient8 {}
windows_core::imp::define_interface!(
IFabricApplicationManagementClient9,
IFabricApplicationManagementClient9_Vtbl,
0x26617b63_1350_4d7f_830c_2200978d31bb
);
impl core::ops::Deref for IFabricApplicationManagementClient9 {
type Target = IFabricApplicationManagementClient8;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricApplicationManagementClient9,
windows_core::IUnknown,
IFabricApplicationManagementClient,
IFabricApplicationManagementClient2,
IFabricApplicationManagementClient3,
IFabricApplicationManagementClient4,
IFabricApplicationManagementClient5,
IFabricApplicationManagementClient6,
IFabricApplicationManagementClient7,
IFabricApplicationManagementClient8
);
impl IFabricApplicationManagementClient9 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUnprovisionApplicationType2<P2>(
&self,
description: *const super::FabricTypes::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUnprovisionApplicationType2)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUnprovisionApplicationType2<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUnprovisionApplicationType2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationManagementClient9_Vtbl {
pub base__: IFabricApplicationManagementClient8_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUnprovisionApplicationType2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUnprovisionApplicationType2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUnprovisionApplicationType2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUnprovisionApplicationType2: usize,
}
unsafe impl Send for IFabricApplicationManagementClient9 {}
unsafe impl Sync for IFabricApplicationManagementClient9 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricApplicationManagementClient9_Impl:
IFabricApplicationManagementClient8_Impl
{
fn BeginUnprovisionApplicationType2(
&self,
description: *const super::FabricTypes::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUnprovisionApplicationType2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricApplicationManagementClient9_Vtbl {
pub const fn new<Identity: IFabricApplicationManagementClient9_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginUnprovisionApplicationType2<
Identity: IFabricApplicationManagementClient9_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_UNPROVISION_APPLICATION_TYPE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationManagementClient9_Impl::BeginUnprovisionApplicationType2(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUnprovisionApplicationType2<
Identity: IFabricApplicationManagementClient9_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationManagementClient9_Impl::EndUnprovisionApplicationType2(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricApplicationManagementClient8_Vtbl::new::<Identity, OFFSET>(),
BeginUnprovisionApplicationType2: BeginUnprovisionApplicationType2::<Identity, OFFSET>,
EndUnprovisionApplicationType2: EndUnprovisionApplicationType2::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationManagementClient9 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationManagementClient8 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricApplicationManagementClient9 {}
windows_core::imp::define_interface!(
IFabricApplicationUpgradeProgressResult,
IFabricApplicationUpgradeProgressResult_Vtbl,
0x1e4670f8_ede5_48ab_881f_c45a0f38413a
);
windows_core::imp::interface_hierarchy!(
IFabricApplicationUpgradeProgressResult,
windows_core::IUnknown
);
impl IFabricApplicationUpgradeProgressResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ApplicationName(&self) -> super::FabricTypes::FABRIC_URI {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).get_ApplicationName)(
windows_core::Interface::as_raw(self),
&mut result__,
);
result__
}
}
pub unsafe fn get_ApplicationTypeName(&self) -> windows_core::PCWSTR {
unsafe {
(windows_core::Interface::vtable(self).get_ApplicationTypeName)(
windows_core::Interface::as_raw(self),
)
}
}
pub unsafe fn get_TargetApplicationTypeVersion(&self) -> windows_core::PCWSTR {
unsafe {
(windows_core::Interface::vtable(self).get_TargetApplicationTypeVersion)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_UpgradeState(&self) -> super::FabricTypes::FABRIC_APPLICATION_UPGRADE_STATE {
unsafe {
(windows_core::Interface::vtable(self).get_UpgradeState)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn GetUpgradeDomains(
&self,
itemcount: *mut u32,
) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetUpgradeDomains)(
windows_core::Interface::as_raw(self),
itemcount as _,
&mut result__,
)
.map(|| result__)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn GetChangedUpgradeDomains<P0>(
&self,
previousprogress: P0,
itemcount: *mut u32,
) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>
where
P0: windows_core::Param<Self>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetChangedUpgradeDomains)(
windows_core::Interface::as_raw(self),
previousprogress.param().abi(),
itemcount as _,
&mut result__,
)
.map(|| result__)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationUpgradeProgressResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_ApplicationName:
unsafe extern "system" fn(*mut core::ffi::c_void, *mut super::FabricTypes::FABRIC_URI),
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_ApplicationName: usize,
pub get_ApplicationTypeName:
unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR,
pub get_TargetApplicationTypeVersion:
unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_UpgradeState:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> super::FabricTypes::FABRIC_APPLICATION_UPGRADE_STATE,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_UpgradeState: usize,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub GetUpgradeDomains: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut u32,
*mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
GetUpgradeDomains: usize,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub GetChangedUpgradeDomains: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut u32,
*mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
GetChangedUpgradeDomains: usize,
}
unsafe impl Send for IFabricApplicationUpgradeProgressResult {}
unsafe impl Sync for IFabricApplicationUpgradeProgressResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricApplicationUpgradeProgressResult_Impl: windows_core::IUnknownImpl {
fn get_ApplicationName(&self) -> super::FabricTypes::FABRIC_URI;
fn get_ApplicationTypeName(&self) -> windows_core::PCWSTR;
fn get_TargetApplicationTypeVersion(&self) -> windows_core::PCWSTR;
fn get_UpgradeState(&self) -> super::FabricTypes::FABRIC_APPLICATION_UPGRADE_STATE;
fn GetUpgradeDomains(
&self,
itemcount: *mut u32,
) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>;
fn GetChangedUpgradeDomains(
&self,
previousprogress: windows_core::Ref<IFabricApplicationUpgradeProgressResult>,
itemcount: *mut u32,
) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricApplicationUpgradeProgressResult_Vtbl {
pub const fn new<
Identity: IFabricApplicationUpgradeProgressResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_ApplicationName<
Identity: IFabricApplicationUpgradeProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
result__: *mut super::FabricTypes::FABRIC_URI,
) {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
*result__ = IFabricApplicationUpgradeProgressResult_Impl::get_ApplicationName(this);
}
}
unsafe extern "system" fn get_ApplicationTypeName<
Identity: IFabricApplicationUpgradeProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> windows_core::PCWSTR {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationUpgradeProgressResult_Impl::get_ApplicationTypeName(this)
}
}
unsafe extern "system" fn get_TargetApplicationTypeVersion<
Identity: IFabricApplicationUpgradeProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> windows_core::PCWSTR {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationUpgradeProgressResult_Impl::get_TargetApplicationTypeVersion(this)
}
}
unsafe extern "system" fn get_UpgradeState<
Identity: IFabricApplicationUpgradeProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> super::FabricTypes::FABRIC_APPLICATION_UPGRADE_STATE {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationUpgradeProgressResult_Impl::get_UpgradeState(this)
}
}
unsafe extern "system" fn GetUpgradeDomains<
Identity: IFabricApplicationUpgradeProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
itemcount: *mut u32,
buffereditems: *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationUpgradeProgressResult_Impl::GetUpgradeDomains(
this,
core::mem::transmute_copy(&itemcount),
) {
Ok(ok__) => {
buffereditems.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn GetChangedUpgradeDomains<
Identity: IFabricApplicationUpgradeProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
previousprogress: *mut core::ffi::c_void,
itemcount: *mut u32,
buffereditems: *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricApplicationUpgradeProgressResult_Impl::GetChangedUpgradeDomains(
this,
core::mem::transmute_copy(&previousprogress),
core::mem::transmute_copy(&itemcount),
) {
Ok(ok__) => {
buffereditems.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ApplicationName: get_ApplicationName::<Identity, OFFSET>,
get_ApplicationTypeName: get_ApplicationTypeName::<Identity, OFFSET>,
get_TargetApplicationTypeVersion: get_TargetApplicationTypeVersion::<Identity, OFFSET>,
get_UpgradeState: get_UpgradeState::<Identity, OFFSET>,
GetUpgradeDomains: GetUpgradeDomains::<Identity, OFFSET>,
GetChangedUpgradeDomains: GetChangedUpgradeDomains::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationUpgradeProgressResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult {}
windows_core::imp::define_interface!(
IFabricApplicationUpgradeProgressResult2,
IFabricApplicationUpgradeProgressResult2_Vtbl,
0x62707ee5_b625_4489_aa4d_2e54b06ea248
);
impl core::ops::Deref for IFabricApplicationUpgradeProgressResult2 {
type Target = IFabricApplicationUpgradeProgressResult;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricApplicationUpgradeProgressResult2,
windows_core::IUnknown,
IFabricApplicationUpgradeProgressResult
);
impl IFabricApplicationUpgradeProgressResult2 {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_RollingUpgradeMode(&self) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE {
unsafe {
(windows_core::Interface::vtable(self).get_RollingUpgradeMode)(
windows_core::Interface::as_raw(self),
)
}
}
pub unsafe fn get_NextUpgradeDomain(&self) -> windows_core::PCWSTR {
unsafe {
(windows_core::Interface::vtable(self).get_NextUpgradeDomain)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationUpgradeProgressResult2_Vtbl {
pub base__: IFabricApplicationUpgradeProgressResult_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_RollingUpgradeMode:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_RollingUpgradeMode: usize,
pub get_NextUpgradeDomain:
unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR,
}
unsafe impl Send for IFabricApplicationUpgradeProgressResult2 {}
unsafe impl Sync for IFabricApplicationUpgradeProgressResult2 {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricApplicationUpgradeProgressResult2_Impl:
IFabricApplicationUpgradeProgressResult_Impl
{
fn get_RollingUpgradeMode(&self) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE;
fn get_NextUpgradeDomain(&self) -> windows_core::PCWSTR;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricApplicationUpgradeProgressResult2_Vtbl {
pub const fn new<
Identity: IFabricApplicationUpgradeProgressResult2_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_RollingUpgradeMode<
Identity: IFabricApplicationUpgradeProgressResult2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationUpgradeProgressResult2_Impl::get_RollingUpgradeMode(this)
}
}
unsafe extern "system" fn get_NextUpgradeDomain<
Identity: IFabricApplicationUpgradeProgressResult2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> windows_core::PCWSTR {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationUpgradeProgressResult2_Impl::get_NextUpgradeDomain(this)
}
}
Self {
base__: IFabricApplicationUpgradeProgressResult_Vtbl::new::<Identity, OFFSET>(),
get_RollingUpgradeMode: get_RollingUpgradeMode::<Identity, OFFSET>,
get_NextUpgradeDomain: get_NextUpgradeDomain::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationUpgradeProgressResult2 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationUpgradeProgressResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult2 {}
windows_core::imp::define_interface!(
IFabricApplicationUpgradeProgressResult3,
IFabricApplicationUpgradeProgressResult3_Vtbl,
0x1bc1d9c3_eef5_41fe_b8a2_abb97a8ba8e2
);
impl core::ops::Deref for IFabricApplicationUpgradeProgressResult3 {
type Target = IFabricApplicationUpgradeProgressResult2;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricApplicationUpgradeProgressResult3,
windows_core::IUnknown,
IFabricApplicationUpgradeProgressResult,
IFabricApplicationUpgradeProgressResult2
);
impl IFabricApplicationUpgradeProgressResult3 {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_UpgradeProgress(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_PROGRESS {
unsafe {
(windows_core::Interface::vtable(self).get_UpgradeProgress)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricApplicationUpgradeProgressResult3_Vtbl {
pub base__: IFabricApplicationUpgradeProgressResult2_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_UpgradeProgress:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_PROGRESS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_UpgradeProgress: usize,
}
unsafe impl Send for IFabricApplicationUpgradeProgressResult3 {}
unsafe impl Sync for IFabricApplicationUpgradeProgressResult3 {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricApplicationUpgradeProgressResult3_Impl:
IFabricApplicationUpgradeProgressResult2_Impl
{
fn get_UpgradeProgress(&self)
-> *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_PROGRESS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricApplicationUpgradeProgressResult3_Vtbl {
pub const fn new<
Identity: IFabricApplicationUpgradeProgressResult3_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_UpgradeProgress<
Identity: IFabricApplicationUpgradeProgressResult3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_APPLICATION_UPGRADE_PROGRESS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricApplicationUpgradeProgressResult3_Impl::get_UpgradeProgress(this)
}
}
Self {
base__: IFabricApplicationUpgradeProgressResult2_Vtbl::new::<Identity, OFFSET>(),
get_UpgradeProgress: get_UpgradeProgress::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricApplicationUpgradeProgressResult3 as windows_core::Interface>::IID
|| iid == &<IFabricApplicationUpgradeProgressResult as windows_core::Interface>::IID
|| iid == &<IFabricApplicationUpgradeProgressResult2 as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricApplicationUpgradeProgressResult3 {}
windows_core::imp::define_interface!(
IFabricChaosDescriptionResult,
IFabricChaosDescriptionResult_Vtbl,
0xfa8aa86e_f0fa_4a14_bed7_1dcfa0980b5b
);
windows_core::imp::interface_hierarchy!(IFabricChaosDescriptionResult, windows_core::IUnknown);
impl IFabricChaosDescriptionResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ChaosDescriptionResult(
&self,
) -> *const super::FabricTypes::FABRIC_CHAOS_DESCRIPTION {
unsafe {
(windows_core::Interface::vtable(self).get_ChaosDescriptionResult)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricChaosDescriptionResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_ChaosDescriptionResult:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CHAOS_DESCRIPTION,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_ChaosDescriptionResult: usize,
}
unsafe impl Send for IFabricChaosDescriptionResult {}
unsafe impl Sync for IFabricChaosDescriptionResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricChaosDescriptionResult_Impl: windows_core::IUnknownImpl {
fn get_ChaosDescriptionResult(&self) -> *const super::FabricTypes::FABRIC_CHAOS_DESCRIPTION;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricChaosDescriptionResult_Vtbl {
pub const fn new<Identity: IFabricChaosDescriptionResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_ChaosDescriptionResult<
Identity: IFabricChaosDescriptionResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CHAOS_DESCRIPTION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricChaosDescriptionResult_Impl::get_ChaosDescriptionResult(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ChaosDescriptionResult: get_ChaosDescriptionResult::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricChaosDescriptionResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricChaosDescriptionResult {}
windows_core::imp::define_interface!(
IFabricChaosEventsSegmentResult,
IFabricChaosEventsSegmentResult_Vtbl,
0xde148299_c48a_4540_877b_5b1daa518d76
);
windows_core::imp::interface_hierarchy!(IFabricChaosEventsSegmentResult, windows_core::IUnknown);
impl IFabricChaosEventsSegmentResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ChaosEventsSegmentResult(
&self,
) -> *const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT {
unsafe {
(windows_core::Interface::vtable(self).get_ChaosEventsSegmentResult)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricChaosEventsSegmentResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_ChaosEventsSegmentResult:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_ChaosEventsSegmentResult: usize,
}
unsafe impl Send for IFabricChaosEventsSegmentResult {}
unsafe impl Sync for IFabricChaosEventsSegmentResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricChaosEventsSegmentResult_Impl: windows_core::IUnknownImpl {
fn get_ChaosEventsSegmentResult(
&self,
) -> *const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricChaosEventsSegmentResult_Vtbl {
pub const fn new<Identity: IFabricChaosEventsSegmentResult_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn get_ChaosEventsSegmentResult<
Identity: IFabricChaosEventsSegmentResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricChaosEventsSegmentResult_Impl::get_ChaosEventsSegmentResult(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ChaosEventsSegmentResult: get_ChaosEventsSegmentResult::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricChaosEventsSegmentResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricChaosEventsSegmentResult {}
windows_core::imp::define_interface!(
IFabricChaosReportResult,
IFabricChaosReportResult_Vtbl,
0x8952e931_b2b3_470a_b982_6b415f30dbc0
);
windows_core::imp::interface_hierarchy!(IFabricChaosReportResult, windows_core::IUnknown);
impl IFabricChaosReportResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ChaosReportResult(&self) -> *const super::FabricTypes::FABRIC_CHAOS_REPORT {
unsafe {
(windows_core::Interface::vtable(self).get_ChaosReportResult)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricChaosReportResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_ChaosReportResult:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CHAOS_REPORT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_ChaosReportResult: usize,
}
unsafe impl Send for IFabricChaosReportResult {}
unsafe impl Sync for IFabricChaosReportResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricChaosReportResult_Impl: windows_core::IUnknownImpl {
fn get_ChaosReportResult(&self) -> *const super::FabricTypes::FABRIC_CHAOS_REPORT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricChaosReportResult_Vtbl {
pub const fn new<Identity: IFabricChaosReportResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_ChaosReportResult<
Identity: IFabricChaosReportResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CHAOS_REPORT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricChaosReportResult_Impl::get_ChaosReportResult(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ChaosReportResult: get_ChaosReportResult::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricChaosReportResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricChaosReportResult {}
windows_core::imp::define_interface!(
IFabricChaosScheduleDescriptionResult,
IFabricChaosScheduleDescriptionResult_Vtbl,
0x3b93f0d9_c0a9_4df5_9b09_b2365de89d84
);
windows_core::imp::interface_hierarchy!(
IFabricChaosScheduleDescriptionResult,
windows_core::IUnknown
);
impl IFabricChaosScheduleDescriptionResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_ChaosScheduleDescriptionResult(
&self,
) -> *const super::FabricTypes::FABRIC_CHAOS_SCHEDULE_DESCRIPTION {
unsafe {
(windows_core::Interface::vtable(self).get_ChaosScheduleDescriptionResult)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricChaosScheduleDescriptionResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub get_ChaosScheduleDescriptionResult:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_CHAOS_SCHEDULE_DESCRIPTION,
#[cfg(not(all(feature = "ServiceFabric_FabricTypes", feature = "Win32")))]
get_ChaosScheduleDescriptionResult: usize,
}
unsafe impl Send for IFabricChaosScheduleDescriptionResult {}
unsafe impl Sync for IFabricChaosScheduleDescriptionResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricChaosScheduleDescriptionResult_Impl: windows_core::IUnknownImpl {
fn get_ChaosScheduleDescriptionResult(
&self,
) -> *const super::FabricTypes::FABRIC_CHAOS_SCHEDULE_DESCRIPTION;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricChaosScheduleDescriptionResult_Vtbl {
pub const fn new<Identity: IFabricChaosScheduleDescriptionResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_ChaosScheduleDescriptionResult<
Identity: IFabricChaosScheduleDescriptionResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CHAOS_SCHEDULE_DESCRIPTION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricChaosScheduleDescriptionResult_Impl::get_ChaosScheduleDescriptionResult(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ChaosScheduleDescriptionResult: get_ChaosScheduleDescriptionResult::<
Identity,
OFFSET,
>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricChaosScheduleDescriptionResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricChaosScheduleDescriptionResult {}
windows_core::imp::define_interface!(
IFabricClientConnectionEventHandler,
IFabricClientConnectionEventHandler_Vtbl,
0x2bd21f94_d962_4bb4_84b8_5a4b3e9d4d4d
);
windows_core::imp::interface_hierarchy!(
IFabricClientConnectionEventHandler,
windows_core::IUnknown
);
impl IFabricClientConnectionEventHandler {
pub unsafe fn OnConnected<P0>(&self, param0: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<IFabricGatewayInformationResult>,
{
unsafe {
(windows_core::Interface::vtable(self).OnConnected)(
windows_core::Interface::as_raw(self),
param0.param().abi(),
)
}
}
pub unsafe fn OnDisconnected<P0>(&self, param0: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<IFabricGatewayInformationResult>,
{
unsafe {
(windows_core::Interface::vtable(self).OnDisconnected)(
windows_core::Interface::as_raw(self),
param0.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClientConnectionEventHandler_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
pub OnConnected: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
pub OnDisconnected: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
}
unsafe impl Send for IFabricClientConnectionEventHandler {}
unsafe impl Sync for IFabricClientConnectionEventHandler {}
pub trait IFabricClientConnectionEventHandler_Impl: windows_core::IUnknownImpl {
fn OnConnected(
&self,
param0: windows_core::Ref<IFabricGatewayInformationResult>,
) -> windows_core::Result<()>;
fn OnDisconnected(
&self,
param0: windows_core::Ref<IFabricGatewayInformationResult>,
) -> windows_core::Result<()>;
}
impl IFabricClientConnectionEventHandler_Vtbl {
pub const fn new<Identity: IFabricClientConnectionEventHandler_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn OnConnected<
Identity: IFabricClientConnectionEventHandler_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
param0: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClientConnectionEventHandler_Impl::OnConnected(
this,
core::mem::transmute_copy(¶m0),
)
.into()
}
}
unsafe extern "system" fn OnDisconnected<
Identity: IFabricClientConnectionEventHandler_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
param0: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClientConnectionEventHandler_Impl::OnDisconnected(
this,
core::mem::transmute_copy(¶m0),
)
.into()
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
OnConnected: OnConnected::<Identity, OFFSET>,
OnDisconnected: OnDisconnected::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClientConnectionEventHandler as windows_core::Interface>::IID
}
}
impl windows_core::RuntimeName for IFabricClientConnectionEventHandler {}
windows_core::imp::define_interface!(
IFabricClientConnectionEventHandler2,
IFabricClientConnectionEventHandler2_Vtbl,
0x6b5dbd26_7d7a_4a3f_b8ea_1f049105e897
);
impl core::ops::Deref for IFabricClientConnectionEventHandler2 {
type Target = IFabricClientConnectionEventHandler;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClientConnectionEventHandler2,
windows_core::IUnknown,
IFabricClientConnectionEventHandler
);
impl IFabricClientConnectionEventHandler2 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn OnClaimsRetrieval(
&self,
metadata: *const super::FabricTypes::FABRIC_CLAIMS_RETRIEVAL_METADATA,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult> {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).OnClaimsRetrieval)(
windows_core::Interface::as_raw(self),
metadata,
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClientConnectionEventHandler2_Vtbl {
pub base__: IFabricClientConnectionEventHandler_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub OnClaimsRetrieval: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_CLAIMS_RETRIEVAL_METADATA,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
OnClaimsRetrieval: usize,
}
unsafe impl Send for IFabricClientConnectionEventHandler2 {}
unsafe impl Sync for IFabricClientConnectionEventHandler2 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClientConnectionEventHandler2_Impl:
IFabricClientConnectionEventHandler_Impl
{
fn OnClaimsRetrieval(
&self,
metadata: *const super::FabricTypes::FABRIC_CLAIMS_RETRIEVAL_METADATA,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClientConnectionEventHandler2_Vtbl {
pub const fn new<Identity: IFabricClientConnectionEventHandler2_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn OnClaimsRetrieval<
Identity: IFabricClientConnectionEventHandler2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
metadata: *const super::FabricTypes::FABRIC_CLAIMS_RETRIEVAL_METADATA,
token: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClientConnectionEventHandler2_Impl::OnClaimsRetrieval(
this,
core::mem::transmute_copy(&metadata),
) {
Ok(ok__) => {
token.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricClientConnectionEventHandler_Vtbl::new::<Identity, OFFSET>(),
OnClaimsRetrieval: OnClaimsRetrieval::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClientConnectionEventHandler2 as windows_core::Interface>::IID
|| iid == &<IFabricClientConnectionEventHandler as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClientConnectionEventHandler2 {}
windows_core::imp::define_interface!(
IFabricClientSettings,
IFabricClientSettings_Vtbl,
0xb0e7dee0_cf64_11e0_9572_0800200c9a66
);
windows_core::imp::interface_hierarchy!(IFabricClientSettings, windows_core::IUnknown);
impl IFabricClientSettings {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn SetSecurityCredentials(
&self,
securitycredentials: *const super::FabricTypes::FABRIC_SECURITY_CREDENTIALS,
) -> windows_core::HRESULT {
unsafe {
(windows_core::Interface::vtable(self).SetSecurityCredentials)(
windows_core::Interface::as_raw(self),
securitycredentials,
)
}
}
pub unsafe fn SetKeepAlive(&self, keepaliveintervalinseconds: u32) -> windows_core::HRESULT {
unsafe {
(windows_core::Interface::vtable(self).SetKeepAlive)(
windows_core::Interface::as_raw(self),
keepaliveintervalinseconds,
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClientSettings_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub SetSecurityCredentials: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SECURITY_CREDENTIALS,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
SetSecurityCredentials: usize,
pub SetKeepAlive:
unsafe extern "system" fn(*mut core::ffi::c_void, u32) -> windows_core::HRESULT,
}
unsafe impl Send for IFabricClientSettings {}
unsafe impl Sync for IFabricClientSettings {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricClientSettings_Impl: windows_core::IUnknownImpl {
fn SetSecurityCredentials(
&self,
securitycredentials: *const super::FabricTypes::FABRIC_SECURITY_CREDENTIALS,
) -> windows_core::Result<()>;
fn SetKeepAlive(&self, keepaliveintervalinseconds: u32) -> windows_core::Result<()>;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricClientSettings_Vtbl {
pub const fn new<Identity: IFabricClientSettings_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn SetSecurityCredentials<
Identity: IFabricClientSettings_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
securitycredentials: *const super::FabricTypes::FABRIC_SECURITY_CREDENTIALS,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClientSettings_Impl::SetSecurityCredentials(
this,
core::mem::transmute_copy(&securitycredentials),
)
.into()
}
}
unsafe extern "system" fn SetKeepAlive<
Identity: IFabricClientSettings_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
keepaliveintervalinseconds: u32,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClientSettings_Impl::SetKeepAlive(
this,
core::mem::transmute_copy(&keepaliveintervalinseconds),
)
.into()
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
SetSecurityCredentials: SetSecurityCredentials::<Identity, OFFSET>,
SetKeepAlive: SetKeepAlive::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClientSettings as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricClientSettings {}
windows_core::imp::define_interface!(
IFabricClientSettings2,
IFabricClientSettings2_Vtbl,
0xc6fb97f7_82f3_4e6c_a80a_021e8ffca425
);
impl core::ops::Deref for IFabricClientSettings2 {
type Target = IFabricClientSettings;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClientSettings2,
windows_core::IUnknown,
IFabricClientSettings
);
impl IFabricClientSettings2 {
pub unsafe fn GetSettings(&self) -> windows_core::Result<IFabricClientSettingsResult> {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetSettings)(
windows_core::Interface::as_raw(self),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn SetSettings(
&self,
fabricclientsettings: *const super::FabricTypes::FABRIC_CLIENT_SETTINGS,
) -> windows_core::HRESULT {
unsafe {
(windows_core::Interface::vtable(self).SetSettings)(
windows_core::Interface::as_raw(self),
fabricclientsettings,
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClientSettings2_Vtbl {
pub base__: IFabricClientSettings_Vtbl,
pub GetSettings: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub SetSettings: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_CLIENT_SETTINGS,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
SetSettings: usize,
}
unsafe impl Send for IFabricClientSettings2 {}
unsafe impl Sync for IFabricClientSettings2 {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricClientSettings2_Impl: IFabricClientSettings_Impl {
fn GetSettings(&self) -> windows_core::Result<IFabricClientSettingsResult>;
fn SetSettings(
&self,
fabricclientsettings: *const super::FabricTypes::FABRIC_CLIENT_SETTINGS,
) -> windows_core::Result<()>;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricClientSettings2_Vtbl {
pub const fn new<Identity: IFabricClientSettings2_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn GetSettings<
Identity: IFabricClientSettings2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClientSettings2_Impl::GetSettings(this) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn SetSettings<
Identity: IFabricClientSettings2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
fabricclientsettings: *const super::FabricTypes::FABRIC_CLIENT_SETTINGS,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClientSettings2_Impl::SetSettings(
this,
core::mem::transmute_copy(&fabricclientsettings),
)
.into()
}
}
Self {
base__: IFabricClientSettings_Vtbl::new::<Identity, OFFSET>(),
GetSettings: GetSettings::<Identity, OFFSET>,
SetSettings: SetSettings::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClientSettings2 as windows_core::Interface>::IID
|| iid == &<IFabricClientSettings as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricClientSettings2 {}
windows_core::imp::define_interface!(
IFabricClientSettingsResult,
IFabricClientSettingsResult_Vtbl,
0x3b825afd_cb31_4589_961e_e3778aa23a60
);
windows_core::imp::interface_hierarchy!(IFabricClientSettingsResult, windows_core::IUnknown);
impl IFabricClientSettingsResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Settings(&self) -> *const super::FabricTypes::FABRIC_CLIENT_SETTINGS {
unsafe {
(windows_core::Interface::vtable(self).get_Settings)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClientSettingsResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Settings:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CLIENT_SETTINGS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Settings: usize,
}
unsafe impl Send for IFabricClientSettingsResult {}
unsafe impl Sync for IFabricClientSettingsResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricClientSettingsResult_Impl: windows_core::IUnknownImpl {
fn get_Settings(&self) -> *const super::FabricTypes::FABRIC_CLIENT_SETTINGS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricClientSettingsResult_Vtbl {
pub const fn new<Identity: IFabricClientSettingsResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Settings<
Identity: IFabricClientSettingsResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CLIENT_SETTINGS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClientSettingsResult_Impl::get_Settings(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Settings: get_Settings::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClientSettingsResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricClientSettingsResult {}
windows_core::imp::define_interface!(
IFabricClusterHealthResult,
IFabricClusterHealthResult_Vtbl,
0x6b9b0f2c_6782_4a31_a256_570fa8ba32d3
);
windows_core::imp::interface_hierarchy!(IFabricClusterHealthResult, windows_core::IUnknown);
impl IFabricClusterHealthResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ClusterHealth(&self) -> *const super::FabricTypes::FABRIC_CLUSTER_HEALTH {
unsafe {
(windows_core::Interface::vtable(self).get_ClusterHealth)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterHealthResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_ClusterHealth:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CLUSTER_HEALTH,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_ClusterHealth: usize,
}
unsafe impl Send for IFabricClusterHealthResult {}
unsafe impl Sync for IFabricClusterHealthResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricClusterHealthResult_Impl: windows_core::IUnknownImpl {
fn get_ClusterHealth(&self) -> *const super::FabricTypes::FABRIC_CLUSTER_HEALTH;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricClusterHealthResult_Vtbl {
pub const fn new<Identity: IFabricClusterHealthResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_ClusterHealth<
Identity: IFabricClusterHealthResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CLUSTER_HEALTH {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterHealthResult_Impl::get_ClusterHealth(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ClusterHealth: get_ClusterHealth::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterHealthResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricClusterHealthResult {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient,
IFabricClusterManagementClient_Vtbl,
0xa3cf17e0_cf84_4ae0_b720_1785c0fb4ace
);
windows_core::imp::interface_hierarchy!(IFabricClusterManagementClient, windows_core::IUnknown);
impl IFabricClusterManagementClient {
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginNodeStateRemoved<P0, P2>(
&self,
nodename: P0,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginNodeStateRemoved)(
windows_core::Interface::as_raw(self),
nodename.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndNodeStateRemoved<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndNodeStateRemoved)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginRecoverPartitions<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRecoverPartitions)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRecoverPartitions<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndRecoverPartitions)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginNodeStateRemoved: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginNodeStateRemoved: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndNodeStateRemoved: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndNodeStateRemoved: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginRecoverPartitions: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginRecoverPartitions: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRecoverPartitions: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRecoverPartitions: usize,
}
unsafe impl Send for IFabricClusterManagementClient {}
unsafe impl Sync for IFabricClusterManagementClient {}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub trait IFabricClusterManagementClient_Impl: windows_core::IUnknownImpl {
fn BeginNodeStateRemoved(
&self,
nodename: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndNodeStateRemoved(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginRecoverPartitions(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRecoverPartitions(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
impl IFabricClusterManagementClient_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginNodeStateRemoved<
Identity: IFabricClusterManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
nodename: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient_Impl::BeginNodeStateRemoved(
this,
core::mem::transmute(&nodename),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndNodeStateRemoved<
Identity: IFabricClusterManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient_Impl::EndNodeStateRemoved(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginRecoverPartitions<
Identity: IFabricClusterManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient_Impl::BeginRecoverPartitions(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRecoverPartitions<
Identity: IFabricClusterManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient_Impl::EndRecoverPartitions(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginNodeStateRemoved: BeginNodeStateRemoved::<Identity, OFFSET>,
EndNodeStateRemoved: EndNodeStateRemoved::<Identity, OFFSET>,
BeginRecoverPartitions: BeginRecoverPartitions::<Identity, OFFSET>,
EndRecoverPartitions: EndRecoverPartitions::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
impl windows_core::RuntimeName for IFabricClusterManagementClient {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient10,
IFabricClusterManagementClient10_Vtbl,
0xa4aceb4f_2e2b_4be1_9d12_44fe8cb5fb20
);
impl core::ops::Deref for IFabricClusterManagementClient10 {
type Target = IFabricClusterManagementClient9;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient10,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3,
IFabricClusterManagementClient4,
IFabricClusterManagementClient5,
IFabricClusterManagementClient6,
IFabricClusterManagementClient7,
IFabricClusterManagementClient8,
IFabricClusterManagementClient9
);
impl IFabricClusterManagementClient10 {
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetClusterConfiguration2<P0, P2>(
&self,
apiversion: P0,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetClusterConfiguration2)(
windows_core::Interface::as_raw(self),
apiversion.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetClusterConfiguration2<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetClusterConfiguration2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient10_Vtbl {
pub base__: IFabricClusterManagementClient9_Vtbl,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetClusterConfiguration2: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetClusterConfiguration2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetClusterConfiguration2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetClusterConfiguration2: usize,
}
unsafe impl Send for IFabricClusterManagementClient10 {}
unsafe impl Sync for IFabricClusterManagementClient10 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient10_Impl: IFabricClusterManagementClient9_Impl {
fn BeginGetClusterConfiguration2(
&self,
apiversion: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetClusterConfiguration2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient10_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient10_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginGetClusterConfiguration2<
Identity: IFabricClusterManagementClient10_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
apiversion: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient10_Impl::BeginGetClusterConfiguration2(
this,
core::mem::transmute(&apiversion),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetClusterConfiguration2<
Identity: IFabricClusterManagementClient10_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient10_Impl::EndGetClusterConfiguration2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricClusterManagementClient9_Vtbl::new::<Identity, OFFSET>(),
BeginGetClusterConfiguration2: BeginGetClusterConfiguration2::<Identity, OFFSET>,
EndGetClusterConfiguration2: EndGetClusterConfiguration2::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient10 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient8 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient9 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient10 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient11,
IFabricClusterManagementClient11_Vtbl,
0x254fd06b_792a_4233_b9a5_94019a36eae9
);
impl core::ops::Deref for IFabricClusterManagementClient11 {
type Target = IFabricClusterManagementClient10;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient11,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3,
IFabricClusterManagementClient4,
IFabricClusterManagementClient5,
IFabricClusterManagementClient6,
IFabricClusterManagementClient7,
IFabricClusterManagementClient8,
IFabricClusterManagementClient9,
IFabricClusterManagementClient10
);
impl IFabricClusterManagementClient11 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginAddConfigurationParameterOverrides<P0, P4>(
&self,
nodename: P0,
configurationoverridelist : * const super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_OVERRIDE_LIST,
force: bool,
timeoutmilliseconds: u32,
callback: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P4: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginAddConfigurationParameterOverrides)(
windows_core::Interface::as_raw(self),
nodename.param().abi(),
configurationoverridelist,
force,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndAddConfigurationParameterOverrides<P0>(
&self,
context: P0,
) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndAddConfigurationParameterOverrides)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginRemoveConfigurationOverrides<P0, P2>(
&self,
nodename: P0,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRemoveConfigurationOverrides)(
windows_core::Interface::as_raw(self),
nodename.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRemoveConfigurationOverrides<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndRemoveConfigurationOverrides)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetConfigurationOverrides<P0, P2>(
&self,
nodename: P0,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetConfigurationOverrides)(
windows_core::Interface::as_raw(self),
nodename.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetConfigurationOverrides<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetGetConfigurationOverridesListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetConfigurationOverrides)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient11_Vtbl {
pub base__: IFabricClusterManagementClient10_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginAddConfigurationParameterOverrides: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
*const super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_OVERRIDE_LIST,
bool,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginAddConfigurationParameterOverrides: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndAddConfigurationParameterOverrides: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndAddConfigurationParameterOverrides: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginRemoveConfigurationOverrides: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginRemoveConfigurationOverrides: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRemoveConfigurationOverrides: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRemoveConfigurationOverrides: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetConfigurationOverrides: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetConfigurationOverrides: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetConfigurationOverrides: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetConfigurationOverrides: usize,
}
unsafe impl Send for IFabricClusterManagementClient11 {}
unsafe impl Sync for IFabricClusterManagementClient11 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient11_Impl: IFabricClusterManagementClient10_Impl {
fn BeginAddConfigurationParameterOverrides(
&self,
nodename: &windows_core::PCWSTR,
configurationoverridelist : * const super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_OVERRIDE_LIST,
force: bool,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndAddConfigurationParameterOverrides(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginRemoveConfigurationOverrides(
&self,
nodename: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRemoveConfigurationOverrides(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetConfigurationOverrides(
&self,
nodename: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetConfigurationOverrides(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetGetConfigurationOverridesListResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient11_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient11_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginAddConfigurationParameterOverrides<
Identity: IFabricClusterManagementClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
nodename: windows_core::PCWSTR,
configurationoverridelist : * const super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_OVERRIDE_LIST,
force: bool,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient11_Impl::BeginAddConfigurationParameterOverrides(
this,
core::mem::transmute(&nodename),
core::mem::transmute_copy(&configurationoverridelist),
core::mem::transmute_copy(&force),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndAddConfigurationParameterOverrides<
Identity: IFabricClusterManagementClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient11_Impl::EndAddConfigurationParameterOverrides(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginRemoveConfigurationOverrides<
Identity: IFabricClusterManagementClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
nodename: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient11_Impl::BeginRemoveConfigurationOverrides(
this,
core::mem::transmute(&nodename),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRemoveConfigurationOverrides<
Identity: IFabricClusterManagementClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient11_Impl::EndRemoveConfigurationOverrides(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetConfigurationOverrides<
Identity: IFabricClusterManagementClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
nodename: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient11_Impl::BeginGetConfigurationOverrides(
this,
core::mem::transmute(&nodename),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetConfigurationOverrides<
Identity: IFabricClusterManagementClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient11_Impl::EndGetConfigurationOverrides(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricClusterManagementClient10_Vtbl::new::<Identity, OFFSET>(),
BeginAddConfigurationParameterOverrides: BeginAddConfigurationParameterOverrides::<
Identity,
OFFSET,
>,
EndAddConfigurationParameterOverrides: EndAddConfigurationParameterOverrides::<
Identity,
OFFSET,
>,
BeginRemoveConfigurationOverrides: BeginRemoveConfigurationOverrides::<Identity, OFFSET>,
EndRemoveConfigurationOverrides: EndRemoveConfigurationOverrides::<Identity, OFFSET>,
BeginGetConfigurationOverrides: BeginGetConfigurationOverrides::<Identity, OFFSET>,
EndGetConfigurationOverrides: EndGetConfigurationOverrides::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient11 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient8 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient9 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient10 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient11 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient12,
IFabricClusterManagementClient12_Vtbl,
0x3ee688d1_4db0_49be_a636_981aed93120f
);
impl core::ops::Deref for IFabricClusterManagementClient12 {
type Target = IFabricClusterManagementClient11;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient12,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3,
IFabricClusterManagementClient4,
IFabricClusterManagementClient5,
IFabricClusterManagementClient6,
IFabricClusterManagementClient7,
IFabricClusterManagementClient8,
IFabricClusterManagementClient9,
IFabricClusterManagementClient10,
IFabricClusterManagementClient11
);
impl IFabricClusterManagementClient12 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpdatePartitionLoad<P2>(
&self,
partitionmetricloaddescriptionlist : * const super::FabricTypes::FABRIC_UPDATE_PARTITION_LOAD_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpdatePartitionLoad)(
windows_core::Interface::as_raw(self),
partitionmetricloaddescriptionlist,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpdatePartitionLoad<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricUpdatePartitionLoadResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndUpdatePartitionLoad)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient12_Vtbl {
pub base__: IFabricClusterManagementClient11_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpdatePartitionLoad: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_UPDATE_PARTITION_LOAD_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpdatePartitionLoad: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpdatePartitionLoad: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpdatePartitionLoad: usize,
}
unsafe impl Send for IFabricClusterManagementClient12 {}
unsafe impl Sync for IFabricClusterManagementClient12 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient12_Impl: IFabricClusterManagementClient11_Impl {
fn BeginUpdatePartitionLoad(
&self,
partitionmetricloaddescriptionlist : * const super::FabricTypes::FABRIC_UPDATE_PARTITION_LOAD_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpdatePartitionLoad(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricUpdatePartitionLoadResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient12_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient12_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginUpdatePartitionLoad<
Identity: IFabricClusterManagementClient12_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
partitionmetricloaddescriptionlist : * const super::FabricTypes::FABRIC_UPDATE_PARTITION_LOAD_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient12_Impl::BeginUpdatePartitionLoad(
this,
core::mem::transmute_copy(&partitionmetricloaddescriptionlist),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpdatePartitionLoad<
Identity: IFabricClusterManagementClient12_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient12_Impl::EndUpdatePartitionLoad(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricClusterManagementClient11_Vtbl::new::<Identity, OFFSET>(),
BeginUpdatePartitionLoad: BeginUpdatePartitionLoad::<Identity, OFFSET>,
EndUpdatePartitionLoad: EndUpdatePartitionLoad::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient12 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient8 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient9 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient10 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient11 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient12 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient13,
IFabricClusterManagementClient13_Vtbl,
0x8aa4132e_ff48_710c_442f_187361aa73bd
);
impl core::ops::Deref for IFabricClusterManagementClient13 {
type Target = IFabricClusterManagementClient12;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient13,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3,
IFabricClusterManagementClient4,
IFabricClusterManagementClient5,
IFabricClusterManagementClient6,
IFabricClusterManagementClient7,
IFabricClusterManagementClient8,
IFabricClusterManagementClient9,
IFabricClusterManagementClient10,
IFabricClusterManagementClient11,
IFabricClusterManagementClient12
);
impl IFabricClusterManagementClient13 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginAddNodeTags<P0, P3>(
&self,
nodename: P0,
nodetagslist: *const super::FabricTypes::FABRIC_STRING_LIST,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginAddNodeTags)(
windows_core::Interface::as_raw(self),
nodename.param().abi(),
nodetagslist,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndAddNodeTags<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndAddNodeTags)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginRemoveNodeTags<P0, P3>(
&self,
nodename: P0,
nodetagslist: *const super::FabricTypes::FABRIC_STRING_LIST,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRemoveNodeTags)(
windows_core::Interface::as_raw(self),
nodename.param().abi(),
nodetagslist,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRemoveNodeTags<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndRemoveNodeTags)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient13_Vtbl {
pub base__: IFabricClusterManagementClient12_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginAddNodeTags: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
*const super::FabricTypes::FABRIC_STRING_LIST,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginAddNodeTags: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndAddNodeTags: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndAddNodeTags: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginRemoveNodeTags: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
*const super::FabricTypes::FABRIC_STRING_LIST,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginRemoveNodeTags: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRemoveNodeTags: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRemoveNodeTags: usize,
}
unsafe impl Send for IFabricClusterManagementClient13 {}
unsafe impl Sync for IFabricClusterManagementClient13 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient13_Impl: IFabricClusterManagementClient12_Impl {
fn BeginAddNodeTags(
&self,
nodename: &windows_core::PCWSTR,
nodetagslist: *const super::FabricTypes::FABRIC_STRING_LIST,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndAddNodeTags(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginRemoveNodeTags(
&self,
nodename: &windows_core::PCWSTR,
nodetagslist: *const super::FabricTypes::FABRIC_STRING_LIST,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRemoveNodeTags(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient13_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient13_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginAddNodeTags<
Identity: IFabricClusterManagementClient13_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
nodename: windows_core::PCWSTR,
nodetagslist: *const super::FabricTypes::FABRIC_STRING_LIST,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient13_Impl::BeginAddNodeTags(
this,
core::mem::transmute(&nodename),
core::mem::transmute_copy(&nodetagslist),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndAddNodeTags<
Identity: IFabricClusterManagementClient13_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient13_Impl::EndAddNodeTags(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginRemoveNodeTags<
Identity: IFabricClusterManagementClient13_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
nodename: windows_core::PCWSTR,
nodetagslist: *const super::FabricTypes::FABRIC_STRING_LIST,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient13_Impl::BeginRemoveNodeTags(
this,
core::mem::transmute(&nodename),
core::mem::transmute_copy(&nodetagslist),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRemoveNodeTags<
Identity: IFabricClusterManagementClient13_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient13_Impl::EndRemoveNodeTags(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricClusterManagementClient12_Vtbl::new::<Identity, OFFSET>(),
BeginAddNodeTags: BeginAddNodeTags::<Identity, OFFSET>,
EndAddNodeTags: EndAddNodeTags::<Identity, OFFSET>,
BeginRemoveNodeTags: BeginRemoveNodeTags::<Identity, OFFSET>,
EndRemoveNodeTags: EndRemoveNodeTags::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient13 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient8 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient9 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient10 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient11 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient12 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient13 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient14,
IFabricClusterManagementClient14_Vtbl,
0x90331368_36d5_4e7d_ae95_f9d2849075e3
);
impl core::ops::Deref for IFabricClusterManagementClient14 {
type Target = IFabricClusterManagementClient13;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient14,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3,
IFabricClusterManagementClient4,
IFabricClusterManagementClient5,
IFabricClusterManagementClient6,
IFabricClusterManagementClient7,
IFabricClusterManagementClient8,
IFabricClusterManagementClient9,
IFabricClusterManagementClient10,
IFabricClusterManagementClient11,
IFabricClusterManagementClient12,
IFabricClusterManagementClient13
);
impl IFabricClusterManagementClient14 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginValidateFabricUpgrade<P2>(
&self,
upgradedescription: *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginValidateFabricUpgrade)(
windows_core::Interface::as_raw(self),
upgradedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndValidateFabricUpgrade<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricValidateFabricUpgradeResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndValidateFabricUpgrade)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient14_Vtbl {
pub base__: IFabricClusterManagementClient13_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginValidateFabricUpgrade: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginValidateFabricUpgrade: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndValidateFabricUpgrade: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndValidateFabricUpgrade: usize,
}
unsafe impl Send for IFabricClusterManagementClient14 {}
unsafe impl Sync for IFabricClusterManagementClient14 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient14_Impl: IFabricClusterManagementClient13_Impl {
fn BeginValidateFabricUpgrade(
&self,
upgradedescription: *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndValidateFabricUpgrade(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricValidateFabricUpgradeResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient14_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient14_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginValidateFabricUpgrade<
Identity: IFabricClusterManagementClient14_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
upgradedescription: *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient14_Impl::BeginValidateFabricUpgrade(
this,
core::mem::transmute_copy(&upgradedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndValidateFabricUpgrade<
Identity: IFabricClusterManagementClient14_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient14_Impl::EndValidateFabricUpgrade(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricClusterManagementClient13_Vtbl::new::<Identity, OFFSET>(),
BeginValidateFabricUpgrade: BeginValidateFabricUpgrade::<Identity, OFFSET>,
EndValidateFabricUpgrade: EndValidateFabricUpgrade::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient14 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient8 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient9 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient10 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient11 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient12 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient13 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient14 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient15,
IFabricClusterManagementClient15_Vtbl,
0x1fa1b567_0c46_45d8_95f3_6aa2a3f8e495
);
impl core::ops::Deref for IFabricClusterManagementClient15 {
type Target = IFabricClusterManagementClient14;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient15,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3,
IFabricClusterManagementClient4,
IFabricClusterManagementClient5,
IFabricClusterManagementClient6,
IFabricClusterManagementClient7,
IFabricClusterManagementClient8,
IFabricClusterManagementClient9,
IFabricClusterManagementClient10,
IFabricClusterManagementClient11,
IFabricClusterManagementClient12,
IFabricClusterManagementClient13,
IFabricClusterManagementClient14
);
impl IFabricClusterManagementClient15 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpdatePartitionMoveCost<P2>(
&self,
partitionmovecostdescriptionlist : * const super::FabricTypes::FABRIC_UPDATE_PARTITION_MOVE_COST_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpdatePartitionMoveCost)(
windows_core::Interface::as_raw(self),
partitionmovecostdescriptionlist,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpdatePartitionMoveCost<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricUpdatePartitionMoveCostResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndUpdatePartitionMoveCost)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient15_Vtbl {
pub base__: IFabricClusterManagementClient14_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpdatePartitionMoveCost: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_UPDATE_PARTITION_MOVE_COST_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpdatePartitionMoveCost: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpdatePartitionMoveCost: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpdatePartitionMoveCost: usize,
}
unsafe impl Send for IFabricClusterManagementClient15 {}
unsafe impl Sync for IFabricClusterManagementClient15 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient15_Impl: IFabricClusterManagementClient14_Impl {
fn BeginUpdatePartitionMoveCost(
&self,
partitionmovecostdescriptionlist : * const super::FabricTypes::FABRIC_UPDATE_PARTITION_MOVE_COST_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpdatePartitionMoveCost(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricUpdatePartitionMoveCostResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient15_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient15_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginUpdatePartitionMoveCost<
Identity: IFabricClusterManagementClient15_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
partitionmovecostdescriptionlist : * const super::FabricTypes::FABRIC_UPDATE_PARTITION_MOVE_COST_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient15_Impl::BeginUpdatePartitionMoveCost(
this,
core::mem::transmute_copy(&partitionmovecostdescriptionlist),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpdatePartitionMoveCost<
Identity: IFabricClusterManagementClient15_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient15_Impl::EndUpdatePartitionMoveCost(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricClusterManagementClient14_Vtbl::new::<Identity, OFFSET>(),
BeginUpdatePartitionMoveCost: BeginUpdatePartitionMoveCost::<Identity, OFFSET>,
EndUpdatePartitionMoveCost: EndUpdatePartitionMoveCost::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient15 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient8 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient9 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient10 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient11 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient12 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient13 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient14 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient15 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient16,
IFabricClusterManagementClient16_Vtbl,
0xa5fb109d_6553_46cf_8016_d919aab3b737
);
impl core::ops::Deref for IFabricClusterManagementClient16 {
type Target = IFabricClusterManagementClient15;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient16,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3,
IFabricClusterManagementClient4,
IFabricClusterManagementClient5,
IFabricClusterManagementClient6,
IFabricClusterManagementClient7,
IFabricClusterManagementClient8,
IFabricClusterManagementClient9,
IFabricClusterManagementClient10,
IFabricClusterManagementClient11,
IFabricClusterManagementClient12,
IFabricClusterManagementClient13,
IFabricClusterManagementClient14,
IFabricClusterManagementClient15
);
impl IFabricClusterManagementClient16 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDeactivateNode2<P0, P3, P4>(
&self,
nodename: P0,
intent: super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT,
timeoutmilliseconds: u32,
callback: P3,
description: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
P4: windows_core::Param<windows_core::PCWSTR>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDeactivateNode2)(
windows_core::Interface::as_raw(self),
nodename.param().abi(),
intent,
timeoutmilliseconds,
callback.param().abi(),
description.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDeactivateNode2<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDeactivateNode2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient16_Vtbl {
pub base__: IFabricClusterManagementClient15_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDeactivateNode2: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT,
u32,
*mut core::ffi::c_void,
windows_core::PCWSTR,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDeactivateNode2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDeactivateNode2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDeactivateNode2: usize,
}
unsafe impl Send for IFabricClusterManagementClient16 {}
unsafe impl Sync for IFabricClusterManagementClient16 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient16_Impl: IFabricClusterManagementClient15_Impl {
fn BeginDeactivateNode2(
&self,
nodename: &windows_core::PCWSTR,
intent: super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
description: &windows_core::PCWSTR,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDeactivateNode2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient16_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient16_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginDeactivateNode2<
Identity: IFabricClusterManagementClient16_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
nodename: windows_core::PCWSTR,
intent: super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
description: windows_core::PCWSTR,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient16_Impl::BeginDeactivateNode2(
this,
core::mem::transmute(&nodename),
core::mem::transmute_copy(&intent),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
core::mem::transmute(&description),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDeactivateNode2<
Identity: IFabricClusterManagementClient16_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient16_Impl::EndDeactivateNode2(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricClusterManagementClient15_Vtbl::new::<Identity, OFFSET>(),
BeginDeactivateNode2: BeginDeactivateNode2::<Identity, OFFSET>,
EndDeactivateNode2: EndDeactivateNode2::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient16 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient8 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient9 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient10 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient11 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient12 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient13 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient14 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient15 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient16 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient2,
IFabricClusterManagementClient2_Vtbl,
0xf9493e16_6a49_4d79_8695_5a6826b504c5
);
impl core::ops::Deref for IFabricClusterManagementClient2 {
type Target = IFabricClusterManagementClient;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient2,
windows_core::IUnknown,
IFabricClusterManagementClient
);
impl IFabricClusterManagementClient2 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDeactivateNode<P0, P3>(
&self,
nodename: P0,
intent: super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDeactivateNode)(
windows_core::Interface::as_raw(self),
nodename.param().abi(),
intent,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDeactivateNode<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDeactivateNode)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginActivateNode<P0, P2>(
&self,
nodename: P0,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginActivateNode)(
windows_core::Interface::as_raw(self),
nodename.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndActivateNode<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndActivateNode)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginProvisionFabric<P0, P1, P3>(
&self,
codefilepath: P0,
clustermanifestfilepath: P1,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P1: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginProvisionFabric)(
windows_core::Interface::as_raw(self),
codefilepath.param().abi(),
clustermanifestfilepath.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndProvisionFabric<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndProvisionFabric)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpgradeFabric<P2>(
&self,
upgradedescription: *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpgradeFabric)(
windows_core::Interface::as_raw(self),
upgradedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpgradeFabric<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUpgradeFabric)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetFabricUpgradeProgress<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetFabricUpgradeProgress)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetFabricUpgradeProgress<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricUpgradeProgressResult2>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetFabricUpgradeProgress)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginMoveNextFabricUpgradeDomain<P0, P2>(
&self,
progress: P0,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<IFabricUpgradeProgressResult2>,
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginMoveNextFabricUpgradeDomain)(
windows_core::Interface::as_raw(self),
progress.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndMoveNextFabricUpgradeDomain<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndMoveNextFabricUpgradeDomain)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginMoveNextFabricUpgradeDomain2<P0, P2>(
&self,
nextupgradedomain: P0,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginMoveNextFabricUpgradeDomain2)(
windows_core::Interface::as_raw(self),
nextupgradedomain.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndMoveNextFabricUpgradeDomain2<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndMoveNextFabricUpgradeDomain2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginUnprovisionFabric<P0, P1, P3>(
&self,
codeversion: P0,
configversion: P1,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P1: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUnprovisionFabric)(
windows_core::Interface::as_raw(self),
codeversion.param().abi(),
configversion.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUnprovisionFabric<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUnprovisionFabric)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetClusterManifest<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetClusterManifest)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetClusterManifest<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetClusterManifest)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginRecoverPartition<P2>(
&self,
partitionid: super::FabricTypes::FABRIC_PARTITION_ID,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRecoverPartition)(
windows_core::Interface::as_raw(self),
partitionid,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRecoverPartition<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndRecoverPartition)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginRecoverServicePartitions<P2>(
&self,
servicename: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRecoverServicePartitions)(
windows_core::Interface::as_raw(self),
servicename,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRecoverServicePartitions<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndRecoverServicePartitions)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginRecoverSystemPartitions<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRecoverSystemPartitions)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRecoverSystemPartitions<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndRecoverSystemPartitions)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient2_Vtbl {
pub base__: IFabricClusterManagementClient_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDeactivateNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDeactivateNode: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDeactivateNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDeactivateNode: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginActivateNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginActivateNode: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndActivateNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndActivateNode: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginProvisionFabric: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginProvisionFabric: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndProvisionFabric: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndProvisionFabric: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpgradeFabric: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpgradeFabric: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpgradeFabric: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpgradeFabric: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetFabricUpgradeProgress: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetFabricUpgradeProgress: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetFabricUpgradeProgress: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetFabricUpgradeProgress: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginMoveNextFabricUpgradeDomain: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginMoveNextFabricUpgradeDomain: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndMoveNextFabricUpgradeDomain: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndMoveNextFabricUpgradeDomain: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginMoveNextFabricUpgradeDomain2: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginMoveNextFabricUpgradeDomain2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndMoveNextFabricUpgradeDomain2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndMoveNextFabricUpgradeDomain2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginUnprovisionFabric: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginUnprovisionFabric: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUnprovisionFabric: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUnprovisionFabric: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetClusterManifest: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetClusterManifest: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetClusterManifest: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetClusterManifest: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginRecoverPartition: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_PARTITION_ID,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginRecoverPartition: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRecoverPartition: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRecoverPartition: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginRecoverServicePartitions: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginRecoverServicePartitions: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRecoverServicePartitions: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRecoverServicePartitions: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginRecoverSystemPartitions: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginRecoverSystemPartitions: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRecoverSystemPartitions: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRecoverSystemPartitions: usize,
}
unsafe impl Send for IFabricClusterManagementClient2 {}
unsafe impl Sync for IFabricClusterManagementClient2 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient2_Impl: IFabricClusterManagementClient_Impl {
fn BeginDeactivateNode(
&self,
nodename: &windows_core::PCWSTR,
intent: super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDeactivateNode(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginActivateNode(
&self,
nodename: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndActivateNode(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginProvisionFabric(
&self,
codefilepath: &windows_core::PCWSTR,
clustermanifestfilepath: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndProvisionFabric(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginUpgradeFabric(
&self,
upgradedescription: *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpgradeFabric(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetFabricUpgradeProgress(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetFabricUpgradeProgress(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricUpgradeProgressResult2>;
fn BeginMoveNextFabricUpgradeDomain(
&self,
progress: windows_core::Ref<IFabricUpgradeProgressResult2>,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndMoveNextFabricUpgradeDomain(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginMoveNextFabricUpgradeDomain2(
&self,
nextupgradedomain: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndMoveNextFabricUpgradeDomain2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginUnprovisionFabric(
&self,
codeversion: &windows_core::PCWSTR,
configversion: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUnprovisionFabric(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetClusterManifest(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetClusterManifest(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>;
fn BeginRecoverPartition(
&self,
partitionid: &super::FabricTypes::FABRIC_PARTITION_ID,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRecoverPartition(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginRecoverServicePartitions(
&self,
servicename: &super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRecoverServicePartitions(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginRecoverSystemPartitions(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRecoverSystemPartitions(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient2_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient2_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginDeactivateNode<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
nodename: windows_core::PCWSTR,
intent: super::FabricTypes::FABRIC_NODE_DEACTIVATION_INTENT,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::BeginDeactivateNode(
this,
core::mem::transmute(&nodename),
core::mem::transmute_copy(&intent),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDeactivateNode<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient2_Impl::EndDeactivateNode(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginActivateNode<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
nodename: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::BeginActivateNode(
this,
core::mem::transmute(&nodename),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndActivateNode<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient2_Impl::EndActivateNode(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginProvisionFabric<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
codefilepath: windows_core::PCWSTR,
clustermanifestfilepath: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::BeginProvisionFabric(
this,
core::mem::transmute(&codefilepath),
core::mem::transmute(&clustermanifestfilepath),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndProvisionFabric<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient2_Impl::EndProvisionFabric(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginUpgradeFabric<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
upgradedescription: *const super::FabricTypes::FABRIC_UPGRADE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::BeginUpgradeFabric(
this,
core::mem::transmute_copy(&upgradedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpgradeFabric<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient2_Impl::EndUpgradeFabric(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetFabricUpgradeProgress<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::BeginGetFabricUpgradeProgress(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetFabricUpgradeProgress<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::EndGetFabricUpgradeProgress(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginMoveNextFabricUpgradeDomain<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
progress: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::BeginMoveNextFabricUpgradeDomain(
this,
core::mem::transmute_copy(&progress),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndMoveNextFabricUpgradeDomain<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient2_Impl::EndMoveNextFabricUpgradeDomain(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginMoveNextFabricUpgradeDomain2<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
nextupgradedomain: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::BeginMoveNextFabricUpgradeDomain2(
this,
core::mem::transmute(&nextupgradedomain),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndMoveNextFabricUpgradeDomain2<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient2_Impl::EndMoveNextFabricUpgradeDomain2(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginUnprovisionFabric<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
codeversion: windows_core::PCWSTR,
configversion: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::BeginUnprovisionFabric(
this,
core::mem::transmute(&codeversion),
core::mem::transmute(&configversion),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUnprovisionFabric<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient2_Impl::EndUnprovisionFabric(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetClusterManifest<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::BeginGetClusterManifest(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetClusterManifest<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::EndGetClusterManifest(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginRecoverPartition<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
partitionid: super::FabricTypes::FABRIC_PARTITION_ID,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::BeginRecoverPartition(
this,
core::mem::transmute(&partitionid),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRecoverPartition<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient2_Impl::EndRecoverPartition(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginRecoverServicePartitions<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
servicename: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::BeginRecoverServicePartitions(
this,
core::mem::transmute(&servicename),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRecoverServicePartitions<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient2_Impl::EndRecoverServicePartitions(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginRecoverSystemPartitions<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient2_Impl::BeginRecoverSystemPartitions(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRecoverSystemPartitions<
Identity: IFabricClusterManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient2_Impl::EndRecoverSystemPartitions(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricClusterManagementClient_Vtbl::new::<Identity, OFFSET>(),
BeginDeactivateNode: BeginDeactivateNode::<Identity, OFFSET>,
EndDeactivateNode: EndDeactivateNode::<Identity, OFFSET>,
BeginActivateNode: BeginActivateNode::<Identity, OFFSET>,
EndActivateNode: EndActivateNode::<Identity, OFFSET>,
BeginProvisionFabric: BeginProvisionFabric::<Identity, OFFSET>,
EndProvisionFabric: EndProvisionFabric::<Identity, OFFSET>,
BeginUpgradeFabric: BeginUpgradeFabric::<Identity, OFFSET>,
EndUpgradeFabric: EndUpgradeFabric::<Identity, OFFSET>,
BeginGetFabricUpgradeProgress: BeginGetFabricUpgradeProgress::<Identity, OFFSET>,
EndGetFabricUpgradeProgress: EndGetFabricUpgradeProgress::<Identity, OFFSET>,
BeginMoveNextFabricUpgradeDomain: BeginMoveNextFabricUpgradeDomain::<Identity, OFFSET>,
EndMoveNextFabricUpgradeDomain: EndMoveNextFabricUpgradeDomain::<Identity, OFFSET>,
BeginMoveNextFabricUpgradeDomain2: BeginMoveNextFabricUpgradeDomain2::<Identity, OFFSET>,
EndMoveNextFabricUpgradeDomain2: EndMoveNextFabricUpgradeDomain2::<Identity, OFFSET>,
BeginUnprovisionFabric: BeginUnprovisionFabric::<Identity, OFFSET>,
EndUnprovisionFabric: EndUnprovisionFabric::<Identity, OFFSET>,
BeginGetClusterManifest: BeginGetClusterManifest::<Identity, OFFSET>,
EndGetClusterManifest: EndGetClusterManifest::<Identity, OFFSET>,
BeginRecoverPartition: BeginRecoverPartition::<Identity, OFFSET>,
EndRecoverPartition: EndRecoverPartition::<Identity, OFFSET>,
BeginRecoverServicePartitions: BeginRecoverServicePartitions::<Identity, OFFSET>,
EndRecoverServicePartitions: EndRecoverServicePartitions::<Identity, OFFSET>,
BeginRecoverSystemPartitions: BeginRecoverSystemPartitions::<Identity, OFFSET>,
EndRecoverSystemPartitions: EndRecoverSystemPartitions::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient2 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient3,
IFabricClusterManagementClient3_Vtbl,
0xc3001d74_92b6_44cb_ac2f_2ffc4a56287c
);
impl core::ops::Deref for IFabricClusterManagementClient3 {
type Target = IFabricClusterManagementClient2;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient3,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2
);
impl IFabricClusterManagementClient3 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpdateFabricUpgrade<P2>(
&self,
description: *const super::FabricTypes::FABRIC_UPGRADE_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpdateFabricUpgrade)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpdateFabricUpgrade<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUpdateFabricUpgrade)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginStopNode<P2>(
&self,
stopnodedescription: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginStopNode)(
windows_core::Interface::as_raw(self),
stopnodedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndStopNode<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndStopNode)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginRestartNode<P2>(
&self,
restartnodedescription: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRestartNode)(
windows_core::Interface::as_raw(self),
restartnodedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRestartNode<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndRestartNode)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginStartNode<P2>(
&self,
startnodedescription: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginStartNode)(
windows_core::Interface::as_raw(self),
startnodedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndStartNode<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndStartNode)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
pub unsafe fn CopyClusterPackage<P0, P1, P2, P3, P4>(
&self,
imagestoreconnectionstring: P0,
clustermanifestpath: P1,
clustermanifestpathinimagestore: P2,
codepackagepath: P3,
codepackagepathinimagestore: P4,
) -> windows_core::HRESULT
where
P0: windows_core::Param<windows_core::PCWSTR>,
P1: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<windows_core::PCWSTR>,
P4: windows_core::Param<windows_core::PCWSTR>,
{
unsafe {
(windows_core::Interface::vtable(self).CopyClusterPackage)(
windows_core::Interface::as_raw(self),
imagestoreconnectionstring.param().abi(),
clustermanifestpath.param().abi(),
clustermanifestpathinimagestore.param().abi(),
codepackagepath.param().abi(),
codepackagepathinimagestore.param().abi(),
)
}
}
pub unsafe fn RemoveClusterPackage<P0, P1, P2>(
&self,
imagestoreconnectionstring: P0,
clustermanifestpathinimagestore: P1,
codepackagepathinimagestore: P2,
) -> windows_core::HRESULT
where
P0: windows_core::Param<windows_core::PCWSTR>,
P1: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<windows_core::PCWSTR>,
{
unsafe {
(windows_core::Interface::vtable(self).RemoveClusterPackage)(
windows_core::Interface::as_raw(self),
imagestoreconnectionstring.param().abi(),
clustermanifestpathinimagestore.param().abi(),
codepackagepathinimagestore.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient3_Vtbl {
pub base__: IFabricClusterManagementClient2_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpdateFabricUpgrade: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_UPGRADE_UPDATE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpdateFabricUpgrade: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpdateFabricUpgrade: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpdateFabricUpgrade: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginStopNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginStopNode: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndStopNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndStopNode: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginRestartNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginRestartNode: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRestartNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRestartNode: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginStartNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginStartNode: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndStartNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndStartNode: usize,
pub CopyClusterPackage: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
windows_core::PCWSTR,
windows_core::PCWSTR,
windows_core::PCWSTR,
windows_core::PCWSTR,
) -> windows_core::HRESULT,
pub RemoveClusterPackage: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
windows_core::PCWSTR,
windows_core::PCWSTR,
) -> windows_core::HRESULT,
}
unsafe impl Send for IFabricClusterManagementClient3 {}
unsafe impl Sync for IFabricClusterManagementClient3 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient3_Impl: IFabricClusterManagementClient2_Impl {
fn BeginUpdateFabricUpgrade(
&self,
description: *const super::FabricTypes::FABRIC_UPGRADE_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpdateFabricUpgrade(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginStopNode(
&self,
stopnodedescription: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndStopNode(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginRestartNode(
&self,
restartnodedescription: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRestartNode(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginStartNode(
&self,
startnodedescription: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndStartNode(
&self,
context: windows_core::Ref<super::FabricCommon::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<()>;
fn RemoveClusterPackage(
&self,
imagestoreconnectionstring: &windows_core::PCWSTR,
clustermanifestpathinimagestore: &windows_core::PCWSTR,
codepackagepathinimagestore: &windows_core::PCWSTR,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient3_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient3_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginUpdateFabricUpgrade<
Identity: IFabricClusterManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_UPGRADE_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient3_Impl::BeginUpdateFabricUpgrade(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpdateFabricUpgrade<
Identity: IFabricClusterManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient3_Impl::EndUpdateFabricUpgrade(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginStopNode<
Identity: IFabricClusterManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
stopnodedescription: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient3_Impl::BeginStopNode(
this,
core::mem::transmute_copy(&stopnodedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndStopNode<
Identity: IFabricClusterManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient3_Impl::EndStopNode(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginRestartNode<
Identity: IFabricClusterManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
restartnodedescription: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient3_Impl::BeginRestartNode(
this,
core::mem::transmute_copy(&restartnodedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRestartNode<
Identity: IFabricClusterManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient3_Impl::EndRestartNode(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginStartNode<
Identity: IFabricClusterManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
startnodedescription: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient3_Impl::BeginStartNode(
this,
core::mem::transmute_copy(&startnodedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndStartNode<
Identity: IFabricClusterManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient3_Impl::EndStartNode(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn CopyClusterPackage<
Identity: IFabricClusterManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
imagestoreconnectionstring: windows_core::PCWSTR,
clustermanifestpath: windows_core::PCWSTR,
clustermanifestpathinimagestore: windows_core::PCWSTR,
codepackagepath: windows_core::PCWSTR,
codepackagepathinimagestore: windows_core::PCWSTR,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient3_Impl::CopyClusterPackage(
this,
core::mem::transmute(&imagestoreconnectionstring),
core::mem::transmute(&clustermanifestpath),
core::mem::transmute(&clustermanifestpathinimagestore),
core::mem::transmute(&codepackagepath),
core::mem::transmute(&codepackagepathinimagestore),
)
.into()
}
}
unsafe extern "system" fn RemoveClusterPackage<
Identity: IFabricClusterManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
imagestoreconnectionstring: windows_core::PCWSTR,
clustermanifestpathinimagestore: windows_core::PCWSTR,
codepackagepathinimagestore: windows_core::PCWSTR,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient3_Impl::RemoveClusterPackage(
this,
core::mem::transmute(&imagestoreconnectionstring),
core::mem::transmute(&clustermanifestpathinimagestore),
core::mem::transmute(&codepackagepathinimagestore),
)
.into()
}
}
Self {
base__: IFabricClusterManagementClient2_Vtbl::new::<Identity, OFFSET>(),
BeginUpdateFabricUpgrade: BeginUpdateFabricUpgrade::<Identity, OFFSET>,
EndUpdateFabricUpgrade: EndUpdateFabricUpgrade::<Identity, OFFSET>,
BeginStopNode: BeginStopNode::<Identity, OFFSET>,
EndStopNode: EndStopNode::<Identity, OFFSET>,
BeginRestartNode: BeginRestartNode::<Identity, OFFSET>,
EndRestartNode: EndRestartNode::<Identity, OFFSET>,
BeginStartNode: BeginStartNode::<Identity, OFFSET>,
EndStartNode: EndStartNode::<Identity, OFFSET>,
CopyClusterPackage: CopyClusterPackage::<Identity, OFFSET>,
RemoveClusterPackage: RemoveClusterPackage::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient3 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient4,
IFabricClusterManagementClient4_Vtbl,
0xb6b12671_f283_4d71_a818_0260549bc83e
);
impl core::ops::Deref for IFabricClusterManagementClient4 {
type Target = IFabricClusterManagementClient3;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient4,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3
);
impl IFabricClusterManagementClient4 {
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginRollbackFabricUpgrade<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRollbackFabricUpgrade)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRollbackFabricUpgrade<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndRollbackFabricUpgrade)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient4_Vtbl {
pub base__: IFabricClusterManagementClient3_Vtbl,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginRollbackFabricUpgrade: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginRollbackFabricUpgrade: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRollbackFabricUpgrade: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRollbackFabricUpgrade: usize,
}
unsafe impl Send for IFabricClusterManagementClient4 {}
unsafe impl Sync for IFabricClusterManagementClient4 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient4_Impl: IFabricClusterManagementClient3_Impl {
fn BeginRollbackFabricUpgrade(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRollbackFabricUpgrade(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient4_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient4_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginRollbackFabricUpgrade<
Identity: IFabricClusterManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient4_Impl::BeginRollbackFabricUpgrade(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRollbackFabricUpgrade<
Identity: IFabricClusterManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient4_Impl::EndRollbackFabricUpgrade(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricClusterManagementClient3_Vtbl::new::<Identity, OFFSET>(),
BeginRollbackFabricUpgrade: BeginRollbackFabricUpgrade::<Identity, OFFSET>,
EndRollbackFabricUpgrade: EndRollbackFabricUpgrade::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient4 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient5,
IFabricClusterManagementClient5_Vtbl,
0xa6ddd816_a100_11e4_89d3_123b93f75cba
);
impl core::ops::Deref for IFabricClusterManagementClient5 {
type Target = IFabricClusterManagementClient4;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient5,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3,
IFabricClusterManagementClient4
);
impl IFabricClusterManagementClient5 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginResetPartitionLoad<P2>(
&self,
partitionid: super::FabricTypes::FABRIC_PARTITION_ID,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginResetPartitionLoad)(
windows_core::Interface::as_raw(self),
partitionid,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndResetPartitionLoad<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndResetPartitionLoad)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient5_Vtbl {
pub base__: IFabricClusterManagementClient4_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginResetPartitionLoad: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_PARTITION_ID,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginResetPartitionLoad: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndResetPartitionLoad: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndResetPartitionLoad: usize,
}
unsafe impl Send for IFabricClusterManagementClient5 {}
unsafe impl Sync for IFabricClusterManagementClient5 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient5_Impl: IFabricClusterManagementClient4_Impl {
fn BeginResetPartitionLoad(
&self,
partitionid: &super::FabricTypes::FABRIC_PARTITION_ID,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndResetPartitionLoad(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient5_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient5_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginResetPartitionLoad<
Identity: IFabricClusterManagementClient5_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
partitionid: super::FabricTypes::FABRIC_PARTITION_ID,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient5_Impl::BeginResetPartitionLoad(
this,
core::mem::transmute(&partitionid),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndResetPartitionLoad<
Identity: IFabricClusterManagementClient5_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient5_Impl::EndResetPartitionLoad(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricClusterManagementClient4_Vtbl::new::<Identity, OFFSET>(),
BeginResetPartitionLoad: BeginResetPartitionLoad::<Identity, OFFSET>,
EndResetPartitionLoad: EndResetPartitionLoad::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient5 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient6,
IFabricClusterManagementClient6_Vtbl,
0x9e454ae8_4b8c_4136_884a_37b0b92cc855
);
impl core::ops::Deref for IFabricClusterManagementClient6 {
type Target = IFabricClusterManagementClient5;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient6,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3,
IFabricClusterManagementClient4,
IFabricClusterManagementClient5
);
impl IFabricClusterManagementClient6 {
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginToggleVerboseServicePlacementHealthReporting<P2>(
&self,
enabled: bool,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self)
.BeginToggleVerboseServicePlacementHealthReporting)(
windows_core::Interface::as_raw(self),
enabled,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndToggleVerboseServicePlacementHealthReporting<P0>(
&self,
context: P0,
) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndToggleVerboseServicePlacementHealthReporting)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient6_Vtbl {
pub base__: IFabricClusterManagementClient5_Vtbl,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginToggleVerboseServicePlacementHealthReporting:
unsafe extern "system" fn(
*mut core::ffi::c_void,
bool,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginToggleVerboseServicePlacementHealthReporting: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndToggleVerboseServicePlacementHealthReporting:
unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndToggleVerboseServicePlacementHealthReporting: usize,
}
unsafe impl Send for IFabricClusterManagementClient6 {}
unsafe impl Sync for IFabricClusterManagementClient6 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient6_Impl: IFabricClusterManagementClient5_Impl {
fn BeginToggleVerboseServicePlacementHealthReporting(
&self,
enabled: bool,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndToggleVerboseServicePlacementHealthReporting(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient6_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient6_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginToggleVerboseServicePlacementHealthReporting<
Identity: IFabricClusterManagementClient6_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
enabled: bool,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient6_Impl::BeginToggleVerboseServicePlacementHealthReporting (this , core::mem::transmute_copy (& enabled) , core::mem::transmute_copy (& timeoutmilliseconds) , core::mem::transmute_copy (& callback) ,) { Ok (ok__) => { context . write (core::mem::transmute (ok__)) ; windows_core::HRESULT (0) } Err (err) => err . into () }
}
}
unsafe extern "system" fn EndToggleVerboseServicePlacementHealthReporting<
Identity: IFabricClusterManagementClient6_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient6_Impl::EndToggleVerboseServicePlacementHealthReporting (this , core::mem::transmute_copy (& context) ,) . into ()
}
}
Self {
base__: IFabricClusterManagementClient5_Vtbl::new::<Identity, OFFSET>(),
BeginToggleVerboseServicePlacementHealthReporting:
BeginToggleVerboseServicePlacementHealthReporting::<Identity, OFFSET>,
EndToggleVerboseServicePlacementHealthReporting:
EndToggleVerboseServicePlacementHealthReporting::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient5 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient6 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient7,
IFabricClusterManagementClient7_Vtbl,
0x9b9105ac_d595_4f59_9c94_1ffdbf92a876
);
impl core::ops::Deref for IFabricClusterManagementClient7 {
type Target = IFabricClusterManagementClient6;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient7,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3,
IFabricClusterManagementClient4,
IFabricClusterManagementClient5,
IFabricClusterManagementClient6
);
impl IFabricClusterManagementClient7 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpgradeConfiguration<P2>(
&self,
startupgradedescription: *const super::FabricTypes::FABRIC_START_UPGRADE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpgradeConfiguration)(
windows_core::Interface::as_raw(self),
startupgradedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpgradeConfiguration<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUpgradeConfiguration)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetClusterConfigurationUpgradeStatus<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetClusterConfigurationUpgradeStatus)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetClusterConfigurationUpgradeStatus<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricOrchestrationUpgradeStatusResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetClusterConfigurationUpgradeStatus)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetClusterConfiguration<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetClusterConfiguration)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetClusterConfiguration<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetClusterConfiguration)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetUpgradesPendingApproval<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetUpgradesPendingApproval)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetUpgradesPendingApproval<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndGetUpgradesPendingApproval)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginStartApprovedUpgrades<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginStartApprovedUpgrades)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndStartApprovedUpgrades<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndStartApprovedUpgrades)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient7_Vtbl {
pub base__: IFabricClusterManagementClient6_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpgradeConfiguration: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_START_UPGRADE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpgradeConfiguration: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpgradeConfiguration: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpgradeConfiguration: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetClusterConfigurationUpgradeStatus:
unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetClusterConfigurationUpgradeStatus: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetClusterConfigurationUpgradeStatus: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetClusterConfigurationUpgradeStatus: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetClusterConfiguration: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetClusterConfiguration: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetClusterConfiguration: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetClusterConfiguration: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetUpgradesPendingApproval: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetUpgradesPendingApproval: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetUpgradesPendingApproval: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetUpgradesPendingApproval: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginStartApprovedUpgrades: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginStartApprovedUpgrades: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndStartApprovedUpgrades: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndStartApprovedUpgrades: usize,
}
unsafe impl Send for IFabricClusterManagementClient7 {}
unsafe impl Sync for IFabricClusterManagementClient7 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient7_Impl: IFabricClusterManagementClient6_Impl {
fn BeginUpgradeConfiguration(
&self,
startupgradedescription: *const super::FabricTypes::FABRIC_START_UPGRADE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpgradeConfiguration(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetClusterConfigurationUpgradeStatus(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetClusterConfigurationUpgradeStatus(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricOrchestrationUpgradeStatusResult>;
fn BeginGetClusterConfiguration(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetClusterConfiguration(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>;
fn BeginGetUpgradesPendingApproval(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetUpgradesPendingApproval(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginStartApprovedUpgrades(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndStartApprovedUpgrades(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient7_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient7_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginUpgradeConfiguration<
Identity: IFabricClusterManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
startupgradedescription: *const super::FabricTypes::FABRIC_START_UPGRADE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient7_Impl::BeginUpgradeConfiguration(
this,
core::mem::transmute_copy(&startupgradedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpgradeConfiguration<
Identity: IFabricClusterManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient7_Impl::EndUpgradeConfiguration(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetClusterConfigurationUpgradeStatus<
Identity: IFabricClusterManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient7_Impl::BeginGetClusterConfigurationUpgradeStatus (this , core::mem::transmute_copy (& timeoutmilliseconds) , core::mem::transmute_copy (& callback) ,) { Ok (ok__) => { context . write (core::mem::transmute (ok__)) ; windows_core::HRESULT (0) } Err (err) => err . into () }
}
}
unsafe extern "system" fn EndGetClusterConfigurationUpgradeStatus<
Identity: IFabricClusterManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient7_Impl::EndGetClusterConfigurationUpgradeStatus(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetClusterConfiguration<
Identity: IFabricClusterManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient7_Impl::BeginGetClusterConfiguration(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetClusterConfiguration<
Identity: IFabricClusterManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient7_Impl::EndGetClusterConfiguration(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetUpgradesPendingApproval<
Identity: IFabricClusterManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient7_Impl::BeginGetUpgradesPendingApproval(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetUpgradesPendingApproval<
Identity: IFabricClusterManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient7_Impl::EndGetUpgradesPendingApproval(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginStartApprovedUpgrades<
Identity: IFabricClusterManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient7_Impl::BeginStartApprovedUpgrades(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndStartApprovedUpgrades<
Identity: IFabricClusterManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricClusterManagementClient7_Impl::EndStartApprovedUpgrades(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricClusterManagementClient6_Vtbl::new::<Identity, OFFSET>(),
BeginUpgradeConfiguration: BeginUpgradeConfiguration::<Identity, OFFSET>,
EndUpgradeConfiguration: EndUpgradeConfiguration::<Identity, OFFSET>,
BeginGetClusterConfigurationUpgradeStatus: BeginGetClusterConfigurationUpgradeStatus::<
Identity,
OFFSET,
>,
EndGetClusterConfigurationUpgradeStatus: EndGetClusterConfigurationUpgradeStatus::<
Identity,
OFFSET,
>,
BeginGetClusterConfiguration: BeginGetClusterConfiguration::<Identity, OFFSET>,
EndGetClusterConfiguration: EndGetClusterConfiguration::<Identity, OFFSET>,
BeginGetUpgradesPendingApproval: BeginGetUpgradesPendingApproval::<Identity, OFFSET>,
EndGetUpgradesPendingApproval: EndGetUpgradesPendingApproval::<Identity, OFFSET>,
BeginStartApprovedUpgrades: BeginStartApprovedUpgrades::<Identity, OFFSET>,
EndStartApprovedUpgrades: EndStartApprovedUpgrades::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient6 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient7 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient8,
IFabricClusterManagementClient8_Vtbl,
0x0b79641c_79a6_4162_904a_840babd08381
);
impl core::ops::Deref for IFabricClusterManagementClient8 {
type Target = IFabricClusterManagementClient7;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient8,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3,
IFabricClusterManagementClient4,
IFabricClusterManagementClient5,
IFabricClusterManagementClient6,
IFabricClusterManagementClient7
);
impl IFabricClusterManagementClient8 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetClusterManifest2<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetClusterManifest2)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetClusterManifest2<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetClusterManifest2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient8_Vtbl {
pub base__: IFabricClusterManagementClient7_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetClusterManifest2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetClusterManifest2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetClusterManifest2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetClusterManifest2: usize,
}
unsafe impl Send for IFabricClusterManagementClient8 {}
unsafe impl Sync for IFabricClusterManagementClient8 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient8_Impl: IFabricClusterManagementClient7_Impl {
fn BeginGetClusterManifest2(
&self,
querydescription: *const super::FabricTypes::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetClusterManifest2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient8_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient8_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginGetClusterManifest2<
Identity: IFabricClusterManagementClient8_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_CLUSTER_MANIFEST_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient8_Impl::BeginGetClusterManifest2(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetClusterManifest2<
Identity: 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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient8_Impl::EndGetClusterManifest2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricClusterManagementClient7_Vtbl::new::<Identity, OFFSET>(),
BeginGetClusterManifest2: BeginGetClusterManifest2::<Identity, OFFSET>,
EndGetClusterManifest2: EndGetClusterManifest2::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient8 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient7 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient8 {}
windows_core::imp::define_interface!(
IFabricClusterManagementClient9,
IFabricClusterManagementClient9_Vtbl,
0xc0f57578_538c_4cbe_bb55_8098b6a7cd4e
);
impl core::ops::Deref for IFabricClusterManagementClient9 {
type Target = IFabricClusterManagementClient8;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricClusterManagementClient9,
windows_core::IUnknown,
IFabricClusterManagementClient,
IFabricClusterManagementClient2,
IFabricClusterManagementClient3,
IFabricClusterManagementClient4,
IFabricClusterManagementClient5,
IFabricClusterManagementClient6,
IFabricClusterManagementClient7,
IFabricClusterManagementClient8
);
impl IFabricClusterManagementClient9 {
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetUpgradeOrchestrationServiceState<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetUpgradeOrchestrationServiceState)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetUpgradeOrchestrationServiceState<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetUpgradeOrchestrationServiceState)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginSetUpgradeOrchestrationServiceState<P0, P2>(
&self,
state: P0,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginSetUpgradeOrchestrationServiceState)(
windows_core::Interface::as_raw(self),
state.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndSetUpgradeOrchestrationServiceState<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricUpgradeOrchestrationServiceStateResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndSetUpgradeOrchestrationServiceState)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricClusterManagementClient9_Vtbl {
pub base__: IFabricClusterManagementClient8_Vtbl,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetUpgradeOrchestrationServiceState:
unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetUpgradeOrchestrationServiceState: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetUpgradeOrchestrationServiceState: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetUpgradeOrchestrationServiceState: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginSetUpgradeOrchestrationServiceState:
unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginSetUpgradeOrchestrationServiceState: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndSetUpgradeOrchestrationServiceState: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndSetUpgradeOrchestrationServiceState: usize,
}
unsafe impl Send for IFabricClusterManagementClient9 {}
unsafe impl Sync for IFabricClusterManagementClient9 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricClusterManagementClient9_Impl: IFabricClusterManagementClient8_Impl {
fn BeginGetUpgradeOrchestrationServiceState(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetUpgradeOrchestrationServiceState(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>;
fn BeginSetUpgradeOrchestrationServiceState(
&self,
state: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndSetUpgradeOrchestrationServiceState(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricUpgradeOrchestrationServiceStateResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricClusterManagementClient9_Vtbl {
pub const fn new<Identity: IFabricClusterManagementClient9_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginGetUpgradeOrchestrationServiceState<
Identity: IFabricClusterManagementClient9_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient9_Impl::BeginGetUpgradeOrchestrationServiceState(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetUpgradeOrchestrationServiceState<
Identity: 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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient9_Impl::EndGetUpgradeOrchestrationServiceState(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginSetUpgradeOrchestrationServiceState<
Identity: IFabricClusterManagementClient9_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
state: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient9_Impl::BeginSetUpgradeOrchestrationServiceState(
this,
core::mem::transmute(&state),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndSetUpgradeOrchestrationServiceState<
Identity: 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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricClusterManagementClient9_Impl::EndSetUpgradeOrchestrationServiceState(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricClusterManagementClient8_Vtbl::new::<Identity, OFFSET>(),
BeginGetUpgradeOrchestrationServiceState: BeginGetUpgradeOrchestrationServiceState::<
Identity,
OFFSET,
>,
EndGetUpgradeOrchestrationServiceState: EndGetUpgradeOrchestrationServiceState::<
Identity,
OFFSET,
>,
BeginSetUpgradeOrchestrationServiceState: BeginSetUpgradeOrchestrationServiceState::<
Identity,
OFFSET,
>,
EndSetUpgradeOrchestrationServiceState: EndSetUpgradeOrchestrationServiceState::<
Identity,
OFFSET,
>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricClusterManagementClient9 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricClusterManagementClient8 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricClusterManagementClient9 {}
windows_core::imp::define_interface!(
IFabricDeployedApplicationHealthResult,
IFabricDeployedApplicationHealthResult_Vtbl,
0x4df50bf4_7c28_4210_94f7_50625df6c942
);
windows_core::imp::interface_hierarchy!(
IFabricDeployedApplicationHealthResult,
windows_core::IUnknown
);
impl IFabricDeployedApplicationHealthResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_DeployedApplicationHealth(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH {
unsafe {
(windows_core::Interface::vtable(self).get_DeployedApplicationHealth)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricDeployedApplicationHealthResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub get_DeployedApplicationHealth:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH,
#[cfg(not(all(feature = "ServiceFabric_FabricTypes", feature = "Win32")))]
get_DeployedApplicationHealth: usize,
}
unsafe impl Send for IFabricDeployedApplicationHealthResult {}
unsafe impl Sync for IFabricDeployedApplicationHealthResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricDeployedApplicationHealthResult_Impl: windows_core::IUnknownImpl {
fn get_DeployedApplicationHealth(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricDeployedApplicationHealthResult_Vtbl {
pub const fn new<Identity: IFabricDeployedApplicationHealthResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_DeployedApplicationHealth<
Identity: IFabricDeployedApplicationHealthResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricDeployedApplicationHealthResult_Impl::get_DeployedApplicationHealth(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_DeployedApplicationHealth: get_DeployedApplicationHealth::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricDeployedApplicationHealthResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricDeployedApplicationHealthResult {}
windows_core::imp::define_interface!(
IFabricDeployedServicePackageHealthResult,
IFabricDeployedServicePackageHealthResult_Vtbl,
0x40991ce0_cdbb_44e9_9cdc_b14a5d5ea4c1
);
windows_core::imp::interface_hierarchy!(
IFabricDeployedServicePackageHealthResult,
windows_core::IUnknown
);
impl IFabricDeployedServicePackageHealthResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_DeployedServicePackageHealth(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH {
unsafe {
(windows_core::Interface::vtable(self).get_DeployedServicePackageHealth)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricDeployedServicePackageHealthResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (all (feature = "ServiceFabric_FabricTypes" , feature = "Win32"))] pub get_DeployedServicePackageHealth : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH , # [cfg (not (all (feature = "ServiceFabric_FabricTypes" , feature = "Win32")))] get_DeployedServicePackageHealth : usize , }
unsafe impl Send for IFabricDeployedServicePackageHealthResult {}
unsafe impl Sync for IFabricDeployedServicePackageHealthResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricDeployedServicePackageHealthResult_Impl: windows_core::IUnknownImpl {
fn get_DeployedServicePackageHealth(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricDeployedServicePackageHealthResult_Vtbl {
pub const fn new<
Identity: IFabricDeployedServicePackageHealthResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_DeployedServicePackageHealth<
Identity: IFabricDeployedServicePackageHealthResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricDeployedServicePackageHealthResult_Impl::get_DeployedServicePackageHealth(
this,
)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_DeployedServicePackageHealth: get_DeployedServicePackageHealth::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricDeployedServicePackageHealthResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricDeployedServicePackageHealthResult {}
windows_core::imp::define_interface!(
IFabricFaultManagementClient,
IFabricFaultManagementClient_Vtbl,
0x769e1838_8726_4dcd_a3c0_211673a6967a
);
windows_core::imp::interface_hierarchy!(IFabricFaultManagementClient, windows_core::IUnknown);
impl IFabricFaultManagementClient {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginRestartNode<P2>(
&self,
description: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRestartNode)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRestartNode<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricRestartNodeResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndRestartNode)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginStartNode<P2>(
&self,
description: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginStartNode)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndStartNode<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricStartNodeResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndStartNode)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginStopNode<P2>(
&self,
description: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginStopNode)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndStopNode<P0>(&self, context: P0) -> windows_core::Result<IFabricStopNodeResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndStopNode)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginRestartDeployedCodePackage<P2>(
&self,
description: *const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRestartDeployedCodePackage)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRestartDeployedCodePackage<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricRestartDeployedCodePackageResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndRestartDeployedCodePackage)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginMovePrimary<P2>(
&self,
description: *const super::FabricTypes::FABRIC_MOVE_PRIMARY_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginMovePrimary)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndMovePrimary<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricMovePrimaryResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndMovePrimary)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginMoveSecondary<P2>(
&self,
description: *const super::FabricTypes::FABRIC_MOVE_SECONDARY_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginMoveSecondary)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndMoveSecondary<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricMoveSecondaryResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndMoveSecondary)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricFaultManagementClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginRestartNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION2,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginRestartNode: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRestartNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRestartNode: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginStartNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION2,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginStartNode: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndStartNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndStartNode: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginStopNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION2,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginStopNode: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndStopNode: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndStopNode: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginRestartDeployedCodePackage: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginRestartDeployedCodePackage: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRestartDeployedCodePackage: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRestartDeployedCodePackage: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginMovePrimary: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_MOVE_PRIMARY_DESCRIPTION2,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginMovePrimary: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndMovePrimary: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndMovePrimary: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginMoveSecondary: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_MOVE_SECONDARY_DESCRIPTION2,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginMoveSecondary: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndMoveSecondary: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndMoveSecondary: usize,
}
unsafe impl Send for IFabricFaultManagementClient {}
unsafe impl Sync for IFabricFaultManagementClient {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricFaultManagementClient_Impl: windows_core::IUnknownImpl {
fn BeginRestartNode(
&self,
description: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRestartNode(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricRestartNodeResult>;
fn BeginStartNode(
&self,
description: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndStartNode(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricStartNodeResult>;
fn BeginStopNode(
&self,
description: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndStopNode(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricStopNodeResult>;
fn BeginRestartDeployedCodePackage(
&self,
description: *const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRestartDeployedCodePackage(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricRestartDeployedCodePackageResult>;
fn BeginMovePrimary(
&self,
description: *const super::FabricTypes::FABRIC_MOVE_PRIMARY_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndMovePrimary(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricMovePrimaryResult>;
fn BeginMoveSecondary(
&self,
description: *const super::FabricTypes::FABRIC_MOVE_SECONDARY_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndMoveSecondary(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricMoveSecondaryResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricFaultManagementClient_Vtbl {
pub const fn new<Identity: IFabricFaultManagementClient_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginRestartNode<
Identity: IFabricFaultManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_RESTART_NODE_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient_Impl::BeginRestartNode(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRestartNode<
Identity: IFabricFaultManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient_Impl::EndRestartNode(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginStartNode<
Identity: IFabricFaultManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_START_NODE_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient_Impl::BeginStartNode(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndStartNode<
Identity: IFabricFaultManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient_Impl::EndStartNode(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginStopNode<
Identity: IFabricFaultManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_STOP_NODE_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient_Impl::BeginStopNode(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndStopNode<
Identity: IFabricFaultManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient_Impl::EndStopNode(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginRestartDeployedCodePackage<
Identity: IFabricFaultManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description : * const super::FabricTypes::FABRIC_RESTART_DEPLOYED_CODE_PACKAGE_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient_Impl::BeginRestartDeployedCodePackage(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRestartDeployedCodePackage<
Identity: IFabricFaultManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient_Impl::EndRestartDeployedCodePackage(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginMovePrimary<
Identity: IFabricFaultManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_MOVE_PRIMARY_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient_Impl::BeginMovePrimary(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndMovePrimary<
Identity: IFabricFaultManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient_Impl::EndMovePrimary(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginMoveSecondary<
Identity: IFabricFaultManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_MOVE_SECONDARY_DESCRIPTION2,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient_Impl::BeginMoveSecondary(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndMoveSecondary<
Identity: IFabricFaultManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient_Impl::EndMoveSecondary(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginRestartNode: BeginRestartNode::<Identity, OFFSET>,
EndRestartNode: EndRestartNode::<Identity, OFFSET>,
BeginStartNode: BeginStartNode::<Identity, OFFSET>,
EndStartNode: EndStartNode::<Identity, OFFSET>,
BeginStopNode: BeginStopNode::<Identity, OFFSET>,
EndStopNode: EndStopNode::<Identity, OFFSET>,
BeginRestartDeployedCodePackage: BeginRestartDeployedCodePackage::<Identity, OFFSET>,
EndRestartDeployedCodePackage: EndRestartDeployedCodePackage::<Identity, OFFSET>,
BeginMovePrimary: BeginMovePrimary::<Identity, OFFSET>,
EndMovePrimary: EndMovePrimary::<Identity, OFFSET>,
BeginMoveSecondary: BeginMoveSecondary::<Identity, OFFSET>,
EndMoveSecondary: EndMoveSecondary::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricFaultManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricFaultManagementClient {}
windows_core::imp::define_interface!(
IFabricFaultManagementClient2,
IFabricFaultManagementClient2_Vtbl,
0xeaf60877_d094_4e22_b9c2_58fd61b269ec
);
impl core::ops::Deref for IFabricFaultManagementClient2 {
type Target = IFabricFaultManagementClient;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricFaultManagementClient2,
windows_core::IUnknown,
IFabricFaultManagementClient
);
impl IFabricFaultManagementClient2 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginMoveInstance<P2>(
&self,
description: *const super::FabricTypes::FABRIC_MOVE_INSTANCE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginMoveInstance)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndMoveInstance<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricMoveInstanceResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndMoveInstance)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricFaultManagementClient2_Vtbl {
pub base__: IFabricFaultManagementClient_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginMoveInstance: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_MOVE_INSTANCE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginMoveInstance: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndMoveInstance: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndMoveInstance: usize,
}
unsafe impl Send for IFabricFaultManagementClient2 {}
unsafe impl Sync for IFabricFaultManagementClient2 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricFaultManagementClient2_Impl: IFabricFaultManagementClient_Impl {
fn BeginMoveInstance(
&self,
description: *const super::FabricTypes::FABRIC_MOVE_INSTANCE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndMoveInstance(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricMoveInstanceResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricFaultManagementClient2_Vtbl {
pub const fn new<Identity: IFabricFaultManagementClient2_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginMoveInstance<
Identity: IFabricFaultManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_MOVE_INSTANCE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient2_Impl::BeginMoveInstance(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndMoveInstance<
Identity: IFabricFaultManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient2_Impl::EndMoveInstance(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricFaultManagementClient_Vtbl::new::<Identity, OFFSET>(),
BeginMoveInstance: BeginMoveInstance::<Identity, OFFSET>,
EndMoveInstance: EndMoveInstance::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricFaultManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricFaultManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricFaultManagementClient2 {}
windows_core::imp::define_interface!(
IFabricFaultManagementClient3,
IFabricFaultManagementClient3_Vtbl,
0x8fab077e_514c_429f_a62e_4da2c828e634
);
impl core::ops::Deref for IFabricFaultManagementClient3 {
type Target = IFabricFaultManagementClient2;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricFaultManagementClient3,
windows_core::IUnknown,
IFabricFaultManagementClient,
IFabricFaultManagementClient2
);
impl IFabricFaultManagementClient3 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginMoveAuxiliary<P2>(
&self,
description: *const super::FabricTypes::FABRIC_MOVE_AUXILIARY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginMoveAuxiliary)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndMoveAuxiliary<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricMoveAuxiliaryResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndMoveAuxiliary)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricFaultManagementClient3_Vtbl {
pub base__: IFabricFaultManagementClient2_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginMoveAuxiliary: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_MOVE_AUXILIARY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginMoveAuxiliary: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndMoveAuxiliary: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndMoveAuxiliary: usize,
}
unsafe impl Send for IFabricFaultManagementClient3 {}
unsafe impl Sync for IFabricFaultManagementClient3 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricFaultManagementClient3_Impl: IFabricFaultManagementClient2_Impl {
fn BeginMoveAuxiliary(
&self,
description: *const super::FabricTypes::FABRIC_MOVE_AUXILIARY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndMoveAuxiliary(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricMoveAuxiliaryResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricFaultManagementClient3_Vtbl {
pub const fn new<Identity: IFabricFaultManagementClient3_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginMoveAuxiliary<
Identity: IFabricFaultManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_MOVE_AUXILIARY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient3_Impl::BeginMoveAuxiliary(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndMoveAuxiliary<
Identity: IFabricFaultManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricFaultManagementClient3_Impl::EndMoveAuxiliary(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricFaultManagementClient2_Vtbl::new::<Identity, OFFSET>(),
BeginMoveAuxiliary: BeginMoveAuxiliary::<Identity, OFFSET>,
EndMoveAuxiliary: EndMoveAuxiliary::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricFaultManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricFaultManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricFaultManagementClient2 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricFaultManagementClient3 {}
windows_core::imp::define_interface!(
IFabricGatewayInformationResult,
IFabricGatewayInformationResult_Vtbl,
0xa57e7740_fa33_448e_9f35_8bf802a713aa
);
windows_core::imp::interface_hierarchy!(IFabricGatewayInformationResult, windows_core::IUnknown);
impl IFabricGatewayInformationResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_GatewayInformation(
&self,
) -> *const super::FabricTypes::FABRIC_GATEWAY_INFORMATION {
unsafe {
(windows_core::Interface::vtable(self).get_GatewayInformation)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGatewayInformationResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_GatewayInformation:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_GATEWAY_INFORMATION,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_GatewayInformation: usize,
}
unsafe impl Send for IFabricGatewayInformationResult {}
unsafe impl Sync for IFabricGatewayInformationResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGatewayInformationResult_Impl: windows_core::IUnknownImpl {
fn get_GatewayInformation(&self) -> *const super::FabricTypes::FABRIC_GATEWAY_INFORMATION;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGatewayInformationResult_Vtbl {
pub const fn new<Identity: IFabricGatewayInformationResult_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn get_GatewayInformation<
Identity: IFabricGatewayInformationResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_GATEWAY_INFORMATION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGatewayInformationResult_Impl::get_GatewayInformation(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_GatewayInformation: get_GatewayInformation::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGatewayInformationResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGatewayInformationResult {}
windows_core::imp::define_interface!(
IFabricGetApplicationListResult,
IFabricGetApplicationListResult_Vtbl,
0xf038c61e_7059_41b6_8dea_d304a2080f46
);
windows_core::imp::interface_hierarchy!(IFabricGetApplicationListResult, windows_core::IUnknown);
impl IFabricGetApplicationListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ApplicationList(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_ApplicationList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetApplicationListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ApplicationList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_APPLICATION_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ApplicationList : usize , }
unsafe impl Send for IFabricGetApplicationListResult {}
unsafe impl Sync for IFabricGetApplicationListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetApplicationListResult_Impl: windows_core::IUnknownImpl {
fn get_ApplicationList(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetApplicationListResult_Vtbl {
pub const fn new<Identity: IFabricGetApplicationListResult_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn get_ApplicationList<
Identity: IFabricGetApplicationListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_APPLICATION_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetApplicationListResult_Impl::get_ApplicationList(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ApplicationList: get_ApplicationList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetApplicationListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetApplicationListResult {}
windows_core::imp::define_interface!(
IFabricGetApplicationListResult2,
IFabricGetApplicationListResult2_Vtbl,
0x6637a860_26bc_4f1a_902f_f418fcfe1e51
);
impl core::ops::Deref for IFabricGetApplicationListResult2 {
type Target = IFabricGetApplicationListResult;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricGetApplicationListResult2,
windows_core::IUnknown,
IFabricGetApplicationListResult
);
impl IFabricGetApplicationListResult2 {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetApplicationListResult2_Vtbl {
pub base__: IFabricGetApplicationListResult_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_PagingStatus:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_PagingStatus: usize,
}
unsafe impl Send for IFabricGetApplicationListResult2 {}
unsafe impl Sync for IFabricGetApplicationListResult2 {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetApplicationListResult2_Impl: IFabricGetApplicationListResult_Impl {
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetApplicationListResult2_Vtbl {
pub const fn new<Identity: IFabricGetApplicationListResult2_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetApplicationListResult2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetApplicationListResult2_Impl::get_PagingStatus(this)
}
}
Self {
base__: IFabricGetApplicationListResult_Vtbl::new::<Identity, OFFSET>(),
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetApplicationListResult2 as windows_core::Interface>::IID
|| iid == &<IFabricGetApplicationListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetApplicationListResult2 {}
windows_core::imp::define_interface!(
IFabricGetApplicationLoadInformationResult,
IFabricGetApplicationLoadInformationResult_Vtbl,
0x38fd0512_7586_4bd5_9616_b7070cf025c0
);
windows_core::imp::interface_hierarchy!(
IFabricGetApplicationLoadInformationResult,
windows_core::IUnknown
);
impl IFabricGetApplicationLoadInformationResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ApplicationLoadInformation(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION {
unsafe {
(windows_core::Interface::vtable(self).get_ApplicationLoadInformation)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetApplicationLoadInformationResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_ApplicationLoadInformation:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_ApplicationLoadInformation: usize,
}
unsafe impl Send for IFabricGetApplicationLoadInformationResult {}
unsafe impl Sync for IFabricGetApplicationLoadInformationResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetApplicationLoadInformationResult_Impl: windows_core::IUnknownImpl {
fn get_ApplicationLoadInformation(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetApplicationLoadInformationResult_Vtbl {
pub const fn new<
Identity: IFabricGetApplicationLoadInformationResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_ApplicationLoadInformation<
Identity: IFabricGetApplicationLoadInformationResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetApplicationLoadInformationResult_Impl::get_ApplicationLoadInformation(
this,
)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ApplicationLoadInformation: get_ApplicationLoadInformation::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetApplicationLoadInformationResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetApplicationLoadInformationResult {}
windows_core::imp::define_interface!(
IFabricGetApplicationNameResult,
IFabricGetApplicationNameResult_Vtbl,
0x258dbcc8_ac9a_47ff_838b_57ff506c73b1
);
windows_core::imp::interface_hierarchy!(IFabricGetApplicationNameResult, windows_core::IUnknown);
impl IFabricGetApplicationNameResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ApplicationName(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_RESULT {
unsafe {
(windows_core::Interface::vtable(self).get_ApplicationName)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetApplicationNameResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ApplicationName : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_RESULT , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ApplicationName : usize , }
unsafe impl Send for IFabricGetApplicationNameResult {}
unsafe impl Sync for IFabricGetApplicationNameResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetApplicationNameResult_Impl: windows_core::IUnknownImpl {
fn get_ApplicationName(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_RESULT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetApplicationNameResult_Vtbl {
pub const fn new<Identity: IFabricGetApplicationNameResult_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn get_ApplicationName<
Identity: IFabricGetApplicationNameResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_RESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetApplicationNameResult_Impl::get_ApplicationName(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ApplicationName: get_ApplicationName::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetApplicationNameResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetApplicationNameResult {}
windows_core::imp::define_interface!(
IFabricGetApplicationNetworkListResult,
IFabricGetApplicationNetworkListResult_Vtbl,
0x4f9d0390_aa08_4dee_ba49_62891eb47c37
);
windows_core::imp::interface_hierarchy!(
IFabricGetApplicationNetworkListResult,
windows_core::IUnknown
);
impl IFabricGetApplicationNetworkListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ApplicationNetworkList(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_ApplicationNetworkList)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetApplicationNetworkListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ApplicationNetworkList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ApplicationNetworkList : usize , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_PagingStatus : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PAGING_STATUS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_PagingStatus : usize , }
unsafe impl Send for IFabricGetApplicationNetworkListResult {}
unsafe impl Sync for IFabricGetApplicationNetworkListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetApplicationNetworkListResult_Impl: windows_core::IUnknownImpl {
fn get_ApplicationNetworkList(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetApplicationNetworkListResult_Vtbl {
pub const fn new<Identity: IFabricGetApplicationNetworkListResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_ApplicationNetworkList<
Identity: IFabricGetApplicationNetworkListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetApplicationNetworkListResult_Impl::get_ApplicationNetworkList(this)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetApplicationNetworkListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetApplicationNetworkListResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ApplicationNetworkList: get_ApplicationNetworkList::<Identity, OFFSET>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetApplicationNetworkListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetApplicationNetworkListResult {}
windows_core::imp::define_interface!(
IFabricGetApplicationTypeListResult,
IFabricGetApplicationTypeListResult_Vtbl,
0x944f7a70_224e_4191_8dd1_bba46dc88dd2
);
windows_core::imp::interface_hierarchy!(
IFabricGetApplicationTypeListResult,
windows_core::IUnknown
);
impl IFabricGetApplicationTypeListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ApplicationTypeList(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_ApplicationTypeList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetApplicationTypeListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ApplicationTypeList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ApplicationTypeList : usize , }
unsafe impl Send for IFabricGetApplicationTypeListResult {}
unsafe impl Sync for IFabricGetApplicationTypeListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetApplicationTypeListResult_Impl: windows_core::IUnknownImpl {
fn get_ApplicationTypeList(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetApplicationTypeListResult_Vtbl {
pub const fn new<Identity: IFabricGetApplicationTypeListResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_ApplicationTypeList<
Identity: IFabricGetApplicationTypeListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetApplicationTypeListResult_Impl::get_ApplicationTypeList(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ApplicationTypeList: get_ApplicationTypeList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetApplicationTypeListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetApplicationTypeListResult {}
windows_core::imp::define_interface!(
IFabricGetApplicationTypePagedListResult,
IFabricGetApplicationTypePagedListResult_Vtbl,
0x5d8dde9c_05e8_428d_b494_43873d7c2db8
);
windows_core::imp::interface_hierarchy!(
IFabricGetApplicationTypePagedListResult,
windows_core::IUnknown
);
impl IFabricGetApplicationTypePagedListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ApplicationTypePagedList(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_ApplicationTypePagedList)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetApplicationTypePagedListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ApplicationTypePagedList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ApplicationTypePagedList : usize , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_PagingStatus : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PAGING_STATUS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_PagingStatus : usize , }
unsafe impl Send for IFabricGetApplicationTypePagedListResult {}
unsafe impl Sync for IFabricGetApplicationTypePagedListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetApplicationTypePagedListResult_Impl: windows_core::IUnknownImpl {
fn get_ApplicationTypePagedList(
&self,
) -> *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetApplicationTypePagedListResult_Vtbl {
pub const fn new<
Identity: IFabricGetApplicationTypePagedListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_ApplicationTypePagedList<
Identity: IFabricGetApplicationTypePagedListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetApplicationTypePagedListResult_Impl::get_ApplicationTypePagedList(this)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetApplicationTypePagedListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetApplicationTypePagedListResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ApplicationTypePagedList: get_ApplicationTypePagedList::<Identity, OFFSET>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetApplicationTypePagedListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetApplicationTypePagedListResult {}
windows_core::imp::define_interface!(
IFabricGetBlockListResult,
IFabricGetBlockListResult_Vtbl,
0x9d91d558_7514_4555_3334_ecc15927e9c3
);
windows_core::imp::interface_hierarchy!(IFabricGetBlockListResult, windows_core::IUnknown);
impl IFabricGetBlockListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_GetBlockList(
&self,
) -> *const super::FabricTypes::FABRIC_BLOCK_LIST_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_GetBlockList)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetBlockListResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_GetBlockList:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_BLOCK_LIST_QUERY_RESULT_LIST,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_GetBlockList: usize,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_PagingStatus:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_PagingStatus: usize,
}
unsafe impl Send for IFabricGetBlockListResult {}
unsafe impl Sync for IFabricGetBlockListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetBlockListResult_Impl: windows_core::IUnknownImpl {
fn get_GetBlockList(&self) -> *const super::FabricTypes::FABRIC_BLOCK_LIST_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetBlockListResult_Vtbl {
pub const fn new<Identity: IFabricGetBlockListResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_GetBlockList<
Identity: IFabricGetBlockListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_BLOCK_LIST_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetBlockListResult_Impl::get_GetBlockList(this)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetBlockListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetBlockListResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_GetBlockList: get_GetBlockList::<Identity, OFFSET>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetBlockListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetBlockListResult {}
windows_core::imp::define_interface!(
IFabricGetClusterHealthChunkResult,
IFabricGetClusterHealthChunkResult_Vtbl,
0x7fefcf06_c840_4d8a_9cc7_36f080e0e121
);
windows_core::imp::interface_hierarchy!(IFabricGetClusterHealthChunkResult, windows_core::IUnknown);
impl IFabricGetClusterHealthChunkResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ClusterHealthChunk(
&self,
) -> *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK {
unsafe {
(windows_core::Interface::vtable(self).get_ClusterHealthChunk)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetClusterHealthChunkResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_ClusterHealthChunk:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_ClusterHealthChunk: usize,
}
unsafe impl Send for IFabricGetClusterHealthChunkResult {}
unsafe impl Sync for IFabricGetClusterHealthChunkResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetClusterHealthChunkResult_Impl: windows_core::IUnknownImpl {
fn get_ClusterHealthChunk(&self) -> *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetClusterHealthChunkResult_Vtbl {
pub const fn new<Identity: IFabricGetClusterHealthChunkResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_ClusterHealthChunk<
Identity: IFabricGetClusterHealthChunkResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetClusterHealthChunkResult_Impl::get_ClusterHealthChunk(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ClusterHealthChunk: get_ClusterHealthChunk::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetClusterHealthChunkResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetClusterHealthChunkResult {}
windows_core::imp::define_interface!(
IFabricGetClusterLoadInformationResult,
IFabricGetClusterLoadInformationResult_Vtbl,
0x7cc3eb08_0e69_4e52_81fc_0190ab997dbf
);
windows_core::imp::interface_hierarchy!(
IFabricGetClusterLoadInformationResult,
windows_core::IUnknown
);
impl IFabricGetClusterLoadInformationResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_ClusterLoadInformation(
&self,
) -> *const super::FabricTypes::FABRIC_CLUSTER_LOAD_INFORMATION {
unsafe {
(windows_core::Interface::vtable(self).get_ClusterLoadInformation)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetClusterLoadInformationResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub get_ClusterLoadInformation:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_CLUSTER_LOAD_INFORMATION,
#[cfg(not(all(feature = "ServiceFabric_FabricTypes", feature = "Win32")))]
get_ClusterLoadInformation: usize,
}
unsafe impl Send for IFabricGetClusterLoadInformationResult {}
unsafe impl Sync for IFabricGetClusterLoadInformationResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricGetClusterLoadInformationResult_Impl: windows_core::IUnknownImpl {
fn get_ClusterLoadInformation(
&self,
) -> *const super::FabricTypes::FABRIC_CLUSTER_LOAD_INFORMATION;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricGetClusterLoadInformationResult_Vtbl {
pub const fn new<Identity: IFabricGetClusterLoadInformationResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_ClusterLoadInformation<
Identity: IFabricGetClusterLoadInformationResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CLUSTER_LOAD_INFORMATION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetClusterLoadInformationResult_Impl::get_ClusterLoadInformation(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ClusterLoadInformation: get_ClusterLoadInformation::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetClusterLoadInformationResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricGetClusterLoadInformationResult {}
windows_core::imp::define_interface!(
IFabricGetDeployedApplicationListResult,
IFabricGetDeployedApplicationListResult_Vtbl,
0x5722b789_3936_4c33_9f7a_342967457612
);
windows_core::imp::interface_hierarchy!(
IFabricGetDeployedApplicationListResult,
windows_core::IUnknown
);
impl IFabricGetDeployedApplicationListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_DeployedApplicationList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_DeployedApplicationList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetDeployedApplicationListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_DeployedApplicationList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_DeployedApplicationList : usize , }
unsafe impl Send for IFabricGetDeployedApplicationListResult {}
unsafe impl Sync for IFabricGetDeployedApplicationListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetDeployedApplicationListResult_Impl: windows_core::IUnknownImpl {
fn get_DeployedApplicationList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetDeployedApplicationListResult_Vtbl {
pub const fn new<
Identity: IFabricGetDeployedApplicationListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_DeployedApplicationList<
Identity: IFabricGetDeployedApplicationListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedApplicationListResult_Impl::get_DeployedApplicationList(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_DeployedApplicationList: get_DeployedApplicationList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetDeployedApplicationListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetDeployedApplicationListResult {}
windows_core::imp::define_interface!(
IFabricGetDeployedApplicationPagedListResult,
IFabricGetDeployedApplicationPagedListResult_Vtbl,
0xebd76f6f_508e_43ea_9ca2_a98ea2c0e846
);
windows_core::imp::interface_hierarchy!(
IFabricGetDeployedApplicationPagedListResult,
windows_core::IUnknown
);
impl IFabricGetDeployedApplicationPagedListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_DeployedApplicationPagedList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_DeployedApplicationPagedList)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetDeployedApplicationPagedListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_DeployedApplicationPagedList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_DeployedApplicationPagedList : usize , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_PagingStatus : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PAGING_STATUS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_PagingStatus : usize , }
unsafe impl Send for IFabricGetDeployedApplicationPagedListResult {}
unsafe impl Sync for IFabricGetDeployedApplicationPagedListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetDeployedApplicationPagedListResult_Impl: windows_core::IUnknownImpl {
fn get_DeployedApplicationPagedList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetDeployedApplicationPagedListResult_Vtbl {
pub const fn new<
Identity: IFabricGetDeployedApplicationPagedListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_DeployedApplicationPagedList<
Identity: IFabricGetDeployedApplicationPagedListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedApplicationPagedListResult_Impl::get_DeployedApplicationPagedList(
this,
)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetDeployedApplicationPagedListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedApplicationPagedListResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_DeployedApplicationPagedList: get_DeployedApplicationPagedList::<Identity, OFFSET>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetDeployedApplicationPagedListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetDeployedApplicationPagedListResult {}
windows_core::imp::define_interface!(
IFabricGetDeployedCodePackageListResult,
IFabricGetDeployedCodePackageListResult_Vtbl,
0x3f390652_c0dc_4919_8a7f_8ae1e827de0c
);
windows_core::imp::interface_hierarchy!(
IFabricGetDeployedCodePackageListResult,
windows_core::IUnknown
);
impl IFabricGetDeployedCodePackageListResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_DeployedCodePackageList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_DeployedCodePackageList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetDeployedCodePackageListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (all (feature = "ServiceFabric_FabricTypes" , feature = "Win32"))] pub get_DeployedCodePackageList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST , # [cfg (not (all (feature = "ServiceFabric_FabricTypes" , feature = "Win32")))] get_DeployedCodePackageList : usize , }
unsafe impl Send for IFabricGetDeployedCodePackageListResult {}
unsafe impl Sync for IFabricGetDeployedCodePackageListResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricGetDeployedCodePackageListResult_Impl: windows_core::IUnknownImpl {
fn get_DeployedCodePackageList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricGetDeployedCodePackageListResult_Vtbl {
pub const fn new<
Identity: IFabricGetDeployedCodePackageListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_DeployedCodePackageList<
Identity: IFabricGetDeployedCodePackageListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedCodePackageListResult_Impl::get_DeployedCodePackageList(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_DeployedCodePackageList: get_DeployedCodePackageList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetDeployedCodePackageListResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricGetDeployedCodePackageListResult {}
windows_core::imp::define_interface!(
IFabricGetDeployedNetworkCodePackageListResult,
IFabricGetDeployedNetworkCodePackageListResult_Vtbl,
0x6586d264_a96e_4f46_9388_189de5d61d6d
);
windows_core::imp::interface_hierarchy!(
IFabricGetDeployedNetworkCodePackageListResult,
windows_core::IUnknown
);
impl IFabricGetDeployedNetworkCodePackageListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_DeployedNetworkCodePackageList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_DeployedNetworkCodePackageList)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetDeployedNetworkCodePackageListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_DeployedNetworkCodePackageList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_DeployedNetworkCodePackageList : usize , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_PagingStatus : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PAGING_STATUS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_PagingStatus : usize , }
unsafe impl Send for IFabricGetDeployedNetworkCodePackageListResult {}
unsafe impl Sync for IFabricGetDeployedNetworkCodePackageListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetDeployedNetworkCodePackageListResult_Impl: windows_core::IUnknownImpl {
fn get_DeployedNetworkCodePackageList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetDeployedNetworkCodePackageListResult_Vtbl {
pub const fn new<
Identity: IFabricGetDeployedNetworkCodePackageListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_DeployedNetworkCodePackageList<
Identity: IFabricGetDeployedNetworkCodePackageListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_RESULT_LIST
{
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedNetworkCodePackageListResult_Impl::get_DeployedNetworkCodePackageList (this ,)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetDeployedNetworkCodePackageListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedNetworkCodePackageListResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_DeployedNetworkCodePackageList: get_DeployedNetworkCodePackageList::<
Identity,
OFFSET,
>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetDeployedNetworkCodePackageListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetDeployedNetworkCodePackageListResult {}
windows_core::imp::define_interface!(
IFabricGetDeployedNetworkListResult,
IFabricGetDeployedNetworkListResult_Vtbl,
0x347f5d8c_1abd_48e1_a7d1_9083556dafd3
);
windows_core::imp::interface_hierarchy!(
IFabricGetDeployedNetworkListResult,
windows_core::IUnknown
);
impl IFabricGetDeployedNetworkListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_DeployedNetworkList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_DeployedNetworkList)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetDeployedNetworkListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_DeployedNetworkList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_DeployedNetworkList : usize , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_PagingStatus : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PAGING_STATUS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_PagingStatus : usize , }
unsafe impl Send for IFabricGetDeployedNetworkListResult {}
unsafe impl Sync for IFabricGetDeployedNetworkListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetDeployedNetworkListResult_Impl: windows_core::IUnknownImpl {
fn get_DeployedNetworkList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetDeployedNetworkListResult_Vtbl {
pub const fn new<Identity: IFabricGetDeployedNetworkListResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_DeployedNetworkList<
Identity: IFabricGetDeployedNetworkListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedNetworkListResult_Impl::get_DeployedNetworkList(this)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetDeployedNetworkListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedNetworkListResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_DeployedNetworkList: get_DeployedNetworkList::<Identity, OFFSET>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetDeployedNetworkListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetDeployedNetworkListResult {}
windows_core::imp::define_interface!(
IFabricGetDeployedReplicaListResult,
IFabricGetDeployedReplicaListResult_Vtbl,
0x29e064bf_5d78_49e5_baa6_acfc24a4a8b5
);
windows_core::imp::interface_hierarchy!(
IFabricGetDeployedReplicaListResult,
windows_core::IUnknown
);
impl IFabricGetDeployedReplicaListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_DeployedReplicaList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_DeployedReplicaList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetDeployedReplicaListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_DeployedReplicaList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_DeployedReplicaList : usize , }
unsafe impl Send for IFabricGetDeployedReplicaListResult {}
unsafe impl Sync for IFabricGetDeployedReplicaListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetDeployedReplicaListResult_Impl: windows_core::IUnknownImpl {
fn get_DeployedReplicaList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetDeployedReplicaListResult_Vtbl {
pub const fn new<Identity: IFabricGetDeployedReplicaListResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_DeployedReplicaList<
Identity: IFabricGetDeployedReplicaListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedReplicaListResult_Impl::get_DeployedReplicaList(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_DeployedReplicaList: get_DeployedReplicaList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetDeployedReplicaListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetDeployedReplicaListResult {}
windows_core::imp::define_interface!(
IFabricGetDeployedServicePackageListResult,
IFabricGetDeployedServicePackageListResult_Vtbl,
0x65851388_0421_4107_977b_39f4e15440d4
);
windows_core::imp::interface_hierarchy!(
IFabricGetDeployedServicePackageListResult,
windows_core::IUnknown
);
impl IFabricGetDeployedServicePackageListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_DeployedServicePackageList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_DeployedServicePackageList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetDeployedServicePackageListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_DeployedServicePackageList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_DeployedServicePackageList : usize , }
unsafe impl Send for IFabricGetDeployedServicePackageListResult {}
unsafe impl Sync for IFabricGetDeployedServicePackageListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetDeployedServicePackageListResult_Impl: windows_core::IUnknownImpl {
fn get_DeployedServicePackageList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetDeployedServicePackageListResult_Vtbl {
pub const fn new<
Identity: IFabricGetDeployedServicePackageListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_DeployedServicePackageList<
Identity: IFabricGetDeployedServicePackageListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedServicePackageListResult_Impl::get_DeployedServicePackageList(
this,
)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_DeployedServicePackageList: get_DeployedServicePackageList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetDeployedServicePackageListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetDeployedServicePackageListResult {}
windows_core::imp::define_interface!(
IFabricGetDeployedServicePackagePagedListResult,
IFabricGetDeployedServicePackagePagedListResult_Vtbl,
0xbac74277_eaab_4a9d_8142_b6ad776247dc
);
windows_core::imp::interface_hierarchy!(
IFabricGetDeployedServicePackagePagedListResult,
windows_core::IUnknown
);
impl IFabricGetDeployedServicePackagePagedListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_DeployedServicePackageList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_DeployedServicePackageList)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetDeployedServicePackagePagedListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_DeployedServicePackageList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_DeployedServicePackageList : usize , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_PagingStatus : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PAGING_STATUS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_PagingStatus : usize , }
unsafe impl Send for IFabricGetDeployedServicePackagePagedListResult {}
unsafe impl Sync for IFabricGetDeployedServicePackagePagedListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetDeployedServicePackagePagedListResult_Impl: windows_core::IUnknownImpl {
fn get_DeployedServicePackageList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetDeployedServicePackagePagedListResult_Vtbl {
pub const fn new<
Identity: IFabricGetDeployedServicePackagePagedListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_DeployedServicePackageList<
Identity: IFabricGetDeployedServicePackagePagedListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedServicePackagePagedListResult_Impl::get_DeployedServicePackageList(
this,
)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetDeployedServicePackagePagedListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedServicePackagePagedListResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_DeployedServicePackageList: get_DeployedServicePackageList::<Identity, OFFSET>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetDeployedServicePackagePagedListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetDeployedServicePackagePagedListResult {}
windows_core::imp::define_interface!(
IFabricGetDeployedServiceReplicaDetailResult,
IFabricGetDeployedServiceReplicaDetailResult_Vtbl,
0x6d9d355e_89cf_4928_b758_b11ca4664fbe
);
windows_core::imp::interface_hierarchy!(
IFabricGetDeployedServiceReplicaDetailResult,
windows_core::IUnknown
);
impl IFabricGetDeployedServiceReplicaDetailResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ReplicaDetail(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM {
unsafe {
(windows_core::Interface::vtable(self).get_ReplicaDetail)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetDeployedServiceReplicaDetailResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ReplicaDetail : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ReplicaDetail : usize , }
unsafe impl Send for IFabricGetDeployedServiceReplicaDetailResult {}
unsafe impl Sync for IFabricGetDeployedServiceReplicaDetailResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetDeployedServiceReplicaDetailResult_Impl: windows_core::IUnknownImpl {
fn get_ReplicaDetail(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetDeployedServiceReplicaDetailResult_Vtbl {
pub const fn new<
Identity: IFabricGetDeployedServiceReplicaDetailResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_ReplicaDetail<
Identity: IFabricGetDeployedServiceReplicaDetailResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_RESULT_ITEM
{
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedServiceReplicaDetailResult_Impl::get_ReplicaDetail(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ReplicaDetail: get_ReplicaDetail::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetDeployedServiceReplicaDetailResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetDeployedServiceReplicaDetailResult {}
windows_core::imp::define_interface!(
IFabricGetDeployedServiceTypeListResult,
IFabricGetDeployedServiceTypeListResult_Vtbl,
0xdba68c7a_3f77_49bb_b611_ff94df062b8d
);
windows_core::imp::interface_hierarchy!(
IFabricGetDeployedServiceTypeListResult,
windows_core::IUnknown
);
impl IFabricGetDeployedServiceTypeListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_DeployedServiceTypeList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_DeployedServiceTypeList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetDeployedServiceTypeListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_DeployedServiceTypeList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_DeployedServiceTypeList : usize , }
unsafe impl Send for IFabricGetDeployedServiceTypeListResult {}
unsafe impl Sync for IFabricGetDeployedServiceTypeListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetDeployedServiceTypeListResult_Impl: windows_core::IUnknownImpl {
fn get_DeployedServiceTypeList(
&self,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetDeployedServiceTypeListResult_Vtbl {
pub const fn new<
Identity: IFabricGetDeployedServiceTypeListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_DeployedServiceTypeList<
Identity: IFabricGetDeployedServiceTypeListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetDeployedServiceTypeListResult_Impl::get_DeployedServiceTypeList(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_DeployedServiceTypeList: get_DeployedServiceTypeList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetDeployedServiceTypeListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetDeployedServiceTypeListResult {}
windows_core::imp::define_interface!(
IFabricGetGetConfigurationOverridesListResult,
IFabricGetGetConfigurationOverridesListResult_Vtbl,
0x3b556f2a_2a7f_4b04_bdf7_9ffb4f3772ca
);
windows_core::imp::interface_hierarchy!(
IFabricGetGetConfigurationOverridesListResult,
windows_core::IUnknown
);
impl IFabricGetGetConfigurationOverridesListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ConfigurationOverrideList(
&self,
) -> *const super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_OVERRIDE_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_ConfigurationOverrideList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetGetConfigurationOverridesListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ConfigurationOverrideList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_OVERRIDE_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ConfigurationOverrideList : usize , }
unsafe impl Send for IFabricGetGetConfigurationOverridesListResult {}
unsafe impl Sync for IFabricGetGetConfigurationOverridesListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetGetConfigurationOverridesListResult_Impl: windows_core::IUnknownImpl {
fn get_ConfigurationOverrideList(
&self,
) -> *const super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_OVERRIDE_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetGetConfigurationOverridesListResult_Vtbl {
pub const fn new<
Identity: IFabricGetGetConfigurationOverridesListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_ConfigurationOverrideList<
Identity: IFabricGetGetConfigurationOverridesListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_CONFIGURATION_PARAMETER_OVERRIDE_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetGetConfigurationOverridesListResult_Impl::get_ConfigurationOverrideList(
this,
)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ConfigurationOverrideList: get_ConfigurationOverrideList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetGetConfigurationOverridesListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetGetConfigurationOverridesListResult {}
windows_core::imp::define_interface!(
IFabricGetGetLoadedPartitionInfoListResult,
IFabricGetGetLoadedPartitionInfoListResult_Vtbl,
0x9d91d558_7514_4ebb_9574_ecc15927e9c3
);
windows_core::imp::interface_hierarchy!(
IFabricGetGetLoadedPartitionInfoListResult,
windows_core::IUnknown
);
impl IFabricGetGetLoadedPartitionInfoListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_GetLoadedPartitionInfoList(
&self,
) -> *const super::FabricTypes::FABRIC_LOADED_PARTITION_INFORMATION_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_GetLoadedPartitionInfoList)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetGetLoadedPartitionInfoListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_GetLoadedPartitionInfoList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_LOADED_PARTITION_INFORMATION_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_GetLoadedPartitionInfoList : usize , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_PagingStatus : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PAGING_STATUS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_PagingStatus : usize , }
unsafe impl Send for IFabricGetGetLoadedPartitionInfoListResult {}
unsafe impl Sync for IFabricGetGetLoadedPartitionInfoListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetGetLoadedPartitionInfoListResult_Impl: windows_core::IUnknownImpl {
fn get_GetLoadedPartitionInfoList(
&self,
) -> *const super::FabricTypes::FABRIC_LOADED_PARTITION_INFORMATION_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetGetLoadedPartitionInfoListResult_Vtbl {
pub const fn new<
Identity: IFabricGetGetLoadedPartitionInfoListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_GetLoadedPartitionInfoList<
Identity: IFabricGetGetLoadedPartitionInfoListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_LOADED_PARTITION_INFORMATION_QUERY_RESULT_LIST
{
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetGetLoadedPartitionInfoListResult_Impl::get_GetLoadedPartitionInfoList(
this,
)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetGetLoadedPartitionInfoListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetGetLoadedPartitionInfoListResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_GetLoadedPartitionInfoList: get_GetLoadedPartitionInfoList::<Identity, OFFSET>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetGetLoadedPartitionInfoListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetGetLoadedPartitionInfoListResult {}
windows_core::imp::define_interface!(
IFabricGetNetworkApplicationListResult,
IFabricGetNetworkApplicationListResult_Vtbl,
0xad1f51ff_e244_498e_9f72_609b01124b84
);
windows_core::imp::interface_hierarchy!(
IFabricGetNetworkApplicationListResult,
windows_core::IUnknown
);
impl IFabricGetNetworkApplicationListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_NetworkApplicationList(
&self,
) -> *const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_NetworkApplicationList)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetNetworkApplicationListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_NetworkApplicationList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_NetworkApplicationList : usize , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_PagingStatus : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PAGING_STATUS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_PagingStatus : usize , }
unsafe impl Send for IFabricGetNetworkApplicationListResult {}
unsafe impl Sync for IFabricGetNetworkApplicationListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetNetworkApplicationListResult_Impl: windows_core::IUnknownImpl {
fn get_NetworkApplicationList(
&self,
) -> *const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetNetworkApplicationListResult_Vtbl {
pub const fn new<Identity: IFabricGetNetworkApplicationListResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_NetworkApplicationList<
Identity: IFabricGetNetworkApplicationListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetNetworkApplicationListResult_Impl::get_NetworkApplicationList(this)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetNetworkApplicationListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetNetworkApplicationListResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_NetworkApplicationList: get_NetworkApplicationList::<Identity, OFFSET>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetNetworkApplicationListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetNetworkApplicationListResult {}
windows_core::imp::define_interface!(
IFabricGetNetworkListResult,
IFabricGetNetworkListResult_Vtbl,
0xbd777a0f_2020_40bb_8f23_8756649cce47
);
windows_core::imp::interface_hierarchy!(IFabricGetNetworkListResult, windows_core::IUnknown);
impl IFabricGetNetworkListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_NetworkList(
&self,
) -> *const super::FabricTypes::FABRIC_NETWORK_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_NetworkList)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetNetworkListResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_NetworkList:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_NETWORK_QUERY_RESULT_LIST,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_NetworkList: usize,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_PagingStatus:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_PagingStatus: usize,
}
unsafe impl Send for IFabricGetNetworkListResult {}
unsafe impl Sync for IFabricGetNetworkListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetNetworkListResult_Impl: windows_core::IUnknownImpl {
fn get_NetworkList(&self) -> *const super::FabricTypes::FABRIC_NETWORK_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetNetworkListResult_Vtbl {
pub const fn new<Identity: IFabricGetNetworkListResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_NetworkList<
Identity: IFabricGetNetworkListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_NETWORK_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetNetworkListResult_Impl::get_NetworkList(this)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetNetworkListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetNetworkListResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_NetworkList: get_NetworkList::<Identity, OFFSET>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetNetworkListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetNetworkListResult {}
windows_core::imp::define_interface!(
IFabricGetNetworkNodeListResult,
IFabricGetNetworkNodeListResult_Vtbl,
0x3ba780e9_58eb_478d_bc89_42c89e19d083
);
windows_core::imp::interface_hierarchy!(IFabricGetNetworkNodeListResult, windows_core::IUnknown);
impl IFabricGetNetworkNodeListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_NetworkNodeList(
&self,
) -> *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_NetworkNodeList)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetNetworkNodeListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_NetworkNodeList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_NetworkNodeList : usize , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_PagingStatus : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PAGING_STATUS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_PagingStatus : usize , }
unsafe impl Send for IFabricGetNetworkNodeListResult {}
unsafe impl Sync for IFabricGetNetworkNodeListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetNetworkNodeListResult_Impl: windows_core::IUnknownImpl {
fn get_NetworkNodeList(
&self,
) -> *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetNetworkNodeListResult_Vtbl {
pub const fn new<Identity: IFabricGetNetworkNodeListResult_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn get_NetworkNodeList<
Identity: IFabricGetNetworkNodeListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetNetworkNodeListResult_Impl::get_NetworkNodeList(this)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetNetworkNodeListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetNetworkNodeListResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_NetworkNodeList: get_NetworkNodeList::<Identity, OFFSET>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetNetworkNodeListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetNetworkNodeListResult {}
windows_core::imp::define_interface!(
IFabricGetNodeListResult,
IFabricGetNodeListResult_Vtbl,
0x7cc3eb08_0e69_4e52_81fc_0190ab997dbe
);
windows_core::imp::interface_hierarchy!(IFabricGetNodeListResult, windows_core::IUnknown);
impl IFabricGetNodeListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_NodeList(&self) -> *const super::FabricTypes::FABRIC_NODE_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_NodeList)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetNodeListResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_NodeList:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_NODE_QUERY_RESULT_LIST,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_NodeList: usize,
}
unsafe impl Send for IFabricGetNodeListResult {}
unsafe impl Sync for IFabricGetNodeListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetNodeListResult_Impl: windows_core::IUnknownImpl {
fn get_NodeList(&self) -> *const super::FabricTypes::FABRIC_NODE_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetNodeListResult_Vtbl {
pub const fn new<Identity: IFabricGetNodeListResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_NodeList<
Identity: IFabricGetNodeListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_NODE_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetNodeListResult_Impl::get_NodeList(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_NodeList: get_NodeList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetNodeListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetNodeListResult {}
windows_core::imp::define_interface!(
IFabricGetNodeListResult2,
IFabricGetNodeListResult2_Vtbl,
0x4a0f2da7_f851_44e5_8e12_aa521076097a
);
impl core::ops::Deref for IFabricGetNodeListResult2 {
type Target = IFabricGetNodeListResult;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricGetNodeListResult2,
windows_core::IUnknown,
IFabricGetNodeListResult
);
impl IFabricGetNodeListResult2 {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetNodeListResult2_Vtbl {
pub base__: IFabricGetNodeListResult_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_PagingStatus:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_PagingStatus: usize,
}
unsafe impl Send for IFabricGetNodeListResult2 {}
unsafe impl Sync for IFabricGetNodeListResult2 {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetNodeListResult2_Impl: IFabricGetNodeListResult_Impl {
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetNodeListResult2_Vtbl {
pub const fn new<Identity: IFabricGetNodeListResult2_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetNodeListResult2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetNodeListResult2_Impl::get_PagingStatus(this)
}
}
Self {
base__: IFabricGetNodeListResult_Vtbl::new::<Identity, OFFSET>(),
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetNodeListResult2 as windows_core::Interface>::IID
|| iid == &<IFabricGetNodeListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetNodeListResult2 {}
windows_core::imp::define_interface!(
IFabricGetNodeLoadInformationResult,
IFabricGetNodeLoadInformationResult_Vtbl,
0x4332eb3a_aed6_86fe_c2fa_653123dea09b
);
windows_core::imp::interface_hierarchy!(
IFabricGetNodeLoadInformationResult,
windows_core::IUnknown
);
impl IFabricGetNodeLoadInformationResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_NodeLoadInformation(
&self,
) -> *const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION {
unsafe {
(windows_core::Interface::vtable(self).get_NodeLoadInformation)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetNodeLoadInformationResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_NodeLoadInformation:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_NodeLoadInformation: usize,
}
unsafe impl Send for IFabricGetNodeLoadInformationResult {}
unsafe impl Sync for IFabricGetNodeLoadInformationResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetNodeLoadInformationResult_Impl: windows_core::IUnknownImpl {
fn get_NodeLoadInformation(&self) -> *const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetNodeLoadInformationResult_Vtbl {
pub const fn new<Identity: IFabricGetNodeLoadInformationResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_NodeLoadInformation<
Identity: IFabricGetNodeLoadInformationResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetNodeLoadInformationResult_Impl::get_NodeLoadInformation(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_NodeLoadInformation: get_NodeLoadInformation::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetNodeLoadInformationResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetNodeLoadInformationResult {}
windows_core::imp::define_interface!(
IFabricGetPartitionListResult,
IFabricGetPartitionListResult_Vtbl,
0xafc1266c_967b_4769_9f8a_b249c5887ee6
);
windows_core::imp::interface_hierarchy!(IFabricGetPartitionListResult, windows_core::IUnknown);
impl IFabricGetPartitionListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PartitionList(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_PartitionList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetPartitionListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_PartitionList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_PartitionList : usize , }
unsafe impl Send for IFabricGetPartitionListResult {}
unsafe impl Sync for IFabricGetPartitionListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetPartitionListResult_Impl: windows_core::IUnknownImpl {
fn get_PartitionList(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetPartitionListResult_Vtbl {
pub const fn new<Identity: IFabricGetPartitionListResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_PartitionList<
Identity: IFabricGetPartitionListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetPartitionListResult_Impl::get_PartitionList(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_PartitionList: get_PartitionList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetPartitionListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetPartitionListResult {}
windows_core::imp::define_interface!(
IFabricGetPartitionListResult2,
IFabricGetPartitionListResult2_Vtbl,
0xb131b99a_d251_47b2_9d08_24ddd6793206
);
impl core::ops::Deref for IFabricGetPartitionListResult2 {
type Target = IFabricGetPartitionListResult;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricGetPartitionListResult2,
windows_core::IUnknown,
IFabricGetPartitionListResult
);
impl IFabricGetPartitionListResult2 {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetPartitionListResult2_Vtbl {
pub base__: IFabricGetPartitionListResult_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_PagingStatus:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_PagingStatus: usize,
}
unsafe impl Send for IFabricGetPartitionListResult2 {}
unsafe impl Sync for IFabricGetPartitionListResult2 {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetPartitionListResult2_Impl: IFabricGetPartitionListResult_Impl {
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetPartitionListResult2_Vtbl {
pub const fn new<Identity: IFabricGetPartitionListResult2_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetPartitionListResult2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetPartitionListResult2_Impl::get_PagingStatus(this)
}
}
Self {
base__: IFabricGetPartitionListResult_Vtbl::new::<Identity, OFFSET>(),
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetPartitionListResult2 as windows_core::Interface>::IID
|| iid == &<IFabricGetPartitionListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetPartitionListResult2 {}
windows_core::imp::define_interface!(
IFabricGetPartitionLoadInformationResult,
IFabricGetPartitionLoadInformationResult_Vtbl,
0x46f1a40c_a4f3_409e_a7ec_6fd115f7acc7
);
windows_core::imp::interface_hierarchy!(
IFabricGetPartitionLoadInformationResult,
windows_core::IUnknown
);
impl IFabricGetPartitionLoadInformationResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_PartitionLoadInformation(
&self,
) -> *const super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION {
unsafe {
(windows_core::Interface::vtable(self).get_PartitionLoadInformation)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetPartitionLoadInformationResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub get_PartitionLoadInformation:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION,
#[cfg(not(all(feature = "ServiceFabric_FabricTypes", feature = "Win32")))]
get_PartitionLoadInformation: usize,
}
unsafe impl Send for IFabricGetPartitionLoadInformationResult {}
unsafe impl Sync for IFabricGetPartitionLoadInformationResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricGetPartitionLoadInformationResult_Impl: windows_core::IUnknownImpl {
fn get_PartitionLoadInformation(
&self,
) -> *const super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricGetPartitionLoadInformationResult_Vtbl {
pub const fn new<
Identity: IFabricGetPartitionLoadInformationResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_PartitionLoadInformation<
Identity: IFabricGetPartitionLoadInformationResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetPartitionLoadInformationResult_Impl::get_PartitionLoadInformation(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_PartitionLoadInformation: get_PartitionLoadInformation::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetPartitionLoadInformationResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricGetPartitionLoadInformationResult {}
windows_core::imp::define_interface!(
IFabricGetProvisionedCodeVersionListResult,
IFabricGetProvisionedCodeVersionListResult_Vtbl,
0xd042bdb6_4364_4818_b395_0e6b1a22cb11
);
windows_core::imp::interface_hierarchy!(
IFabricGetProvisionedCodeVersionListResult,
windows_core::IUnknown
);
impl IFabricGetProvisionedCodeVersionListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ProvisionedCodeVersionList(
&self,
) -> *const super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_ProvisionedCodeVersionList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetProvisionedCodeVersionListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ProvisionedCodeVersionList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ProvisionedCodeVersionList : usize , }
unsafe impl Send for IFabricGetProvisionedCodeVersionListResult {}
unsafe impl Sync for IFabricGetProvisionedCodeVersionListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetProvisionedCodeVersionListResult_Impl: windows_core::IUnknownImpl {
fn get_ProvisionedCodeVersionList(
&self,
) -> *const super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetProvisionedCodeVersionListResult_Vtbl {
pub const fn new<
Identity: IFabricGetProvisionedCodeVersionListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_ProvisionedCodeVersionList<
Identity: IFabricGetProvisionedCodeVersionListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetProvisionedCodeVersionListResult_Impl::get_ProvisionedCodeVersionList(
this,
)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ProvisionedCodeVersionList: get_ProvisionedCodeVersionList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetProvisionedCodeVersionListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetProvisionedCodeVersionListResult {}
windows_core::imp::define_interface!(
IFabricGetProvisionedConfigVersionListResult,
IFabricGetProvisionedConfigVersionListResult_Vtbl,
0x1bbb9f78_e883_49d1_a998_7eb864fd4a0e
);
windows_core::imp::interface_hierarchy!(
IFabricGetProvisionedConfigVersionListResult,
windows_core::IUnknown
);
impl IFabricGetProvisionedConfigVersionListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ProvisionedConfigVersionList(
&self,
) -> *const super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_ProvisionedConfigVersionList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetProvisionedConfigVersionListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ProvisionedConfigVersionList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ProvisionedConfigVersionList : usize , }
unsafe impl Send for IFabricGetProvisionedConfigVersionListResult {}
unsafe impl Sync for IFabricGetProvisionedConfigVersionListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetProvisionedConfigVersionListResult_Impl: windows_core::IUnknownImpl {
fn get_ProvisionedConfigVersionList(
&self,
) -> *const super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetProvisionedConfigVersionListResult_Vtbl {
pub const fn new<
Identity: IFabricGetProvisionedConfigVersionListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_ProvisionedConfigVersionList<
Identity: IFabricGetProvisionedConfigVersionListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_RESULT_LIST
{
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetProvisionedConfigVersionListResult_Impl::get_ProvisionedConfigVersionList(
this,
)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ProvisionedConfigVersionList: get_ProvisionedConfigVersionList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetProvisionedConfigVersionListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetProvisionedConfigVersionListResult {}
windows_core::imp::define_interface!(
IFabricGetRepairTaskListResult,
IFabricGetRepairTaskListResult_Vtbl,
0x576b2462_5f69_4351_87c7_3ec2d1654a22
);
windows_core::imp::interface_hierarchy!(IFabricGetRepairTaskListResult, windows_core::IUnknown);
impl IFabricGetRepairTaskListResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_Tasks(&self) -> *const super::FabricTypes::FABRIC_REPAIR_TASK_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_Tasks)(windows_core::Interface::as_raw(self))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetRepairTaskListResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub get_Tasks: unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_REPAIR_TASK_LIST,
#[cfg(not(all(feature = "ServiceFabric_FabricTypes", feature = "Win32")))]
get_Tasks: usize,
}
unsafe impl Send for IFabricGetRepairTaskListResult {}
unsafe impl Sync for IFabricGetRepairTaskListResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricGetRepairTaskListResult_Impl: windows_core::IUnknownImpl {
fn get_Tasks(&self) -> *const super::FabricTypes::FABRIC_REPAIR_TASK_LIST;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricGetRepairTaskListResult_Vtbl {
pub const fn new<Identity: IFabricGetRepairTaskListResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Tasks<
Identity: IFabricGetRepairTaskListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_REPAIR_TASK_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetRepairTaskListResult_Impl::get_Tasks(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Tasks: get_Tasks::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetRepairTaskListResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricGetRepairTaskListResult {}
windows_core::imp::define_interface!(
IFabricGetReplicaListResult,
IFabricGetReplicaListResult_Vtbl,
0xe00d3761_3ac5_407d_a04f_1b59486217cf
);
windows_core::imp::interface_hierarchy!(IFabricGetReplicaListResult, windows_core::IUnknown);
impl IFabricGetReplicaListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ReplicaList(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_ReplicaList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetReplicaListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ReplicaList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ReplicaList : usize , }
unsafe impl Send for IFabricGetReplicaListResult {}
unsafe impl Sync for IFabricGetReplicaListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetReplicaListResult_Impl: windows_core::IUnknownImpl {
fn get_ReplicaList(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetReplicaListResult_Vtbl {
pub const fn new<Identity: IFabricGetReplicaListResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_ReplicaList<
Identity: IFabricGetReplicaListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetReplicaListResult_Impl::get_ReplicaList(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ReplicaList: get_ReplicaList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetReplicaListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetReplicaListResult {}
windows_core::imp::define_interface!(
IFabricGetReplicaListResult2,
IFabricGetReplicaListResult2_Vtbl,
0x0bc12f86_c157_4c0d_b274_01fb09145934
);
impl core::ops::Deref for IFabricGetReplicaListResult2 {
type Target = IFabricGetReplicaListResult;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricGetReplicaListResult2,
windows_core::IUnknown,
IFabricGetReplicaListResult
);
impl IFabricGetReplicaListResult2 {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetReplicaListResult2_Vtbl {
pub base__: IFabricGetReplicaListResult_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_PagingStatus:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_PagingStatus: usize,
}
unsafe impl Send for IFabricGetReplicaListResult2 {}
unsafe impl Sync for IFabricGetReplicaListResult2 {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetReplicaListResult2_Impl: IFabricGetReplicaListResult_Impl {
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetReplicaListResult2_Vtbl {
pub const fn new<Identity: IFabricGetReplicaListResult2_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetReplicaListResult2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetReplicaListResult2_Impl::get_PagingStatus(this)
}
}
Self {
base__: IFabricGetReplicaListResult_Vtbl::new::<Identity, OFFSET>(),
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetReplicaListResult2 as windows_core::Interface>::IID
|| iid == &<IFabricGetReplicaListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetReplicaListResult2 {}
windows_core::imp::define_interface!(
IFabricGetReplicaLoadInformationResult,
IFabricGetReplicaLoadInformationResult_Vtbl,
0xe4190ca0_225c_11e4_8c21_0800200c9a66
);
windows_core::imp::interface_hierarchy!(
IFabricGetReplicaLoadInformationResult,
windows_core::IUnknown
);
impl IFabricGetReplicaLoadInformationResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_ReplicaLoadInformation(
&self,
) -> *const super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION {
unsafe {
(windows_core::Interface::vtable(self).get_ReplicaLoadInformation)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetReplicaLoadInformationResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub get_ReplicaLoadInformation:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION,
#[cfg(not(all(feature = "ServiceFabric_FabricTypes", feature = "Win32")))]
get_ReplicaLoadInformation: usize,
}
unsafe impl Send for IFabricGetReplicaLoadInformationResult {}
unsafe impl Sync for IFabricGetReplicaLoadInformationResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricGetReplicaLoadInformationResult_Impl: windows_core::IUnknownImpl {
fn get_ReplicaLoadInformation(
&self,
) -> *const super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricGetReplicaLoadInformationResult_Vtbl {
pub const fn new<Identity: IFabricGetReplicaLoadInformationResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_ReplicaLoadInformation<
Identity: IFabricGetReplicaLoadInformationResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetReplicaLoadInformationResult_Impl::get_ReplicaLoadInformation(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ReplicaLoadInformation: get_ReplicaLoadInformation::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetReplicaLoadInformationResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricGetReplicaLoadInformationResult {}
windows_core::imp::define_interface!(
IFabricGetRollingUpgradeMonitoringPolicyResult,
IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl,
0x02bd6674_9c5a_4262_89a8_ac1a6a2fb5e9
);
windows_core::imp::interface_hierarchy!(
IFabricGetRollingUpgradeMonitoringPolicyResult,
windows_core::IUnknown
);
impl IFabricGetRollingUpgradeMonitoringPolicyResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Policy(
&self,
) -> *const super::FabricTypes::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY {
unsafe {
(windows_core::Interface::vtable(self).get_Policy)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_Policy : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_Policy : usize , }
unsafe impl Send for IFabricGetRollingUpgradeMonitoringPolicyResult {}
unsafe impl Sync for IFabricGetRollingUpgradeMonitoringPolicyResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetRollingUpgradeMonitoringPolicyResult_Impl: windows_core::IUnknownImpl {
fn get_Policy(&self) -> *const super::FabricTypes::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetRollingUpgradeMonitoringPolicyResult_Vtbl {
pub const fn new<
Identity: IFabricGetRollingUpgradeMonitoringPolicyResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_Policy<
Identity: IFabricGetRollingUpgradeMonitoringPolicyResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_ROLLING_UPGRADE_MONITORING_POLICY {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetRollingUpgradeMonitoringPolicyResult_Impl::get_Policy(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Policy: get_Policy::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetRollingUpgradeMonitoringPolicyResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetRollingUpgradeMonitoringPolicyResult {}
windows_core::imp::define_interface!(
IFabricGetServiceGroupMemberListResult,
IFabricGetServiceGroupMemberListResult_Vtbl,
0xe9f7f574_fd07_4a71_9f22_9cf9ccf3c166
);
windows_core::imp::interface_hierarchy!(
IFabricGetServiceGroupMemberListResult,
windows_core::IUnknown
);
impl IFabricGetServiceGroupMemberListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ServiceGroupMemberList(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_ServiceGroupMemberList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetServiceGroupMemberListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ServiceGroupMemberList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ServiceGroupMemberList : usize , }
unsafe impl Send for IFabricGetServiceGroupMemberListResult {}
unsafe impl Sync for IFabricGetServiceGroupMemberListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetServiceGroupMemberListResult_Impl: windows_core::IUnknownImpl {
fn get_ServiceGroupMemberList(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetServiceGroupMemberListResult_Vtbl {
pub const fn new<Identity: IFabricGetServiceGroupMemberListResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_ServiceGroupMemberList<
Identity: IFabricGetServiceGroupMemberListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetServiceGroupMemberListResult_Impl::get_ServiceGroupMemberList(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ServiceGroupMemberList: get_ServiceGroupMemberList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetServiceGroupMemberListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetServiceGroupMemberListResult {}
windows_core::imp::define_interface!(
IFabricGetServiceGroupMemberTypeListResult,
IFabricGetServiceGroupMemberTypeListResult_Vtbl,
0x5e572763_29a9_463a_b602_1332c0f60e6b
);
windows_core::imp::interface_hierarchy!(
IFabricGetServiceGroupMemberTypeListResult,
windows_core::IUnknown
);
impl IFabricGetServiceGroupMemberTypeListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ServiceGroupMemberTypeList(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_ServiceGroupMemberTypeList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetServiceGroupMemberTypeListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ServiceGroupMemberTypeList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ServiceGroupMemberTypeList : usize , }
unsafe impl Send for IFabricGetServiceGroupMemberTypeListResult {}
unsafe impl Sync for IFabricGetServiceGroupMemberTypeListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetServiceGroupMemberTypeListResult_Impl: windows_core::IUnknownImpl {
fn get_ServiceGroupMemberTypeList(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetServiceGroupMemberTypeListResult_Vtbl {
pub const fn new<
Identity: IFabricGetServiceGroupMemberTypeListResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_ServiceGroupMemberTypeList<
Identity: IFabricGetServiceGroupMemberTypeListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetServiceGroupMemberTypeListResult_Impl::get_ServiceGroupMemberTypeList(
this,
)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ServiceGroupMemberTypeList: get_ServiceGroupMemberTypeList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetServiceGroupMemberTypeListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetServiceGroupMemberTypeListResult {}
windows_core::imp::define_interface!(
IFabricGetServiceListResult,
IFabricGetServiceListResult_Vtbl,
0x9953e19a_ea1e_4a1f_bda4_ab42fdb77185
);
windows_core::imp::interface_hierarchy!(IFabricGetServiceListResult, windows_core::IUnknown);
impl IFabricGetServiceListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ServiceList(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_ServiceList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetServiceListResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_ServiceList:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_SERVICE_QUERY_RESULT_LIST,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_ServiceList: usize,
}
unsafe impl Send for IFabricGetServiceListResult {}
unsafe impl Sync for IFabricGetServiceListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetServiceListResult_Impl: windows_core::IUnknownImpl {
fn get_ServiceList(&self) -> *const super::FabricTypes::FABRIC_SERVICE_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetServiceListResult_Vtbl {
pub const fn new<Identity: IFabricGetServiceListResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_ServiceList<
Identity: IFabricGetServiceListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetServiceListResult_Impl::get_ServiceList(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ServiceList: get_ServiceList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetServiceListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetServiceListResult {}
windows_core::imp::define_interface!(
IFabricGetServiceListResult2,
IFabricGetServiceListResult2_Vtbl,
0x30263683_4b25_4ec3_86d7_94ed86e7a8bf
);
impl core::ops::Deref for IFabricGetServiceListResult2 {
type Target = IFabricGetServiceListResult;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricGetServiceListResult2,
windows_core::IUnknown,
IFabricGetServiceListResult
);
impl IFabricGetServiceListResult2 {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetServiceListResult2_Vtbl {
pub base__: IFabricGetServiceListResult_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_PagingStatus:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_PagingStatus: usize,
}
unsafe impl Send for IFabricGetServiceListResult2 {}
unsafe impl Sync for IFabricGetServiceListResult2 {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetServiceListResult2_Impl: IFabricGetServiceListResult_Impl {
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetServiceListResult2_Vtbl {
pub const fn new<Identity: IFabricGetServiceListResult2_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricGetServiceListResult2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetServiceListResult2_Impl::get_PagingStatus(this)
}
}
Self {
base__: IFabricGetServiceListResult_Vtbl::new::<Identity, OFFSET>(),
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetServiceListResult2 as windows_core::Interface>::IID
|| iid == &<IFabricGetServiceListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetServiceListResult2 {}
windows_core::imp::define_interface!(
IFabricGetServiceNameResult,
IFabricGetServiceNameResult_Vtbl,
0xb64fb70c_fe53_4ca1_b6d9_23d1150fe76c
);
windows_core::imp::interface_hierarchy!(IFabricGetServiceNameResult, windows_core::IUnknown);
impl IFabricGetServiceNameResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ServiceName(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_RESULT {
unsafe {
(windows_core::Interface::vtable(self).get_ServiceName)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetServiceNameResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_ServiceName:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_RESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_ServiceName: usize,
}
unsafe impl Send for IFabricGetServiceNameResult {}
unsafe impl Sync for IFabricGetServiceNameResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetServiceNameResult_Impl: windows_core::IUnknownImpl {
fn get_ServiceName(&self) -> *const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_RESULT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetServiceNameResult_Vtbl {
pub const fn new<Identity: IFabricGetServiceNameResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_ServiceName<
Identity: IFabricGetServiceNameResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_RESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetServiceNameResult_Impl::get_ServiceName(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ServiceName: get_ServiceName::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetServiceNameResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetServiceNameResult {}
windows_core::imp::define_interface!(
IFabricGetServiceTypeListResult,
IFabricGetServiceTypeListResult_Vtbl,
0x886e4ad2_edb8_4734_9dd4_0e9a2be5238b
);
windows_core::imp::interface_hierarchy!(IFabricGetServiceTypeListResult, windows_core::IUnknown);
impl IFabricGetServiceTypeListResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ServiceTypeList(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_ServiceTypeList)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetServiceTypeListResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_ServiceTypeList : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_ServiceTypeList : usize , }
unsafe impl Send for IFabricGetServiceTypeListResult {}
unsafe impl Sync for IFabricGetServiceTypeListResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetServiceTypeListResult_Impl: windows_core::IUnknownImpl {
fn get_ServiceTypeList(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetServiceTypeListResult_Vtbl {
pub const fn new<Identity: IFabricGetServiceTypeListResult_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn get_ServiceTypeList<
Identity: IFabricGetServiceTypeListResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetServiceTypeListResult_Impl::get_ServiceTypeList(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ServiceTypeList: get_ServiceTypeList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetServiceTypeListResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetServiceTypeListResult {}
windows_core::imp::define_interface!(
IFabricGetUnplacedReplicaInformationResult,
IFabricGetUnplacedReplicaInformationResult_Vtbl,
0x9d86a611_3fd3_451b_9495_6a831f417473
);
windows_core::imp::interface_hierarchy!(
IFabricGetUnplacedReplicaInformationResult,
windows_core::IUnknown
);
impl IFabricGetUnplacedReplicaInformationResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_UnplacedReplicaInformation(
&self,
) -> *const super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION {
unsafe {
(windows_core::Interface::vtable(self).get_UnplacedReplicaInformation)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricGetUnplacedReplicaInformationResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_UnplacedReplicaInformation:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_UnplacedReplicaInformation: usize,
}
unsafe impl Send for IFabricGetUnplacedReplicaInformationResult {}
unsafe impl Sync for IFabricGetUnplacedReplicaInformationResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricGetUnplacedReplicaInformationResult_Impl: windows_core::IUnknownImpl {
fn get_UnplacedReplicaInformation(
&self,
) -> *const super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricGetUnplacedReplicaInformationResult_Vtbl {
pub const fn new<
Identity: IFabricGetUnplacedReplicaInformationResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_UnplacedReplicaInformation<
Identity: IFabricGetUnplacedReplicaInformationResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricGetUnplacedReplicaInformationResult_Impl::get_UnplacedReplicaInformation(
this,
)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_UnplacedReplicaInformation: get_UnplacedReplicaInformation::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricGetUnplacedReplicaInformationResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricGetUnplacedReplicaInformationResult {}
windows_core::imp::define_interface!(
IFabricHealthClient,
IFabricHealthClient_Vtbl,
0x3d00d0be_7014_41da_9c5b_0a9ef46e2a43
);
windows_core::imp::interface_hierarchy!(IFabricHealthClient, windows_core::IUnknown);
impl IFabricHealthClient {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn ReportHealth(
&self,
healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT,
) -> windows_core::HRESULT {
unsafe {
(windows_core::Interface::vtable(self).ReportHealth)(
windows_core::Interface::as_raw(self),
healthreport,
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetClusterHealth<P2>(
&self,
healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetClusterHealth)(
windows_core::Interface::as_raw(self),
healthpolicy,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetClusterHealth<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricClusterHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetClusterHealth)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetNodeHealth<P0, P3>(
&self,
nodename: P0,
healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetNodeHealth)(
windows_core::Interface::as_raw(self),
nodename.param().abi(),
healthpolicy,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetNodeHealth<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricNodeHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetNodeHealth)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetApplicationHealth<P3>(
&self,
applicationname: super::FabricTypes::FABRIC_URI,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetApplicationHealth)(
windows_core::Interface::as_raw(self),
applicationname,
healthpolicy,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetApplicationHealth<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricApplicationHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetApplicationHealth)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetServiceHealth<P3>(
&self,
servicename: super::FabricTypes::FABRIC_URI,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetServiceHealth)(
windows_core::Interface::as_raw(self),
servicename,
healthpolicy,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetServiceHealth<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricServiceHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetServiceHealth)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetPartitionHealth<P3>(
&self,
partitionid: super::FabricTypes::FABRIC_PARTITION_ID,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetPartitionHealth)(
windows_core::Interface::as_raw(self),
partitionid,
healthpolicy,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetPartitionHealth<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricPartitionHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetPartitionHealth)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetReplicaHealth<P4>(
&self,
partitionid: super::FabricTypes::FABRIC_PARTITION_ID,
replicaid: super::FabricTypes::FABRIC_REPLICA_ID,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P4: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetReplicaHealth)(
windows_core::Interface::as_raw(self),
partitionid,
replicaid,
healthpolicy,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetReplicaHealth<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricReplicaHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetReplicaHealth)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedApplicationHealth<P1, P4>(
&self,
applicationname: super::FabricTypes::FABRIC_URI,
nodename: P1,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P4: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedApplicationHealth)(
windows_core::Interface::as_raw(self),
applicationname,
nodename.param().abi(),
healthpolicy,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedApplicationHealth<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricDeployedApplicationHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedApplicationHealth)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedServicePackageHealth<P1, P2, P5>(
&self,
applicationname: super::FabricTypes::FABRIC_URI,
servicemanifestname: P1,
nodename: P2,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: P5,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<windows_core::PCWSTR>,
P5: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedServicePackageHealth)(
windows_core::Interface::as_raw(self),
applicationname,
servicemanifestname.param().abi(),
nodename.param().abi(),
healthpolicy,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedServicePackageHealth<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricDeployedServicePackageHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedServicePackageHealth)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricHealthClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub ReportHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_HEALTH_REPORT,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
ReportHealth: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetClusterHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetClusterHealth: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetClusterHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetClusterHealth: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetNodeHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
*const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetNodeHealth: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetNodeHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetNodeHealth: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetApplicationHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
*const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetApplicationHealth: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetApplicationHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetApplicationHealth: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetServiceHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
*const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetServiceHealth: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetServiceHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetServiceHealth: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetPartitionHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_PARTITION_ID,
*const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetPartitionHealth: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetPartitionHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetPartitionHealth: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetReplicaHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_PARTITION_ID,
super::FabricTypes::FABRIC_REPLICA_ID,
*const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetReplicaHealth: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetReplicaHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetReplicaHealth: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedApplicationHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
*const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedApplicationHealth: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedApplicationHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedApplicationHealth: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedServicePackageHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
windows_core::PCWSTR,
*const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedServicePackageHealth: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedServicePackageHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedServicePackageHealth: usize,
}
unsafe impl Send for IFabricHealthClient {}
unsafe impl Sync for IFabricHealthClient {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricHealthClient_Impl: windows_core::IUnknownImpl {
fn ReportHealth(
&self,
healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT,
) -> windows_core::Result<()>;
fn BeginGetClusterHealth(
&self,
healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetClusterHealth(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricClusterHealthResult>;
fn BeginGetNodeHealth(
&self,
nodename: &windows_core::PCWSTR,
healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetNodeHealth(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricNodeHealthResult>;
fn BeginGetApplicationHealth(
&self,
applicationname: &super::FabricTypes::FABRIC_URI,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetApplicationHealth(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricApplicationHealthResult>;
fn BeginGetServiceHealth(
&self,
servicename: &super::FabricTypes::FABRIC_URI,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetServiceHealth(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricServiceHealthResult>;
fn BeginGetPartitionHealth(
&self,
partitionid: &super::FabricTypes::FABRIC_PARTITION_ID,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetPartitionHealth(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricPartitionHealthResult>;
fn BeginGetReplicaHealth(
&self,
partitionid: &super::FabricTypes::FABRIC_PARTITION_ID,
replicaid: super::FabricTypes::FABRIC_REPLICA_ID,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetReplicaHealth(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricReplicaHealthResult>;
fn BeginGetDeployedApplicationHealth(
&self,
applicationname: &super::FabricTypes::FABRIC_URI,
nodename: &windows_core::PCWSTR,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedApplicationHealth(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricDeployedApplicationHealthResult>;
fn BeginGetDeployedServicePackageHealth(
&self,
applicationname: &super::FabricTypes::FABRIC_URI,
servicemanifestname: &windows_core::PCWSTR,
nodename: &windows_core::PCWSTR,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedServicePackageHealth(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricDeployedServicePackageHealthResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricHealthClient_Vtbl {
pub const fn new<Identity: IFabricHealthClient_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn ReportHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricHealthClient_Impl::ReportHealth(
this,
core::mem::transmute_copy(&healthreport),
)
.into()
}
}
unsafe extern "system" fn BeginGetClusterHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::BeginGetClusterHealth(
this,
core::mem::transmute_copy(&healthpolicy),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetClusterHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::EndGetClusterHealth(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetNodeHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
nodename: windows_core::PCWSTR,
healthpolicy: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::BeginGetNodeHealth(
this,
core::mem::transmute(&nodename),
core::mem::transmute_copy(&healthpolicy),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetNodeHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::EndGetNodeHealth(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetApplicationHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationname: super::FabricTypes::FABRIC_URI,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::BeginGetApplicationHealth(
this,
core::mem::transmute(&applicationname),
core::mem::transmute_copy(&healthpolicy),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetApplicationHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::EndGetApplicationHealth(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetServiceHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
servicename: super::FabricTypes::FABRIC_URI,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::BeginGetServiceHealth(
this,
core::mem::transmute(&servicename),
core::mem::transmute_copy(&healthpolicy),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetServiceHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::EndGetServiceHealth(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetPartitionHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
partitionid: super::FabricTypes::FABRIC_PARTITION_ID,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::BeginGetPartitionHealth(
this,
core::mem::transmute(&partitionid),
core::mem::transmute_copy(&healthpolicy),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetPartitionHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::EndGetPartitionHealth(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetReplicaHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
partitionid: super::FabricTypes::FABRIC_PARTITION_ID,
replicaid: super::FabricTypes::FABRIC_REPLICA_ID,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::BeginGetReplicaHealth(
this,
core::mem::transmute(&partitionid),
core::mem::transmute_copy(&replicaid),
core::mem::transmute_copy(&healthpolicy),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetReplicaHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::EndGetReplicaHealth(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetDeployedApplicationHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationname: super::FabricTypes::FABRIC_URI,
nodename: windows_core::PCWSTR,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::BeginGetDeployedApplicationHealth(
this,
core::mem::transmute(&applicationname),
core::mem::transmute(&nodename),
core::mem::transmute_copy(&healthpolicy),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedApplicationHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::EndGetDeployedApplicationHealth(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetDeployedServicePackageHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationname: super::FabricTypes::FABRIC_URI,
servicemanifestname: windows_core::PCWSTR,
nodename: windows_core::PCWSTR,
healthpolicy: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_POLICY,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::BeginGetDeployedServicePackageHealth(
this,
core::mem::transmute(&applicationname),
core::mem::transmute(&servicemanifestname),
core::mem::transmute(&nodename),
core::mem::transmute_copy(&healthpolicy),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedServicePackageHealth<
Identity: IFabricHealthClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient_Impl::EndGetDeployedServicePackageHealth(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
ReportHealth: ReportHealth::<Identity, OFFSET>,
BeginGetClusterHealth: BeginGetClusterHealth::<Identity, OFFSET>,
EndGetClusterHealth: EndGetClusterHealth::<Identity, OFFSET>,
BeginGetNodeHealth: BeginGetNodeHealth::<Identity, OFFSET>,
EndGetNodeHealth: EndGetNodeHealth::<Identity, OFFSET>,
BeginGetApplicationHealth: BeginGetApplicationHealth::<Identity, OFFSET>,
EndGetApplicationHealth: EndGetApplicationHealth::<Identity, OFFSET>,
BeginGetServiceHealth: BeginGetServiceHealth::<Identity, OFFSET>,
EndGetServiceHealth: EndGetServiceHealth::<Identity, OFFSET>,
BeginGetPartitionHealth: BeginGetPartitionHealth::<Identity, OFFSET>,
EndGetPartitionHealth: EndGetPartitionHealth::<Identity, OFFSET>,
BeginGetReplicaHealth: BeginGetReplicaHealth::<Identity, OFFSET>,
EndGetReplicaHealth: EndGetReplicaHealth::<Identity, OFFSET>,
BeginGetDeployedApplicationHealth: BeginGetDeployedApplicationHealth::<Identity, OFFSET>,
EndGetDeployedApplicationHealth: EndGetDeployedApplicationHealth::<Identity, OFFSET>,
BeginGetDeployedServicePackageHealth: BeginGetDeployedServicePackageHealth::<
Identity,
OFFSET,
>,
EndGetDeployedServicePackageHealth: EndGetDeployedServicePackageHealth::<
Identity,
OFFSET,
>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricHealthClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricHealthClient {}
windows_core::imp::define_interface!(
IFabricHealthClient2,
IFabricHealthClient2_Vtbl,
0x66cbc014_d7b3_4f81_a498_e580feb9a1f5
);
impl core::ops::Deref for IFabricHealthClient2 {
type Target = IFabricHealthClient;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricHealthClient2,
windows_core::IUnknown,
IFabricHealthClient
);
impl IFabricHealthClient2 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetClusterHealth2<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetClusterHealth2)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetClusterHealth2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricClusterHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetClusterHealth2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetNodeHealth2<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetNodeHealth2)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetNodeHealth2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricNodeHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetNodeHealth2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetApplicationHealth2<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetApplicationHealth2)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetApplicationHealth2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricApplicationHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetApplicationHealth2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetServiceHealth2<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetServiceHealth2)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetServiceHealth2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricServiceHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetServiceHealth2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetPartitionHealth2<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetPartitionHealth2)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetPartitionHealth2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricPartitionHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetPartitionHealth2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetReplicaHealth2<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetReplicaHealth2)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetReplicaHealth2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricReplicaHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetReplicaHealth2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedApplicationHealth2<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedApplicationHealth2)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedApplicationHealth2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricDeployedApplicationHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedApplicationHealth2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedServicePackageHealth2<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedServicePackageHealth2)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedServicePackageHealth2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricDeployedServicePackageHealthResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedServicePackageHealth2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricHealthClient2_Vtbl {
pub base__: IFabricHealthClient_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetClusterHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetClusterHealth2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetClusterHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetClusterHealth2: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetNodeHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetNodeHealth2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetNodeHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetNodeHealth2: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetApplicationHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetApplicationHealth2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetApplicationHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetApplicationHealth2: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetServiceHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetServiceHealth2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetServiceHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetServiceHealth2: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetPartitionHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetPartitionHealth2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetPartitionHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetPartitionHealth2: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetReplicaHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetReplicaHealth2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetReplicaHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetReplicaHealth2: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedApplicationHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedApplicationHealth2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedApplicationHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedApplicationHealth2: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedServicePackageHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedServicePackageHealth2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedServicePackageHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedServicePackageHealth2: usize,
}
unsafe impl Send for IFabricHealthClient2 {}
unsafe impl Sync for IFabricHealthClient2 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricHealthClient2_Impl: IFabricHealthClient_Impl {
fn BeginGetClusterHealth2(
&self,
querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetClusterHealth2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricClusterHealthResult>;
fn BeginGetNodeHealth2(
&self,
querydescription: *const super::FabricTypes::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetNodeHealth2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricNodeHealthResult>;
fn BeginGetApplicationHealth2(
&self,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetApplicationHealth2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricApplicationHealthResult>;
fn BeginGetServiceHealth2(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetServiceHealth2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricServiceHealthResult>;
fn BeginGetPartitionHealth2(
&self,
querydescription: *const super::FabricTypes::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetPartitionHealth2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricPartitionHealthResult>;
fn BeginGetReplicaHealth2(
&self,
querydescription: *const super::FabricTypes::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetReplicaHealth2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricReplicaHealthResult>;
fn BeginGetDeployedApplicationHealth2(
&self,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedApplicationHealth2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricDeployedApplicationHealthResult>;
fn BeginGetDeployedServicePackageHealth2(
&self,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedServicePackageHealth2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricDeployedServicePackageHealthResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricHealthClient2_Vtbl {
pub const fn new<Identity: IFabricHealthClient2_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetClusterHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::BeginGetClusterHealth2(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetClusterHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::EndGetClusterHealth2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetNodeHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_NODE_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::BeginGetNodeHealth2(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetNodeHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::EndGetNodeHealth2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetApplicationHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_APPLICATION_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::BeginGetApplicationHealth2(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetApplicationHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::EndGetApplicationHealth2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetServiceHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::BeginGetServiceHealth2(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetServiceHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::EndGetServiceHealth2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetPartitionHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_PARTITION_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::BeginGetPartitionHealth2(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetPartitionHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::EndGetPartitionHealth2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetReplicaHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_REPLICA_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::BeginGetReplicaHealth2(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetReplicaHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::EndGetReplicaHealth2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetDeployedApplicationHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::BeginGetDeployedApplicationHealth2(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedApplicationHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::EndGetDeployedApplicationHealth2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetDeployedServicePackageHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_HEALTH_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::BeginGetDeployedServicePackageHealth2(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedServicePackageHealth2<
Identity: IFabricHealthClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient2_Impl::EndGetDeployedServicePackageHealth2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricHealthClient_Vtbl::new::<Identity, OFFSET>(),
BeginGetClusterHealth2: BeginGetClusterHealth2::<Identity, OFFSET>,
EndGetClusterHealth2: EndGetClusterHealth2::<Identity, OFFSET>,
BeginGetNodeHealth2: BeginGetNodeHealth2::<Identity, OFFSET>,
EndGetNodeHealth2: EndGetNodeHealth2::<Identity, OFFSET>,
BeginGetApplicationHealth2: BeginGetApplicationHealth2::<Identity, OFFSET>,
EndGetApplicationHealth2: EndGetApplicationHealth2::<Identity, OFFSET>,
BeginGetServiceHealth2: BeginGetServiceHealth2::<Identity, OFFSET>,
EndGetServiceHealth2: EndGetServiceHealth2::<Identity, OFFSET>,
BeginGetPartitionHealth2: BeginGetPartitionHealth2::<Identity, OFFSET>,
EndGetPartitionHealth2: EndGetPartitionHealth2::<Identity, OFFSET>,
BeginGetReplicaHealth2: BeginGetReplicaHealth2::<Identity, OFFSET>,
EndGetReplicaHealth2: EndGetReplicaHealth2::<Identity, OFFSET>,
BeginGetDeployedApplicationHealth2: BeginGetDeployedApplicationHealth2::<
Identity,
OFFSET,
>,
EndGetDeployedApplicationHealth2: EndGetDeployedApplicationHealth2::<Identity, OFFSET>,
BeginGetDeployedServicePackageHealth2: BeginGetDeployedServicePackageHealth2::<
Identity,
OFFSET,
>,
EndGetDeployedServicePackageHealth2: EndGetDeployedServicePackageHealth2::<
Identity,
OFFSET,
>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricHealthClient2 as windows_core::Interface>::IID
|| iid == &<IFabricHealthClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricHealthClient2 {}
windows_core::imp::define_interface!(
IFabricHealthClient3,
IFabricHealthClient3_Vtbl,
0xdd3e4497_3373_458d_ad22_c88ebd27493e
);
impl core::ops::Deref for IFabricHealthClient3 {
type Target = IFabricHealthClient2;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricHealthClient3,
windows_core::IUnknown,
IFabricHealthClient,
IFabricHealthClient2
);
impl IFabricHealthClient3 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetClusterHealthChunk<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetClusterHealthChunk)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetClusterHealthChunk<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetClusterHealthChunkResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetClusterHealthChunk)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricHealthClient3_Vtbl {
pub base__: IFabricHealthClient2_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetClusterHealthChunk: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetClusterHealthChunk: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetClusterHealthChunk: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetClusterHealthChunk: usize,
}
unsafe impl Send for IFabricHealthClient3 {}
unsafe impl Sync for IFabricHealthClient3 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricHealthClient3_Impl: IFabricHealthClient2_Impl {
fn BeginGetClusterHealthChunk(
&self,
querydescription: *const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetClusterHealthChunk(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetClusterHealthChunkResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricHealthClient3_Vtbl {
pub const fn new<Identity: IFabricHealthClient3_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetClusterHealthChunk<
Identity: IFabricHealthClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_CLUSTER_HEALTH_CHUNK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient3_Impl::BeginGetClusterHealthChunk(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetClusterHealthChunk<
Identity: 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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricHealthClient3_Impl::EndGetClusterHealthChunk(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricHealthClient2_Vtbl::new::<Identity, OFFSET>(),
BeginGetClusterHealthChunk: BeginGetClusterHealthChunk::<Identity, OFFSET>,
EndGetClusterHealthChunk: EndGetClusterHealthChunk::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricHealthClient3 as windows_core::Interface>::IID
|| iid == &<IFabricHealthClient as windows_core::Interface>::IID
|| iid == &<IFabricHealthClient2 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricHealthClient3 {}
windows_core::imp::define_interface!(
IFabricHealthClient4,
IFabricHealthClient4_Vtbl,
0x9f0401af_4909_404f_8696_0a71bd753e98
);
impl core::ops::Deref for IFabricHealthClient4 {
type Target = IFabricHealthClient3;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricHealthClient4,
windows_core::IUnknown,
IFabricHealthClient,
IFabricHealthClient2,
IFabricHealthClient3
);
impl IFabricHealthClient4 {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn ReportHealth2(
&self,
healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT,
sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS,
) -> windows_core::HRESULT {
unsafe {
(windows_core::Interface::vtable(self).ReportHealth2)(
windows_core::Interface::as_raw(self),
healthreport,
sendoptions,
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricHealthClient4_Vtbl {
pub base__: IFabricHealthClient3_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub ReportHealth2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_HEALTH_REPORT,
*const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
ReportHealth2: usize,
}
unsafe impl Send for IFabricHealthClient4 {}
unsafe impl Sync for IFabricHealthClient4 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricHealthClient4_Impl: IFabricHealthClient3_Impl {
fn ReportHealth2(
&self,
healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT,
sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricHealthClient4_Vtbl {
pub const fn new<Identity: IFabricHealthClient4_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn ReportHealth2<
Identity: IFabricHealthClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
healthreport: *const super::FabricTypes::FABRIC_HEALTH_REPORT,
sendoptions: *const super::FabricTypes::FABRIC_HEALTH_REPORT_SEND_OPTIONS,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricHealthClient4_Impl::ReportHealth2(
this,
core::mem::transmute_copy(&healthreport),
core::mem::transmute_copy(&sendoptions),
)
.into()
}
}
Self {
base__: IFabricHealthClient3_Vtbl::new::<Identity, OFFSET>(),
ReportHealth2: ReportHealth2::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricHealthClient4 as windows_core::Interface>::IID
|| iid == &<IFabricHealthClient as windows_core::Interface>::IID
|| iid == &<IFabricHealthClient2 as windows_core::Interface>::IID
|| iid == &<IFabricHealthClient3 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricHealthClient4 {}
windows_core::imp::define_interface!(
IFabricInfrastructureServiceClient,
IFabricInfrastructureServiceClient_Vtbl,
0xa0cfbc71_184b_443b_b102_4b6d0a7cbc49
);
windows_core::imp::interface_hierarchy!(IFabricInfrastructureServiceClient, windows_core::IUnknown);
impl IFabricInfrastructureServiceClient {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginInvokeInfrastructureCommand<P1, P3>(
&self,
servicename: super::FabricTypes::FABRIC_URI,
command: P1,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginInvokeInfrastructureCommand)(
windows_core::Interface::as_raw(self),
servicename,
command.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndInvokeInfrastructureCommand<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndInvokeInfrastructureCommand)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginInvokeInfrastructureQuery<P1, P3>(
&self,
servicename: super::FabricTypes::FABRIC_URI,
command: P1,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginInvokeInfrastructureQuery)(
windows_core::Interface::as_raw(self),
servicename,
command.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndInvokeInfrastructureQuery<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndInvokeInfrastructureQuery)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricInfrastructureServiceClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginInvokeInfrastructureCommand: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginInvokeInfrastructureCommand: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndInvokeInfrastructureCommand: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndInvokeInfrastructureCommand: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginInvokeInfrastructureQuery: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginInvokeInfrastructureQuery: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndInvokeInfrastructureQuery: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndInvokeInfrastructureQuery: usize,
}
unsafe impl Send for IFabricInfrastructureServiceClient {}
unsafe impl Sync for IFabricInfrastructureServiceClient {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricInfrastructureServiceClient_Impl: windows_core::IUnknownImpl {
fn BeginInvokeInfrastructureCommand(
&self,
servicename: &super::FabricTypes::FABRIC_URI,
command: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndInvokeInfrastructureCommand(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>;
fn BeginInvokeInfrastructureQuery(
&self,
servicename: &super::FabricTypes::FABRIC_URI,
command: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndInvokeInfrastructureQuery(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricInfrastructureServiceClient_Vtbl {
pub const fn new<Identity: IFabricInfrastructureServiceClient_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginInvokeInfrastructureCommand<
Identity: IFabricInfrastructureServiceClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
servicename: super::FabricTypes::FABRIC_URI,
command: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricInfrastructureServiceClient_Impl::BeginInvokeInfrastructureCommand(
this,
core::mem::transmute(&servicename),
core::mem::transmute(&command),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndInvokeInfrastructureCommand<
Identity: IFabricInfrastructureServiceClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricInfrastructureServiceClient_Impl::EndInvokeInfrastructureCommand(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginInvokeInfrastructureQuery<
Identity: IFabricInfrastructureServiceClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
servicename: super::FabricTypes::FABRIC_URI,
command: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricInfrastructureServiceClient_Impl::BeginInvokeInfrastructureQuery(
this,
core::mem::transmute(&servicename),
core::mem::transmute(&command),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndInvokeInfrastructureQuery<
Identity: IFabricInfrastructureServiceClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricInfrastructureServiceClient_Impl::EndInvokeInfrastructureQuery(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginInvokeInfrastructureCommand: BeginInvokeInfrastructureCommand::<Identity, OFFSET>,
EndInvokeInfrastructureCommand: EndInvokeInfrastructureCommand::<Identity, OFFSET>,
BeginInvokeInfrastructureQuery: BeginInvokeInfrastructureQuery::<Identity, OFFSET>,
EndInvokeInfrastructureQuery: EndInvokeInfrastructureQuery::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricInfrastructureServiceClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricInfrastructureServiceClient {}
windows_core::imp::define_interface!(
IFabricManagedIdentityClient,
IFabricManagedIdentityClient_Vtbl,
0xdfb1ea92_11ac_4a1e_82ad_d543a6fac1ed
);
windows_core::imp::interface_hierarchy!(IFabricManagedIdentityClient, windows_core::IUnknown);
impl IFabricManagedIdentityClient {
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetTokenServiceDescription<P0, P2>(
&self,
nodename: P0,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetTokenServiceDescription)(
windows_core::Interface::as_raw(self),
nodename.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetTokenServiceDescription<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricManagedIdentityTokenServiceDescription>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetTokenServiceDescription)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricManagedIdentityClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetTokenServiceDescription: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetTokenServiceDescription: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetTokenServiceDescription: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetTokenServiceDescription: usize,
}
unsafe impl Send for IFabricManagedIdentityClient {}
unsafe impl Sync for IFabricManagedIdentityClient {}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub trait IFabricManagedIdentityClient_Impl: windows_core::IUnknownImpl {
fn BeginGetTokenServiceDescription(
&self,
nodename: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetTokenServiceDescription(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricManagedIdentityTokenServiceDescription>;
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
impl IFabricManagedIdentityClient_Vtbl {
pub const fn new<Identity: IFabricManagedIdentityClient_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetTokenServiceDescription<
Identity: IFabricManagedIdentityClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
nodename: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricManagedIdentityClient_Impl::BeginGetTokenServiceDescription(
this,
core::mem::transmute(&nodename),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetTokenServiceDescription<
Identity: IFabricManagedIdentityClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricManagedIdentityClient_Impl::EndGetTokenServiceDescription(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginGetTokenServiceDescription: BeginGetTokenServiceDescription::<Identity, OFFSET>,
EndGetTokenServiceDescription: EndGetTokenServiceDescription::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricManagedIdentityClient as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
impl windows_core::RuntimeName for IFabricManagedIdentityClient {}
windows_core::imp::define_interface!(
IFabricManagedIdentityTokenServiceDescription,
IFabricManagedIdentityTokenServiceDescription_Vtbl,
0xe293bb4d_e830_4f1d_ad22_fc17ca4dd45a
);
windows_core::imp::interface_hierarchy!(
IFabricManagedIdentityTokenServiceDescription,
windows_core::IUnknown
);
impl IFabricManagedIdentityTokenServiceDescription {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_TokenServiceDescription(
&self,
) -> *const super::FabricTypes::FABRIC_MANAGED_IDENTITY_TOKEN_SERVICE_DESCRIPTION {
unsafe {
(windows_core::Interface::vtable(self).get_TokenServiceDescription)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricManagedIdentityTokenServiceDescription_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_TokenServiceDescription : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_MANAGED_IDENTITY_TOKEN_SERVICE_DESCRIPTION , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_TokenServiceDescription : usize , }
unsafe impl Send for IFabricManagedIdentityTokenServiceDescription {}
unsafe impl Sync for IFabricManagedIdentityTokenServiceDescription {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricManagedIdentityTokenServiceDescription_Impl: windows_core::IUnknownImpl {
fn get_TokenServiceDescription(
&self,
) -> *const super::FabricTypes::FABRIC_MANAGED_IDENTITY_TOKEN_SERVICE_DESCRIPTION;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricManagedIdentityTokenServiceDescription_Vtbl {
pub const fn new<
Identity: IFabricManagedIdentityTokenServiceDescription_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_TokenServiceDescription<
Identity: IFabricManagedIdentityTokenServiceDescription_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_MANAGED_IDENTITY_TOKEN_SERVICE_DESCRIPTION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricManagedIdentityTokenServiceDescription_Impl::get_TokenServiceDescription(
this,
)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_TokenServiceDescription: get_TokenServiceDescription::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricManagedIdentityTokenServiceDescription as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricManagedIdentityTokenServiceDescription {}
windows_core::imp::define_interface!(
IFabricMoveAuxiliaryResult,
IFabricMoveAuxiliaryResult_Vtbl,
0x69d73abc_6766_4f04_80d4_9066ab46e863
);
windows_core::imp::interface_hierarchy!(IFabricMoveAuxiliaryResult, windows_core::IUnknown);
impl IFabricMoveAuxiliaryResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_AUXILIARY_RESULT {
unsafe {
(windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricMoveAuxiliaryResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Result:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_MOVE_AUXILIARY_RESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Result: usize,
}
unsafe impl Send for IFabricMoveAuxiliaryResult {}
unsafe impl Sync for IFabricMoveAuxiliaryResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricMoveAuxiliaryResult_Impl: windows_core::IUnknownImpl {
fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_AUXILIARY_RESULT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricMoveAuxiliaryResult_Vtbl {
pub const fn new<Identity: IFabricMoveAuxiliaryResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Result<
Identity: IFabricMoveAuxiliaryResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_MOVE_AUXILIARY_RESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricMoveAuxiliaryResult_Impl::get_Result(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Result: get_Result::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricMoveAuxiliaryResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricMoveAuxiliaryResult {}
windows_core::imp::define_interface!(
IFabricMoveInstanceResult,
IFabricMoveInstanceResult_Vtbl,
0xac693364_be37_4518_9c36_ecfcc17d1aab
);
windows_core::imp::interface_hierarchy!(IFabricMoveInstanceResult, windows_core::IUnknown);
impl IFabricMoveInstanceResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_INSTANCE_RESULT {
unsafe {
(windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricMoveInstanceResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Result:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_MOVE_INSTANCE_RESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Result: usize,
}
unsafe impl Send for IFabricMoveInstanceResult {}
unsafe impl Sync for IFabricMoveInstanceResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricMoveInstanceResult_Impl: windows_core::IUnknownImpl {
fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_INSTANCE_RESULT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricMoveInstanceResult_Vtbl {
pub const fn new<Identity: IFabricMoveInstanceResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Result<
Identity: IFabricMoveInstanceResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_MOVE_INSTANCE_RESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricMoveInstanceResult_Impl::get_Result(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Result: get_Result::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricMoveInstanceResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricMoveInstanceResult {}
windows_core::imp::define_interface!(
IFabricMovePrimaryResult,
IFabricMovePrimaryResult_Vtbl,
0x66ac03f5_e61c_47a2_80fe_49309a02c92c
);
windows_core::imp::interface_hierarchy!(IFabricMovePrimaryResult, windows_core::IUnknown);
impl IFabricMovePrimaryResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_PRIMARY_RESULT {
unsafe {
(windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricMovePrimaryResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Result:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_MOVE_PRIMARY_RESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Result: usize,
}
unsafe impl Send for IFabricMovePrimaryResult {}
unsafe impl Sync for IFabricMovePrimaryResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricMovePrimaryResult_Impl: windows_core::IUnknownImpl {
fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_PRIMARY_RESULT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricMovePrimaryResult_Vtbl {
pub const fn new<Identity: IFabricMovePrimaryResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Result<
Identity: IFabricMovePrimaryResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_MOVE_PRIMARY_RESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricMovePrimaryResult_Impl::get_Result(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Result: get_Result::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricMovePrimaryResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricMovePrimaryResult {}
windows_core::imp::define_interface!(
IFabricMoveSecondaryResult,
IFabricMoveSecondaryResult_Vtbl,
0x60fe896a_b690_4abb_94fd_86c615d29bee
);
windows_core::imp::interface_hierarchy!(IFabricMoveSecondaryResult, windows_core::IUnknown);
impl IFabricMoveSecondaryResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_SECONDARY_RESULT {
unsafe {
(windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricMoveSecondaryResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Result:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_MOVE_SECONDARY_RESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Result: usize,
}
unsafe impl Send for IFabricMoveSecondaryResult {}
unsafe impl Sync for IFabricMoveSecondaryResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricMoveSecondaryResult_Impl: windows_core::IUnknownImpl {
fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_MOVE_SECONDARY_RESULT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricMoveSecondaryResult_Vtbl {
pub const fn new<Identity: IFabricMoveSecondaryResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Result<
Identity: IFabricMoveSecondaryResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_MOVE_SECONDARY_RESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricMoveSecondaryResult_Impl::get_Result(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Result: get_Result::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricMoveSecondaryResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricMoveSecondaryResult {}
windows_core::imp::define_interface!(
IFabricNameEnumerationResult,
IFabricNameEnumerationResult_Vtbl,
0x557e8105_f4f4_4fd3_9d21_075f34e2f98c
);
windows_core::imp::interface_hierarchy!(IFabricNameEnumerationResult, windows_core::IUnknown);
impl IFabricNameEnumerationResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_EnumerationStatus(&self) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_EnumerationStatus)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn GetNames(
&self,
itemcount: *mut u32,
) -> windows_core::Result<*mut super::FabricTypes::FABRIC_URI> {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetNames)(
windows_core::Interface::as_raw(self),
itemcount as _,
&mut result__,
)
.map(|| result__)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricNameEnumerationResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_EnumerationStatus:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_EnumerationStatus: usize,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub GetNames: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut u32,
*mut *mut super::FabricTypes::FABRIC_URI,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
GetNames: usize,
}
unsafe impl Send for IFabricNameEnumerationResult {}
unsafe impl Sync for IFabricNameEnumerationResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricNameEnumerationResult_Impl: windows_core::IUnknownImpl {
fn get_EnumerationStatus(&self) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS;
fn GetNames(
&self,
itemcount: *mut u32,
) -> windows_core::Result<*mut super::FabricTypes::FABRIC_URI>;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricNameEnumerationResult_Vtbl {
pub const fn new<Identity: IFabricNameEnumerationResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_EnumerationStatus<
Identity: IFabricNameEnumerationResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricNameEnumerationResult_Impl::get_EnumerationStatus(this)
}
}
unsafe extern "system" fn GetNames<
Identity: IFabricNameEnumerationResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
itemcount: *mut u32,
buffereditems: *mut *mut super::FabricTypes::FABRIC_URI,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNameEnumerationResult_Impl::GetNames(
this,
core::mem::transmute_copy(&itemcount),
) {
Ok(ok__) => {
buffereditems.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_EnumerationStatus: get_EnumerationStatus::<Identity, OFFSET>,
GetNames: GetNames::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricNameEnumerationResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricNameEnumerationResult {}
windows_core::imp::define_interface!(
IFabricNetworkManagementClient,
IFabricNetworkManagementClient_Vtbl,
0xfdb754c6_69c5_4bcf_bba5_cb70c84a4398
);
windows_core::imp::interface_hierarchy!(IFabricNetworkManagementClient, windows_core::IUnknown);
impl IFabricNetworkManagementClient {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginCreateNetwork<P0, P3>(
&self,
networkname: P0,
description: *const super::FabricTypes::FABRIC_NETWORK_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginCreateNetwork)(
windows_core::Interface::as_raw(self),
networkname.param().abi(),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndCreateNetwork<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndCreateNetwork)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDeleteNetwork<P2>(
&self,
deletedescription: *const super::FabricTypes::FABRIC_DELETE_NETWORK_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDeleteNetwork)(
windows_core::Interface::as_raw(self),
deletedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDeleteNetwork<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDeleteNetwork)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetNetworkList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_NETWORK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetNetworkList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetNetworkList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetNetworkListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetNetworkList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetNetworkApplicationList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetNetworkApplicationList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetNetworkApplicationList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetNetworkApplicationListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetNetworkApplicationList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetNetworkNodeList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetNetworkNodeList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetNetworkNodeList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetNetworkNodeListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetNetworkNodeList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetApplicationNetworkList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetApplicationNetworkList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetApplicationNetworkList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetApplicationNetworkListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetApplicationNetworkList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedNetworkList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedNetworkList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedNetworkList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetDeployedNetworkListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedNetworkList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedNetworkCodePackageList<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedNetworkCodePackageList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedNetworkCodePackageList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetDeployedNetworkCodePackageListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedNetworkCodePackageList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricNetworkManagementClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginCreateNetwork: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
*const super::FabricTypes::FABRIC_NETWORK_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginCreateNetwork: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndCreateNetwork: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndCreateNetwork: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDeleteNetwork: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DELETE_NETWORK_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDeleteNetwork: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDeleteNetwork: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDeleteNetwork: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetNetworkList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_NETWORK_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetNetworkList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetNetworkList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetNetworkList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetNetworkApplicationList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetNetworkApplicationList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetNetworkApplicationList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetNetworkApplicationList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetNetworkNodeList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetNetworkNodeList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetNetworkNodeList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetNetworkNodeList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetApplicationNetworkList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetApplicationNetworkList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetApplicationNetworkList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetApplicationNetworkList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedNetworkList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedNetworkList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedNetworkList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedNetworkList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedNetworkCodePackageList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedNetworkCodePackageList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedNetworkCodePackageList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedNetworkCodePackageList: usize,
}
unsafe impl Send for IFabricNetworkManagementClient {}
unsafe impl Sync for IFabricNetworkManagementClient {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricNetworkManagementClient_Impl: windows_core::IUnknownImpl {
fn BeginCreateNetwork(
&self,
networkname: &windows_core::PCWSTR,
description: *const super::FabricTypes::FABRIC_NETWORK_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndCreateNetwork(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginDeleteNetwork(
&self,
deletedescription: *const super::FabricTypes::FABRIC_DELETE_NETWORK_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDeleteNetwork(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetNetworkList(
&self,
querydescription: *const super::FabricTypes::FABRIC_NETWORK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetNetworkList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetNetworkListResult>;
fn BeginGetNetworkApplicationList(
&self,
querydescription: *const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetNetworkApplicationList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetNetworkApplicationListResult>;
fn BeginGetNetworkNodeList(
&self,
querydescription: *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetNetworkNodeList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetNetworkNodeListResult>;
fn BeginGetApplicationNetworkList(
&self,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetApplicationNetworkList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetApplicationNetworkListResult>;
fn BeginGetDeployedNetworkList(
&self,
querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedNetworkList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetDeployedNetworkListResult>;
fn BeginGetDeployedNetworkCodePackageList(
&self,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedNetworkCodePackageList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetDeployedNetworkCodePackageListResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricNetworkManagementClient_Vtbl {
pub const fn new<Identity: IFabricNetworkManagementClient_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginCreateNetwork<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
networkname: windows_core::PCWSTR,
description: *const super::FabricTypes::FABRIC_NETWORK_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::BeginCreateNetwork(
this,
core::mem::transmute(&networkname),
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndCreateNetwork<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricNetworkManagementClient_Impl::EndCreateNetwork(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginDeleteNetwork<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
deletedescription: *const super::FabricTypes::FABRIC_DELETE_NETWORK_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::BeginDeleteNetwork(
this,
core::mem::transmute_copy(&deletedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDeleteNetwork<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricNetworkManagementClient_Impl::EndDeleteNetwork(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetNetworkList<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_NETWORK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::BeginGetNetworkList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetNetworkList<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::EndGetNetworkList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetNetworkApplicationList<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_NETWORK_APPLICATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::BeginGetNetworkApplicationList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetNetworkApplicationList<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::EndGetNetworkApplicationList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetNetworkNodeList<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_NETWORK_NODE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::BeginGetNetworkNodeList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetNetworkNodeList<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::EndGetNetworkNodeList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetApplicationNetworkList<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_APPLICATION_NETWORK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::BeginGetApplicationNetworkList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetApplicationNetworkList<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::EndGetApplicationNetworkList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetDeployedNetworkList<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::BeginGetDeployedNetworkList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedNetworkList<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::EndGetDeployedNetworkList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetDeployedNetworkCodePackageList<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_NETWORK_CODE_PACKAGE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::BeginGetDeployedNetworkCodePackageList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedNetworkCodePackageList<
Identity: IFabricNetworkManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricNetworkManagementClient_Impl::EndGetDeployedNetworkCodePackageList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginCreateNetwork: BeginCreateNetwork::<Identity, OFFSET>,
EndCreateNetwork: EndCreateNetwork::<Identity, OFFSET>,
BeginDeleteNetwork: BeginDeleteNetwork::<Identity, OFFSET>,
EndDeleteNetwork: EndDeleteNetwork::<Identity, OFFSET>,
BeginGetNetworkList: BeginGetNetworkList::<Identity, OFFSET>,
EndGetNetworkList: EndGetNetworkList::<Identity, OFFSET>,
BeginGetNetworkApplicationList: BeginGetNetworkApplicationList::<Identity, OFFSET>,
EndGetNetworkApplicationList: EndGetNetworkApplicationList::<Identity, OFFSET>,
BeginGetNetworkNodeList: BeginGetNetworkNodeList::<Identity, OFFSET>,
EndGetNetworkNodeList: EndGetNetworkNodeList::<Identity, OFFSET>,
BeginGetApplicationNetworkList: BeginGetApplicationNetworkList::<Identity, OFFSET>,
EndGetApplicationNetworkList: EndGetApplicationNetworkList::<Identity, OFFSET>,
BeginGetDeployedNetworkList: BeginGetDeployedNetworkList::<Identity, OFFSET>,
EndGetDeployedNetworkList: EndGetDeployedNetworkList::<Identity, OFFSET>,
BeginGetDeployedNetworkCodePackageList: BeginGetDeployedNetworkCodePackageList::<
Identity,
OFFSET,
>,
EndGetDeployedNetworkCodePackageList: EndGetDeployedNetworkCodePackageList::<
Identity,
OFFSET,
>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricNetworkManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricNetworkManagementClient {}
windows_core::imp::define_interface!(
IFabricNodeHealthResult,
IFabricNodeHealthResult_Vtbl,
0xe461f70b_51b8_4b73_9f35_e38e5ac68719
);
windows_core::imp::interface_hierarchy!(IFabricNodeHealthResult, windows_core::IUnknown);
impl IFabricNodeHealthResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_NodeHealth(&self) -> *const super::FabricTypes::FABRIC_NODE_HEALTH {
unsafe {
(windows_core::Interface::vtable(self).get_NodeHealth)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricNodeHealthResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub get_NodeHealth: unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_NODE_HEALTH,
#[cfg(not(all(feature = "ServiceFabric_FabricTypes", feature = "Win32")))]
get_NodeHealth: usize,
}
unsafe impl Send for IFabricNodeHealthResult {}
unsafe impl Sync for IFabricNodeHealthResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricNodeHealthResult_Impl: windows_core::IUnknownImpl {
fn get_NodeHealth(&self) -> *const super::FabricTypes::FABRIC_NODE_HEALTH;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricNodeHealthResult_Vtbl {
pub const fn new<Identity: IFabricNodeHealthResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_NodeHealth<
Identity: IFabricNodeHealthResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_NODE_HEALTH {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricNodeHealthResult_Impl::get_NodeHealth(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_NodeHealth: get_NodeHealth::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricNodeHealthResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricNodeHealthResult {}
windows_core::imp::define_interface!(
IFabricNodeTransitionProgressResult,
IFabricNodeTransitionProgressResult_Vtbl,
0x68a98626_6a1b_4dd8_ad93_74c0936e86aa
);
windows_core::imp::interface_hierarchy!(
IFabricNodeTransitionProgressResult,
windows_core::IUnknown
);
impl IFabricNodeTransitionProgressResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Progress(
&self,
) -> *const super::FabricTypes::FABRIC_NODE_TRANSITION_PROGRESS {
unsafe {
(windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricNodeTransitionProgressResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Progress:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_NODE_TRANSITION_PROGRESS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Progress: usize,
}
unsafe impl Send for IFabricNodeTransitionProgressResult {}
unsafe impl Sync for IFabricNodeTransitionProgressResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricNodeTransitionProgressResult_Impl: windows_core::IUnknownImpl {
fn get_Progress(&self) -> *const super::FabricTypes::FABRIC_NODE_TRANSITION_PROGRESS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricNodeTransitionProgressResult_Vtbl {
pub const fn new<Identity: IFabricNodeTransitionProgressResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_Progress<
Identity: IFabricNodeTransitionProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_NODE_TRANSITION_PROGRESS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricNodeTransitionProgressResult_Impl::get_Progress(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Progress: get_Progress::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricNodeTransitionProgressResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricNodeTransitionProgressResult {}
windows_core::imp::define_interface!(
IFabricOrchestrationUpgradeStatusResult,
IFabricOrchestrationUpgradeStatusResult_Vtbl,
0x95a56e4a_490d_445e_865c_ef0a62f15504
);
windows_core::imp::interface_hierarchy!(
IFabricOrchestrationUpgradeStatusResult,
windows_core::IUnknown
);
impl IFabricOrchestrationUpgradeStatusResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Progress(
&self,
) -> *const super::FabricTypes::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS {
unsafe {
(windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricOrchestrationUpgradeStatusResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_Progress : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_Progress : usize , }
unsafe impl Send for IFabricOrchestrationUpgradeStatusResult {}
unsafe impl Sync for IFabricOrchestrationUpgradeStatusResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricOrchestrationUpgradeStatusResult_Impl: windows_core::IUnknownImpl {
fn get_Progress(&self) -> *const super::FabricTypes::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricOrchestrationUpgradeStatusResult_Vtbl {
pub const fn new<
Identity: IFabricOrchestrationUpgradeStatusResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_Progress<
Identity: IFabricOrchestrationUpgradeStatusResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_ORCHESTRATION_UPGRADE_PROGRESS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricOrchestrationUpgradeStatusResult_Impl::get_Progress(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Progress: get_Progress::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricOrchestrationUpgradeStatusResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricOrchestrationUpgradeStatusResult {}
windows_core::imp::define_interface!(
IFabricPartitionDataLossProgressResult,
IFabricPartitionDataLossProgressResult_Vtbl,
0x614921e6_75f1_44e7_9107_ab88819136b8
);
windows_core::imp::interface_hierarchy!(
IFabricPartitionDataLossProgressResult,
windows_core::IUnknown
);
impl IFabricPartitionDataLossProgressResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Progress(
&self,
) -> *const super::FabricTypes::FABRIC_PARTITION_DATA_LOSS_PROGRESS {
unsafe {
(windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricPartitionDataLossProgressResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Progress:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_PARTITION_DATA_LOSS_PROGRESS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Progress: usize,
}
unsafe impl Send for IFabricPartitionDataLossProgressResult {}
unsafe impl Sync for IFabricPartitionDataLossProgressResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricPartitionDataLossProgressResult_Impl: windows_core::IUnknownImpl {
fn get_Progress(&self) -> *const super::FabricTypes::FABRIC_PARTITION_DATA_LOSS_PROGRESS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricPartitionDataLossProgressResult_Vtbl {
pub const fn new<Identity: IFabricPartitionDataLossProgressResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_Progress<
Identity: IFabricPartitionDataLossProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PARTITION_DATA_LOSS_PROGRESS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPartitionDataLossProgressResult_Impl::get_Progress(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Progress: get_Progress::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricPartitionDataLossProgressResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricPartitionDataLossProgressResult {}
windows_core::imp::define_interface!(
IFabricPartitionHealthResult,
IFabricPartitionHealthResult_Vtbl,
0x10c9e99d_bb3f_4263_a7f7_abbaf3c03576
);
windows_core::imp::interface_hierarchy!(IFabricPartitionHealthResult, windows_core::IUnknown);
impl IFabricPartitionHealthResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_PartitionHealth(&self) -> *const super::FabricTypes::FABRIC_PARTITION_HEALTH {
unsafe {
(windows_core::Interface::vtable(self).get_PartitionHealth)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricPartitionHealthResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub get_PartitionHealth:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PARTITION_HEALTH,
#[cfg(not(all(feature = "ServiceFabric_FabricTypes", feature = "Win32")))]
get_PartitionHealth: usize,
}
unsafe impl Send for IFabricPartitionHealthResult {}
unsafe impl Sync for IFabricPartitionHealthResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricPartitionHealthResult_Impl: windows_core::IUnknownImpl {
fn get_PartitionHealth(&self) -> *const super::FabricTypes::FABRIC_PARTITION_HEALTH;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricPartitionHealthResult_Vtbl {
pub const fn new<Identity: IFabricPartitionHealthResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_PartitionHealth<
Identity: IFabricPartitionHealthResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PARTITION_HEALTH {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPartitionHealthResult_Impl::get_PartitionHealth(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_PartitionHealth: get_PartitionHealth::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricPartitionHealthResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricPartitionHealthResult {}
windows_core::imp::define_interface!(
IFabricPartitionQuorumLossProgressResult,
IFabricPartitionQuorumLossProgressResult_Vtbl,
0x36d8e378_3706_403d_8d99_2afd1a120687
);
windows_core::imp::interface_hierarchy!(
IFabricPartitionQuorumLossProgressResult,
windows_core::IUnknown
);
impl IFabricPartitionQuorumLossProgressResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Progress(
&self,
) -> *const super::FabricTypes::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS {
unsafe {
(windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricPartitionQuorumLossProgressResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_Progress : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_Progress : usize , }
unsafe impl Send for IFabricPartitionQuorumLossProgressResult {}
unsafe impl Sync for IFabricPartitionQuorumLossProgressResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricPartitionQuorumLossProgressResult_Impl: windows_core::IUnknownImpl {
fn get_Progress(&self) -> *const super::FabricTypes::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricPartitionQuorumLossProgressResult_Vtbl {
pub const fn new<
Identity: IFabricPartitionQuorumLossProgressResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_Progress<
Identity: IFabricPartitionQuorumLossProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PARTITION_QUORUM_LOSS_PROGRESS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPartitionQuorumLossProgressResult_Impl::get_Progress(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Progress: get_Progress::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricPartitionQuorumLossProgressResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricPartitionQuorumLossProgressResult {}
windows_core::imp::define_interface!(
IFabricPartitionRestartProgressResult,
IFabricPartitionRestartProgressResult_Vtbl,
0xd2cb2ee1_a1ba_4cbd_80f7_14fd3d55bb61
);
windows_core::imp::interface_hierarchy!(
IFabricPartitionRestartProgressResult,
windows_core::IUnknown
);
impl IFabricPartitionRestartProgressResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Progress(
&self,
) -> *const super::FabricTypes::FABRIC_PARTITION_RESTART_PROGRESS {
unsafe {
(windows_core::Interface::vtable(self).get_Progress)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricPartitionRestartProgressResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Progress:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_PARTITION_RESTART_PROGRESS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Progress: usize,
}
unsafe impl Send for IFabricPartitionRestartProgressResult {}
unsafe impl Sync for IFabricPartitionRestartProgressResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricPartitionRestartProgressResult_Impl: windows_core::IUnknownImpl {
fn get_Progress(&self) -> *const super::FabricTypes::FABRIC_PARTITION_RESTART_PROGRESS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricPartitionRestartProgressResult_Vtbl {
pub const fn new<Identity: IFabricPartitionRestartProgressResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_Progress<
Identity: IFabricPartitionRestartProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PARTITION_RESTART_PROGRESS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPartitionRestartProgressResult_Impl::get_Progress(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Progress: get_Progress::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricPartitionRestartProgressResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricPartitionRestartProgressResult {}
windows_core::imp::define_interface!(
IFabricPropertyBatchResult,
IFabricPropertyBatchResult_Vtbl,
0xee747ff5_3fbb_46a8_adbc_47ce09c48bbe
);
windows_core::imp::interface_hierarchy!(IFabricPropertyBatchResult, windows_core::IUnknown);
impl IFabricPropertyBatchResult {
pub unsafe fn GetProperty(
&self,
operationindexinrequest: u32,
) -> windows_core::Result<IFabricPropertyValueResult> {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetProperty)(
windows_core::Interface::as_raw(self),
operationindexinrequest,
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricPropertyBatchResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
pub GetProperty: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
}
unsafe impl Send for IFabricPropertyBatchResult {}
unsafe impl Sync for IFabricPropertyBatchResult {}
pub trait IFabricPropertyBatchResult_Impl: windows_core::IUnknownImpl {
fn GetProperty(
&self,
operationindexinrequest: u32,
) -> windows_core::Result<IFabricPropertyValueResult>;
}
impl IFabricPropertyBatchResult_Vtbl {
pub const fn new<Identity: IFabricPropertyBatchResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn GetProperty<
Identity: IFabricPropertyBatchResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
operationindexinrequest: u32,
property: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyBatchResult_Impl::GetProperty(
this,
core::mem::transmute_copy(&operationindexinrequest),
) {
Ok(ok__) => {
property.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
GetProperty: GetProperty::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricPropertyBatchResult as windows_core::Interface>::IID
}
}
impl windows_core::RuntimeName for IFabricPropertyBatchResult {}
windows_core::imp::define_interface!(
IFabricPropertyEnumerationResult,
IFabricPropertyEnumerationResult_Vtbl,
0xa42da40d_a637_478d_83f3_2813871234cf
);
windows_core::imp::interface_hierarchy!(IFabricPropertyEnumerationResult, windows_core::IUnknown);
impl IFabricPropertyEnumerationResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_EnumerationStatus(&self) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_EnumerationStatus)(
windows_core::Interface::as_raw(self),
)
}
}
pub unsafe fn get_PropertyCount(&self) -> u32 {
unsafe {
(windows_core::Interface::vtable(self).get_PropertyCount)(
windows_core::Interface::as_raw(self),
)
}
}
pub unsafe fn GetProperty(
&self,
index: u32,
) -> windows_core::Result<IFabricPropertyValueResult> {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetProperty)(
windows_core::Interface::as_raw(self),
index,
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricPropertyEnumerationResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_EnumerationStatus:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_EnumerationStatus: usize,
pub get_PropertyCount: unsafe extern "system" fn(*mut core::ffi::c_void) -> u32,
pub GetProperty: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
}
unsafe impl Send for IFabricPropertyEnumerationResult {}
unsafe impl Sync for IFabricPropertyEnumerationResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricPropertyEnumerationResult_Impl: windows_core::IUnknownImpl {
fn get_EnumerationStatus(&self) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS;
fn get_PropertyCount(&self) -> u32;
fn GetProperty(&self, index: u32) -> windows_core::Result<IFabricPropertyValueResult>;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricPropertyEnumerationResult_Vtbl {
pub const fn new<Identity: IFabricPropertyEnumerationResult_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn get_EnumerationStatus<
Identity: IFabricPropertyEnumerationResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> super::FabricTypes::FABRIC_ENUMERATION_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyEnumerationResult_Impl::get_EnumerationStatus(this)
}
}
unsafe extern "system" fn get_PropertyCount<
Identity: IFabricPropertyEnumerationResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> u32 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyEnumerationResult_Impl::get_PropertyCount(this)
}
}
unsafe extern "system" fn GetProperty<
Identity: IFabricPropertyEnumerationResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
index: u32,
property: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyEnumerationResult_Impl::GetProperty(
this,
core::mem::transmute_copy(&index),
) {
Ok(ok__) => {
property.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_EnumerationStatus: get_EnumerationStatus::<Identity, OFFSET>,
get_PropertyCount: get_PropertyCount::<Identity, OFFSET>,
GetProperty: GetProperty::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricPropertyEnumerationResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricPropertyEnumerationResult {}
windows_core::imp::define_interface!(
IFabricPropertyManagementClient,
IFabricPropertyManagementClient_Vtbl,
0x26e58816_b5d5_4f08_9770_dbf0410c99d6
);
windows_core::imp::interface_hierarchy!(IFabricPropertyManagementClient, windows_core::IUnknown);
impl IFabricPropertyManagementClient {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginCreateName<P2>(
&self,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginCreateName)(
windows_core::Interface::as_raw(self),
name,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndCreateName<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndCreateName)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDeleteName<P2>(
&self,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDeleteName)(
windows_core::Interface::as_raw(self),
name,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDeleteName<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDeleteName)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginNameExists<P2>(
&self,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginNameExists)(
windows_core::Interface::as_raw(self),
name,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndNameExists<P0>(&self, context: P0) -> windows_core::Result<bool>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndNameExists)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.map(|| result__)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginEnumerateSubNames<P1, P4>(
&self,
name: super::FabricTypes::FABRIC_URI,
previousresult: P1,
recursive: bool,
timeoutmilliseconds: u32,
callback: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<IFabricNameEnumerationResult>,
P4: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginEnumerateSubNames)(
windows_core::Interface::as_raw(self),
name,
previousresult.param().abi(),
recursive,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndEnumerateSubNames<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricNameEnumerationResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndEnumerateSubNames)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginPutPropertyBinary<P1, P5>(
&self,
name: super::FabricTypes::FABRIC_URI,
propertyname: P1,
datalength: u32,
data: *const u8,
timeoutmilliseconds: u32,
callback: P5,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P5: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginPutPropertyBinary)(
windows_core::Interface::as_raw(self),
name,
propertyname.param().abi(),
datalength,
data,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndPutPropertyBinary<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndPutPropertyBinary)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginPutPropertyInt64<P1, P4>(
&self,
name: super::FabricTypes::FABRIC_URI,
propertyname: P1,
data: i64,
timeoutmilliseconds: u32,
callback: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P4: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginPutPropertyInt64)(
windows_core::Interface::as_raw(self),
name,
propertyname.param().abi(),
data,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndPutPropertyInt64<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndPutPropertyInt64)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginPutPropertyDouble<P1, P4>(
&self,
name: super::FabricTypes::FABRIC_URI,
propertyname: P1,
data: f64,
timeoutmilliseconds: u32,
callback: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P4: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginPutPropertyDouble)(
windows_core::Interface::as_raw(self),
name,
propertyname.param().abi(),
data,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndPutPropertyDouble<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndPutPropertyDouble)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginPutPropertyWString<P1, P2, P4>(
&self,
name: super::FabricTypes::FABRIC_URI,
propertyname: P1,
data: P2,
timeoutmilliseconds: u32,
callback: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<windows_core::PCWSTR>,
P4: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginPutPropertyWString)(
windows_core::Interface::as_raw(self),
name,
propertyname.param().abi(),
data.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndPutPropertyWString<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndPutPropertyWString)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginPutPropertyGuid<P1, P4>(
&self,
name: super::FabricTypes::FABRIC_URI,
propertyname: P1,
data: *const windows_core::GUID,
timeoutmilliseconds: u32,
callback: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P4: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginPutPropertyGuid)(
windows_core::Interface::as_raw(self),
name,
propertyname.param().abi(),
data,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndPutPropertyGuid<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndPutPropertyGuid)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDeleteProperty<P1, P3>(
&self,
name: super::FabricTypes::FABRIC_URI,
propertyname: P1,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDeleteProperty)(
windows_core::Interface::as_raw(self),
name,
propertyname.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDeleteProperty<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDeleteProperty)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetPropertyMetadata<P1, P3>(
&self,
name: super::FabricTypes::FABRIC_URI,
propertyname: P1,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetPropertyMetadata)(
windows_core::Interface::as_raw(self),
name,
propertyname.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetPropertyMetadata<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricPropertyMetadataResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetPropertyMetadata)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetProperty<P1, P3>(
&self,
name: super::FabricTypes::FABRIC_URI,
propertyname: P1,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<windows_core::PCWSTR>,
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetProperty)(
windows_core::Interface::as_raw(self),
name,
propertyname.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetProperty<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricPropertyValueResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetProperty)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginSubmitPropertyBatch<P4>(
&self,
name: super::FabricTypes::FABRIC_URI,
operationcount: u32,
operations: *const super::FabricTypes::FABRIC_PROPERTY_BATCH_OPERATION,
timeoutmilliseconds: u32,
callback: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P4: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginSubmitPropertyBatch)(
windows_core::Interface::as_raw(self),
name,
operationcount,
operations,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndSubmitPropertyBatch<P0>(
&self,
context: P0,
failedoperationindexinrequest: *mut u32,
) -> windows_core::Result<IFabricPropertyBatchResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndSubmitPropertyBatch)(
windows_core::Interface::as_raw(self),
context.param().abi(),
failedoperationindexinrequest as _,
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginEnumerateProperties<P2, P4>(
&self,
name: super::FabricTypes::FABRIC_URI,
includevalues: bool,
previousresult: P2,
timeoutmilliseconds: u32,
callback: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<IFabricPropertyEnumerationResult>,
P4: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginEnumerateProperties)(
windows_core::Interface::as_raw(self),
name,
includevalues,
previousresult.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndEnumerateProperties<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricPropertyEnumerationResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndEnumerateProperties)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricPropertyManagementClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginCreateName: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginCreateName: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndCreateName: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndCreateName: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDeleteName: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDeleteName: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDeleteName: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDeleteName: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginNameExists: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginNameExists: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndNameExists: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut bool,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndNameExists: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginEnumerateSubNames: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
*mut core::ffi::c_void,
bool,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginEnumerateSubNames: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndEnumerateSubNames: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndEnumerateSubNames: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginPutPropertyBinary: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
u32,
*const u8,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginPutPropertyBinary: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndPutPropertyBinary: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndPutPropertyBinary: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginPutPropertyInt64: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
i64,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginPutPropertyInt64: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndPutPropertyInt64: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndPutPropertyInt64: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginPutPropertyDouble: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
f64,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginPutPropertyDouble: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndPutPropertyDouble: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndPutPropertyDouble: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginPutPropertyWString: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginPutPropertyWString: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndPutPropertyWString: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndPutPropertyWString: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginPutPropertyGuid: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
*const windows_core::GUID,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginPutPropertyGuid: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndPutPropertyGuid: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndPutPropertyGuid: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDeleteProperty: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDeleteProperty: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDeleteProperty: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDeleteProperty: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetPropertyMetadata: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetPropertyMetadata: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetPropertyMetadata: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetPropertyMetadata: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetProperty: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetProperty: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetProperty: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetProperty: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginSubmitPropertyBatch: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*const super::FabricTypes::FABRIC_PROPERTY_BATCH_OPERATION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginSubmitPropertyBatch: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndSubmitPropertyBatch: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut u32,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndSubmitPropertyBatch: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginEnumerateProperties: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
bool,
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginEnumerateProperties: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndEnumerateProperties: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndEnumerateProperties: usize,
}
unsafe impl Send for IFabricPropertyManagementClient {}
unsafe impl Sync for IFabricPropertyManagementClient {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricPropertyManagementClient_Impl: windows_core::IUnknownImpl {
fn BeginCreateName(
&self,
name: &super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndCreateName(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginDeleteName(
&self,
name: &super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDeleteName(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginNameExists(
&self,
name: &super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndNameExists(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<bool>;
fn BeginEnumerateSubNames(
&self,
name: &super::FabricTypes::FABRIC_URI,
previousresult: windows_core::Ref<IFabricNameEnumerationResult>,
recursive: bool,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndEnumerateSubNames(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricNameEnumerationResult>;
fn BeginPutPropertyBinary(
&self,
name: &super::FabricTypes::FABRIC_URI,
propertyname: &windows_core::PCWSTR,
datalength: u32,
data: *const u8,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndPutPropertyBinary(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginPutPropertyInt64(
&self,
name: &super::FabricTypes::FABRIC_URI,
propertyname: &windows_core::PCWSTR,
data: i64,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndPutPropertyInt64(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginPutPropertyDouble(
&self,
name: &super::FabricTypes::FABRIC_URI,
propertyname: &windows_core::PCWSTR,
data: f64,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndPutPropertyDouble(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginPutPropertyWString(
&self,
name: &super::FabricTypes::FABRIC_URI,
propertyname: &windows_core::PCWSTR,
data: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndPutPropertyWString(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginPutPropertyGuid(
&self,
name: &super::FabricTypes::FABRIC_URI,
propertyname: &windows_core::PCWSTR,
data: *const windows_core::GUID,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndPutPropertyGuid(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginDeleteProperty(
&self,
name: &super::FabricTypes::FABRIC_URI,
propertyname: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDeleteProperty(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetPropertyMetadata(
&self,
name: &super::FabricTypes::FABRIC_URI,
propertyname: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetPropertyMetadata(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricPropertyMetadataResult>;
fn BeginGetProperty(
&self,
name: &super::FabricTypes::FABRIC_URI,
propertyname: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetProperty(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricPropertyValueResult>;
fn BeginSubmitPropertyBatch(
&self,
name: &super::FabricTypes::FABRIC_URI,
operationcount: u32,
operations: *const super::FabricTypes::FABRIC_PROPERTY_BATCH_OPERATION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndSubmitPropertyBatch(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
failedoperationindexinrequest: *mut u32,
) -> windows_core::Result<IFabricPropertyBatchResult>;
fn BeginEnumerateProperties(
&self,
name: &super::FabricTypes::FABRIC_URI,
includevalues: bool,
previousresult: windows_core::Ref<IFabricPropertyEnumerationResult>,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndEnumerateProperties(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricPropertyEnumerationResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricPropertyManagementClient_Vtbl {
pub const fn new<Identity: IFabricPropertyManagementClient_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginCreateName<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginCreateName(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndCreateName<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyManagementClient_Impl::EndCreateName(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginDeleteName<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginDeleteName(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDeleteName<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyManagementClient_Impl::EndDeleteName(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginNameExists<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginNameExists(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndNameExists<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
value: *mut bool,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::EndNameExists(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
value.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginEnumerateSubNames<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
previousresult: *mut core::ffi::c_void,
recursive: bool,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginEnumerateSubNames(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&previousresult),
core::mem::transmute_copy(&recursive),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndEnumerateSubNames<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::EndEnumerateSubNames(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginPutPropertyBinary<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginPutPropertyBinary(
this,
core::mem::transmute(&name),
core::mem::transmute(&propertyname),
core::mem::transmute_copy(&datalength),
core::mem::transmute_copy(&data),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndPutPropertyBinary<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyManagementClient_Impl::EndPutPropertyBinary(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginPutPropertyInt64<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
propertyname: windows_core::PCWSTR,
data: i64,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginPutPropertyInt64(
this,
core::mem::transmute(&name),
core::mem::transmute(&propertyname),
core::mem::transmute_copy(&data),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndPutPropertyInt64<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyManagementClient_Impl::EndPutPropertyInt64(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginPutPropertyDouble<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
propertyname: windows_core::PCWSTR,
data: f64,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginPutPropertyDouble(
this,
core::mem::transmute(&name),
core::mem::transmute(&propertyname),
core::mem::transmute_copy(&data),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndPutPropertyDouble<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyManagementClient_Impl::EndPutPropertyDouble(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginPutPropertyWString<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginPutPropertyWString(
this,
core::mem::transmute(&name),
core::mem::transmute(&propertyname),
core::mem::transmute(&data),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndPutPropertyWString<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyManagementClient_Impl::EndPutPropertyWString(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginPutPropertyGuid<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginPutPropertyGuid(
this,
core::mem::transmute(&name),
core::mem::transmute(&propertyname),
core::mem::transmute_copy(&data),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndPutPropertyGuid<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyManagementClient_Impl::EndPutPropertyGuid(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginDeleteProperty<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
propertyname: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginDeleteProperty(
this,
core::mem::transmute(&name),
core::mem::transmute(&propertyname),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDeleteProperty<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyManagementClient_Impl::EndDeleteProperty(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetPropertyMetadata<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
propertyname: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginGetPropertyMetadata(
this,
core::mem::transmute(&name),
core::mem::transmute(&propertyname),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetPropertyMetadata<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::EndGetPropertyMetadata(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetProperty<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
propertyname: windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginGetProperty(
this,
core::mem::transmute(&name),
core::mem::transmute(&propertyname),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetProperty<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::EndGetProperty(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginSubmitPropertyBatch<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
operationcount: u32,
operations: *const super::FabricTypes::FABRIC_PROPERTY_BATCH_OPERATION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginSubmitPropertyBatch(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&operationcount),
core::mem::transmute_copy(&operations),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndSubmitPropertyBatch<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
failedoperationindexinrequest: *mut u32,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::EndSubmitPropertyBatch(
this,
core::mem::transmute_copy(&context),
core::mem::transmute_copy(&failedoperationindexinrequest),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginEnumerateProperties<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
includevalues: bool,
previousresult: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::BeginEnumerateProperties(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&includevalues),
core::mem::transmute_copy(&previousresult),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndEnumerateProperties<
Identity: IFabricPropertyManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient_Impl::EndEnumerateProperties(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginCreateName: BeginCreateName::<Identity, OFFSET>,
EndCreateName: EndCreateName::<Identity, OFFSET>,
BeginDeleteName: BeginDeleteName::<Identity, OFFSET>,
EndDeleteName: EndDeleteName::<Identity, OFFSET>,
BeginNameExists: BeginNameExists::<Identity, OFFSET>,
EndNameExists: EndNameExists::<Identity, OFFSET>,
BeginEnumerateSubNames: BeginEnumerateSubNames::<Identity, OFFSET>,
EndEnumerateSubNames: EndEnumerateSubNames::<Identity, OFFSET>,
BeginPutPropertyBinary: BeginPutPropertyBinary::<Identity, OFFSET>,
EndPutPropertyBinary: EndPutPropertyBinary::<Identity, OFFSET>,
BeginPutPropertyInt64: BeginPutPropertyInt64::<Identity, OFFSET>,
EndPutPropertyInt64: EndPutPropertyInt64::<Identity, OFFSET>,
BeginPutPropertyDouble: BeginPutPropertyDouble::<Identity, OFFSET>,
EndPutPropertyDouble: EndPutPropertyDouble::<Identity, OFFSET>,
BeginPutPropertyWString: BeginPutPropertyWString::<Identity, OFFSET>,
EndPutPropertyWString: EndPutPropertyWString::<Identity, OFFSET>,
BeginPutPropertyGuid: BeginPutPropertyGuid::<Identity, OFFSET>,
EndPutPropertyGuid: EndPutPropertyGuid::<Identity, OFFSET>,
BeginDeleteProperty: BeginDeleteProperty::<Identity, OFFSET>,
EndDeleteProperty: EndDeleteProperty::<Identity, OFFSET>,
BeginGetPropertyMetadata: BeginGetPropertyMetadata::<Identity, OFFSET>,
EndGetPropertyMetadata: EndGetPropertyMetadata::<Identity, OFFSET>,
BeginGetProperty: BeginGetProperty::<Identity, OFFSET>,
EndGetProperty: EndGetProperty::<Identity, OFFSET>,
BeginSubmitPropertyBatch: BeginSubmitPropertyBatch::<Identity, OFFSET>,
EndSubmitPropertyBatch: EndSubmitPropertyBatch::<Identity, OFFSET>,
BeginEnumerateProperties: BeginEnumerateProperties::<Identity, OFFSET>,
EndEnumerateProperties: EndEnumerateProperties::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricPropertyManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricPropertyManagementClient {}
windows_core::imp::define_interface!(
IFabricPropertyManagementClient2,
IFabricPropertyManagementClient2_Vtbl,
0x04991c28_3f9d_4a49_9322_a56d308965fd
);
impl core::ops::Deref for IFabricPropertyManagementClient2 {
type Target = IFabricPropertyManagementClient;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricPropertyManagementClient2,
windows_core::IUnknown,
IFabricPropertyManagementClient
);
impl IFabricPropertyManagementClient2 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginPutCustomPropertyOperation<P3>(
&self,
name: super::FabricTypes::FABRIC_URI,
propertyoperation: *const super::FabricTypes::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginPutCustomPropertyOperation)(
windows_core::Interface::as_raw(self),
name,
propertyoperation,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndPutCustomPropertyOperation<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndPutCustomPropertyOperation)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricPropertyManagementClient2_Vtbl {
pub base__: IFabricPropertyManagementClient_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginPutCustomPropertyOperation: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
*const super::FabricTypes::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginPutCustomPropertyOperation: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndPutCustomPropertyOperation: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndPutCustomPropertyOperation: usize,
}
unsafe impl Send for IFabricPropertyManagementClient2 {}
unsafe impl Sync for IFabricPropertyManagementClient2 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricPropertyManagementClient2_Impl: IFabricPropertyManagementClient_Impl {
fn BeginPutCustomPropertyOperation(
&self,
name: &super::FabricTypes::FABRIC_URI,
propertyoperation: *const super::FabricTypes::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndPutCustomPropertyOperation(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricPropertyManagementClient2_Vtbl {
pub const fn new<Identity: IFabricPropertyManagementClient2_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginPutCustomPropertyOperation<
Identity: IFabricPropertyManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
propertyoperation: *const super::FabricTypes::FABRIC_PUT_CUSTOM_PROPERTY_OPERATION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyManagementClient2_Impl::BeginPutCustomPropertyOperation(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&propertyoperation),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndPutCustomPropertyOperation<
Identity: IFabricPropertyManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyManagementClient2_Impl::EndPutCustomPropertyOperation(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricPropertyManagementClient_Vtbl::new::<Identity, OFFSET>(),
BeginPutCustomPropertyOperation: BeginPutCustomPropertyOperation::<Identity, OFFSET>,
EndPutCustomPropertyOperation: EndPutCustomPropertyOperation::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricPropertyManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricPropertyManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricPropertyManagementClient2 {}
windows_core::imp::define_interface!(
IFabricPropertyMetadataResult,
IFabricPropertyMetadataResult_Vtbl,
0x33302306_fb8d_4831_b493_57efcc772462
);
windows_core::imp::interface_hierarchy!(IFabricPropertyMetadataResult, windows_core::IUnknown);
impl IFabricPropertyMetadataResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_Metadata(&self) -> *const super::FabricTypes::FABRIC_NAMED_PROPERTY_METADATA {
unsafe {
(windows_core::Interface::vtable(self).get_Metadata)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricPropertyMetadataResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub get_Metadata:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_NAMED_PROPERTY_METADATA,
#[cfg(not(all(feature = "ServiceFabric_FabricTypes", feature = "Win32")))]
get_Metadata: usize,
}
unsafe impl Send for IFabricPropertyMetadataResult {}
unsafe impl Sync for IFabricPropertyMetadataResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricPropertyMetadataResult_Impl: windows_core::IUnknownImpl {
fn get_Metadata(&self) -> *const super::FabricTypes::FABRIC_NAMED_PROPERTY_METADATA;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricPropertyMetadataResult_Vtbl {
pub const fn new<Identity: IFabricPropertyMetadataResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Metadata<
Identity: IFabricPropertyMetadataResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_NAMED_PROPERTY_METADATA {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyMetadataResult_Impl::get_Metadata(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Metadata: get_Metadata::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricPropertyMetadataResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricPropertyMetadataResult {}
windows_core::imp::define_interface!(
IFabricPropertyValueResult,
IFabricPropertyValueResult_Vtbl,
0x9a518b49_9903_4b8f_834e_1979e9c6745e
);
windows_core::imp::interface_hierarchy!(IFabricPropertyValueResult, windows_core::IUnknown);
impl IFabricPropertyValueResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_Property(&self) -> *const super::FabricTypes::FABRIC_NAMED_PROPERTY {
unsafe {
(windows_core::Interface::vtable(self).get_Property)(windows_core::Interface::as_raw(
self,
))
}
}
pub unsafe fn GetValueAsBinary(&self, bytecount: *mut u32) -> windows_core::Result<*mut u8> {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetValueAsBinary)(
windows_core::Interface::as_raw(self),
bytecount as _,
&mut result__,
)
.map(|| result__)
}
}
pub unsafe fn GetValueAsInt64(&self) -> windows_core::Result<i64> {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetValueAsInt64)(
windows_core::Interface::as_raw(self),
&mut result__,
)
.map(|| result__)
}
}
pub unsafe fn GetValueAsDouble(&self) -> windows_core::Result<f64> {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetValueAsDouble)(
windows_core::Interface::as_raw(self),
&mut result__,
)
.map(|| result__)
}
}
pub unsafe fn GetValueAsWString(&self) -> windows_core::Result<windows_core::PCWSTR> {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetValueAsWString)(
windows_core::Interface::as_raw(self),
&mut result__,
)
.map(|| result__)
}
}
pub unsafe fn GetValueAsGuid(&self) -> windows_core::Result<windows_core::GUID> {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetValueAsGuid)(
windows_core::Interface::as_raw(self),
&mut result__,
)
.map(|| result__)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricPropertyValueResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub get_Property: unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_NAMED_PROPERTY,
#[cfg(not(all(feature = "ServiceFabric_FabricTypes", feature = "Win32")))]
get_Property: usize,
pub GetValueAsBinary: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut u32,
*mut *mut u8,
) -> windows_core::HRESULT,
pub GetValueAsInt64:
unsafe extern "system" fn(*mut core::ffi::c_void, *mut i64) -> windows_core::HRESULT,
pub GetValueAsDouble:
unsafe extern "system" fn(*mut core::ffi::c_void, *mut f64) -> windows_core::HRESULT,
pub GetValueAsWString: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut windows_core::PCWSTR,
) -> windows_core::HRESULT,
pub GetValueAsGuid: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut windows_core::GUID,
) -> windows_core::HRESULT,
}
unsafe impl Send for IFabricPropertyValueResult {}
unsafe impl Sync for IFabricPropertyValueResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricPropertyValueResult_Impl: windows_core::IUnknownImpl {
fn get_Property(&self) -> *const super::FabricTypes::FABRIC_NAMED_PROPERTY;
fn GetValueAsBinary(&self, bytecount: *mut u32) -> windows_core::Result<*mut u8>;
fn GetValueAsInt64(&self) -> windows_core::Result<i64>;
fn GetValueAsDouble(&self) -> windows_core::Result<f64>;
fn GetValueAsWString(&self) -> windows_core::Result<windows_core::PCWSTR>;
fn GetValueAsGuid(&self) -> windows_core::Result<windows_core::GUID>;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricPropertyValueResult_Vtbl {
pub const fn new<Identity: IFabricPropertyValueResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Property<
Identity: IFabricPropertyValueResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_NAMED_PROPERTY {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricPropertyValueResult_Impl::get_Property(this)
}
}
unsafe extern "system" fn GetValueAsBinary<
Identity: IFabricPropertyValueResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
bytecount: *mut u32,
bufferedvalue: *mut *mut u8,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyValueResult_Impl::GetValueAsBinary(
this,
core::mem::transmute_copy(&bytecount),
) {
Ok(ok__) => {
bufferedvalue.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn GetValueAsInt64<
Identity: IFabricPropertyValueResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
value: *mut i64,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyValueResult_Impl::GetValueAsInt64(this) {
Ok(ok__) => {
value.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn GetValueAsDouble<
Identity: IFabricPropertyValueResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
value: *mut f64,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyValueResult_Impl::GetValueAsDouble(this) {
Ok(ok__) => {
value.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn GetValueAsWString<
Identity: IFabricPropertyValueResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
bufferedvalue: *mut windows_core::PCWSTR,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyValueResult_Impl::GetValueAsWString(this) {
Ok(ok__) => {
bufferedvalue.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn GetValueAsGuid<
Identity: IFabricPropertyValueResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
value: *mut windows_core::GUID,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricPropertyValueResult_Impl::GetValueAsGuid(this) {
Ok(ok__) => {
value.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Property: get_Property::<Identity, OFFSET>,
GetValueAsBinary: GetValueAsBinary::<Identity, OFFSET>,
GetValueAsInt64: GetValueAsInt64::<Identity, OFFSET>,
GetValueAsDouble: GetValueAsDouble::<Identity, OFFSET>,
GetValueAsWString: GetValueAsWString::<Identity, OFFSET>,
GetValueAsGuid: GetValueAsGuid::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricPropertyValueResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricPropertyValueResult {}
windows_core::imp::define_interface!(
IFabricQueryClient,
IFabricQueryClient_Vtbl,
0xc629e422_90ba_4efd_8f64_cecf51bc3df0
);
windows_core::imp::interface_hierarchy!(IFabricQueryClient, windows_core::IUnknown);
impl IFabricQueryClient {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetNodeList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_NODE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetNodeList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetNodeList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetNodeListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetNodeList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetApplicationTypeList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetApplicationTypeList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetApplicationTypeList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetApplicationTypeListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetApplicationTypeList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetServiceTypeList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetServiceTypeList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetServiceTypeList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetServiceTypeListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetServiceTypeList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetApplicationList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetApplicationList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetApplicationList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetApplicationListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetApplicationList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetServiceList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetServiceList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetServiceList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetServiceListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetServiceList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetPartitionList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetPartitionList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetPartitionList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetPartitionListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetPartitionList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetReplicaList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetReplicaList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetReplicaList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetReplicaListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetReplicaList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedApplicationList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedApplicationList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedApplicationList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetDeployedApplicationListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedApplicationList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedServicePackageList<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedServicePackageList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedServicePackageList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetDeployedServicePackageListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedServicePackageList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedServiceTypeList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedServiceTypeList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedServiceTypeList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetDeployedServiceTypeListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedServiceTypeList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedCodePackageList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedCodePackageList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedCodePackageList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetDeployedCodePackageListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedCodePackageList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedReplicaList<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedReplicaList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedReplicaList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetDeployedReplicaListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedReplicaList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetNodeList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_NODE_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetNodeList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetNodeList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetNodeList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetApplicationTypeList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetApplicationTypeList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetApplicationTypeList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetApplicationTypeList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetServiceTypeList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetServiceTypeList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetServiceTypeList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetServiceTypeList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetApplicationList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_APPLICATION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetApplicationList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetApplicationList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetApplicationList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetServiceList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetServiceList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetServiceList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetServiceList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetPartitionList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetPartitionList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetPartitionList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetPartitionList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetReplicaList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetReplicaList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetReplicaList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetReplicaList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedApplicationList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedApplicationList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedApplicationList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedApplicationList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedServicePackageList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedServicePackageList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedServicePackageList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedServicePackageList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedServiceTypeList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedServiceTypeList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedServiceTypeList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedServiceTypeList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedCodePackageList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedCodePackageList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedCodePackageList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedCodePackageList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedReplicaList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedReplicaList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedReplicaList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedReplicaList: usize,
}
unsafe impl Send for IFabricQueryClient {}
unsafe impl Sync for IFabricQueryClient {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient_Impl: windows_core::IUnknownImpl {
fn BeginGetNodeList(
&self,
querydescription: *const super::FabricTypes::FABRIC_NODE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetNodeList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetNodeListResult>;
fn BeginGetApplicationTypeList(
&self,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetApplicationTypeList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetApplicationTypeListResult>;
fn BeginGetServiceTypeList(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetServiceTypeList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetServiceTypeListResult>;
fn BeginGetApplicationList(
&self,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetApplicationList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetApplicationListResult>;
fn BeginGetServiceList(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetServiceList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetServiceListResult>;
fn BeginGetPartitionList(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetPartitionList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetPartitionListResult>;
fn BeginGetReplicaList(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetReplicaList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetReplicaListResult>;
fn BeginGetDeployedApplicationList(
&self,
querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedApplicationList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetDeployedApplicationListResult>;
fn BeginGetDeployedServicePackageList(
&self,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedServicePackageList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetDeployedServicePackageListResult>;
fn BeginGetDeployedServiceTypeList(
&self,
querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedServiceTypeList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetDeployedServiceTypeListResult>;
fn BeginGetDeployedCodePackageList(
&self,
querydescription: *const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedCodePackageList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetDeployedCodePackageListResult>;
fn BeginGetDeployedReplicaList(
&self,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedReplicaList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetDeployedReplicaListResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient_Vtbl {
pub const fn new<Identity: IFabricQueryClient_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetNodeList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_NODE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::BeginGetNodeList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetNodeList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::EndGetNodeList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetApplicationTypeList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::BeginGetApplicationTypeList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetApplicationTypeList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::EndGetApplicationTypeList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetServiceTypeList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::BeginGetServiceTypeList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetServiceTypeList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::EndGetServiceTypeList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetApplicationList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::BeginGetApplicationList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetApplicationList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::EndGetApplicationList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetServiceList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::BeginGetServiceList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetServiceList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::EndGetServiceList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetPartitionList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_PARTITION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::BeginGetPartitionList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetPartitionList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::EndGetPartitionList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetReplicaList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_REPLICA_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::BeginGetReplicaList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetReplicaList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::EndGetReplicaList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetDeployedApplicationList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_APPLICATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::BeginGetDeployedApplicationList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedApplicationList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::EndGetDeployedApplicationList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetDeployedServicePackageList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::BeginGetDeployedServicePackageList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedServicePackageList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::EndGetDeployedServicePackageList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetDeployedServiceTypeList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::BeginGetDeployedServiceTypeList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedServiceTypeList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::EndGetDeployedServiceTypeList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetDeployedCodePackageList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::BeginGetDeployedCodePackageList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedCodePackageList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::EndGetDeployedCodePackageList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetDeployedReplicaList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::BeginGetDeployedReplicaList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedReplicaList<
Identity: IFabricQueryClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient_Impl::EndGetDeployedReplicaList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginGetNodeList: BeginGetNodeList::<Identity, OFFSET>,
EndGetNodeList: EndGetNodeList::<Identity, OFFSET>,
BeginGetApplicationTypeList: BeginGetApplicationTypeList::<Identity, OFFSET>,
EndGetApplicationTypeList: EndGetApplicationTypeList::<Identity, OFFSET>,
BeginGetServiceTypeList: BeginGetServiceTypeList::<Identity, OFFSET>,
EndGetServiceTypeList: EndGetServiceTypeList::<Identity, OFFSET>,
BeginGetApplicationList: BeginGetApplicationList::<Identity, OFFSET>,
EndGetApplicationList: EndGetApplicationList::<Identity, OFFSET>,
BeginGetServiceList: BeginGetServiceList::<Identity, OFFSET>,
EndGetServiceList: EndGetServiceList::<Identity, OFFSET>,
BeginGetPartitionList: BeginGetPartitionList::<Identity, OFFSET>,
EndGetPartitionList: EndGetPartitionList::<Identity, OFFSET>,
BeginGetReplicaList: BeginGetReplicaList::<Identity, OFFSET>,
EndGetReplicaList: EndGetReplicaList::<Identity, OFFSET>,
BeginGetDeployedApplicationList: BeginGetDeployedApplicationList::<Identity, OFFSET>,
EndGetDeployedApplicationList: EndGetDeployedApplicationList::<Identity, OFFSET>,
BeginGetDeployedServicePackageList: BeginGetDeployedServicePackageList::<
Identity,
OFFSET,
>,
EndGetDeployedServicePackageList: EndGetDeployedServicePackageList::<Identity, OFFSET>,
BeginGetDeployedServiceTypeList: BeginGetDeployedServiceTypeList::<Identity, OFFSET>,
EndGetDeployedServiceTypeList: EndGetDeployedServiceTypeList::<Identity, OFFSET>,
BeginGetDeployedCodePackageList: BeginGetDeployedCodePackageList::<Identity, OFFSET>,
EndGetDeployedCodePackageList: EndGetDeployedCodePackageList::<Identity, OFFSET>,
BeginGetDeployedReplicaList: BeginGetDeployedReplicaList::<Identity, OFFSET>,
EndGetDeployedReplicaList: EndGetDeployedReplicaList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient {}
windows_core::imp::define_interface!(
IFabricQueryClient10,
IFabricQueryClient10_Vtbl,
0x02139da8_7140_42ae_8403_79a551600e63
);
impl core::ops::Deref for IFabricQueryClient10 {
type Target = IFabricQueryClient9;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricQueryClient10,
windows_core::IUnknown,
IFabricQueryClient,
IFabricQueryClient2,
IFabricQueryClient3,
IFabricQueryClient4,
IFabricQueryClient5,
IFabricQueryClient6,
IFabricQueryClient7,
IFabricQueryClient8,
IFabricQueryClient9
);
impl IFabricQueryClient10 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedApplicationPagedList<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedApplicationPagedList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedApplicationPagedList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetDeployedApplicationPagedListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedApplicationPagedList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient10_Vtbl {
pub base__: IFabricQueryClient9_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedApplicationPagedList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedApplicationPagedList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedApplicationPagedList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedApplicationPagedList: usize,
}
unsafe impl Send for IFabricQueryClient10 {}
unsafe impl Sync for IFabricQueryClient10 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient10_Impl: IFabricQueryClient9_Impl {
fn BeginGetDeployedApplicationPagedList(
&self,
querydescription : * const super::FabricTypes::FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedApplicationPagedList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetDeployedApplicationPagedListResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient10_Vtbl {
pub const fn new<Identity: IFabricQueryClient10_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetDeployedApplicationPagedList<
Identity: IFabricQueryClient10_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_PAGED_DEPLOYED_APPLICATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient10_Impl::BeginGetDeployedApplicationPagedList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedApplicationPagedList<
Identity: IFabricQueryClient10_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient10_Impl::EndGetDeployedApplicationPagedList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricQueryClient9_Vtbl::new::<Identity, OFFSET>(),
BeginGetDeployedApplicationPagedList: BeginGetDeployedApplicationPagedList::<
Identity,
OFFSET,
>,
EndGetDeployedApplicationPagedList: EndGetDeployedApplicationPagedList::<
Identity,
OFFSET,
>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient10 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient2 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient3 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient4 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient5 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient6 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient7 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient8 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient9 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient10 {}
windows_core::imp::define_interface!(
IFabricQueryClient11,
IFabricQueryClient11_Vtbl,
0x5699e886_9e09_4833_9e49_f058725573f9
);
impl core::ops::Deref for IFabricQueryClient11 {
type Target = IFabricQueryClient10;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricQueryClient11,
windows_core::IUnknown,
IFabricQueryClient,
IFabricQueryClient2,
IFabricQueryClient3,
IFabricQueryClient4,
IFabricQueryClient5,
IFabricQueryClient6,
IFabricQueryClient7,
IFabricQueryClient8,
IFabricQueryClient9,
IFabricQueryClient10
);
impl IFabricQueryClient11 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedServicePackagePagedList<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_PAGED_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedServicePackagePagedList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedServicePackagePagedList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetDeployedServicePackagePagedListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedServicePackagePagedList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient11_Vtbl {
pub base__: IFabricQueryClient10_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedServicePackagePagedList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_PAGED_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedServicePackagePagedList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedServicePackagePagedList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedServicePackagePagedList: usize,
}
unsafe impl Send for IFabricQueryClient11 {}
unsafe impl Sync for IFabricQueryClient11 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient11_Impl: IFabricQueryClient10_Impl {
fn BeginGetDeployedServicePackagePagedList(
&self,
querydescription : * const super::FabricTypes::FABRIC_PAGED_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedServicePackagePagedList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetDeployedServicePackagePagedListResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient11_Vtbl {
pub const fn new<Identity: IFabricQueryClient11_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetDeployedServicePackagePagedList<
Identity: IFabricQueryClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_PAGED_DEPLOYED_SERVICE_PACKAGE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient11_Impl::BeginGetDeployedServicePackagePagedList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedServicePackagePagedList<
Identity: IFabricQueryClient11_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient11_Impl::EndGetDeployedServicePackagePagedList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricQueryClient10_Vtbl::new::<Identity, OFFSET>(),
BeginGetDeployedServicePackagePagedList: BeginGetDeployedServicePackagePagedList::<
Identity,
OFFSET,
>,
EndGetDeployedServicePackagePagedList: EndGetDeployedServicePackagePagedList::<
Identity,
OFFSET,
>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient11 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient2 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient3 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient4 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient5 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient6 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient7 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient8 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient9 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient10 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient11 {}
windows_core::imp::define_interface!(
IFabricQueryClient12,
IFabricQueryClient12_Vtbl,
0xdf4b78ee_61a7_4e64_a359_bb005d35f7dd
);
impl core::ops::Deref for IFabricQueryClient12 {
type Target = IFabricQueryClient11;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricQueryClient12,
windows_core::IUnknown,
IFabricQueryClient,
IFabricQueryClient2,
IFabricQueryClient3,
IFabricQueryClient4,
IFabricQueryClient5,
IFabricQueryClient6,
IFabricQueryClient7,
IFabricQueryClient8,
IFabricQueryClient9,
IFabricQueryClient10,
IFabricQueryClient11
);
impl IFabricQueryClient12 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetLoadedPartitionInfoList<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_LOADED_PARTITION_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetLoadedPartitionInfoList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetLoadedPartitionInfoList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetGetLoadedPartitionInfoListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetLoadedPartitionInfoList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient12_Vtbl {
pub base__: IFabricQueryClient11_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetLoadedPartitionInfoList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_LOADED_PARTITION_INFORMATION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetLoadedPartitionInfoList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetLoadedPartitionInfoList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetLoadedPartitionInfoList: usize,
}
unsafe impl Send for IFabricQueryClient12 {}
unsafe impl Sync for IFabricQueryClient12 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient12_Impl: IFabricQueryClient11_Impl {
fn BeginGetLoadedPartitionInfoList(
&self,
querydescription : * const super::FabricTypes::FABRIC_LOADED_PARTITION_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetLoadedPartitionInfoList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetGetLoadedPartitionInfoListResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient12_Vtbl {
pub const fn new<Identity: IFabricQueryClient12_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetLoadedPartitionInfoList<
Identity: IFabricQueryClient12_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_LOADED_PARTITION_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient12_Impl::BeginGetLoadedPartitionInfoList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetLoadedPartitionInfoList<
Identity: IFabricQueryClient12_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient12_Impl::EndGetLoadedPartitionInfoList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricQueryClient11_Vtbl::new::<Identity, OFFSET>(),
BeginGetLoadedPartitionInfoList: BeginGetLoadedPartitionInfoList::<Identity, OFFSET>,
EndGetLoadedPartitionInfoList: EndGetLoadedPartitionInfoList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient12 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient2 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient3 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient4 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient5 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient6 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient7 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient8 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient9 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient10 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient11 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient12 {}
windows_core::imp::define_interface!(
IFabricQueryClient13,
IFabricQueryClient13_Vtbl,
0xdf4b78ee_61a7_4e64_a359_555333d5f7dd
);
impl core::ops::Deref for IFabricQueryClient13 {
type Target = IFabricQueryClient12;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricQueryClient13,
windows_core::IUnknown,
IFabricQueryClient,
IFabricQueryClient2,
IFabricQueryClient3,
IFabricQueryClient4,
IFabricQueryClient5,
IFabricQueryClient6,
IFabricQueryClient7,
IFabricQueryClient8,
IFabricQueryClient9,
IFabricQueryClient10,
IFabricQueryClient11,
IFabricQueryClient12
);
impl IFabricQueryClient13 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetBlockList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_BLOCK_LIST_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetBlockList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetBlockList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetBlockListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetBlockList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient13_Vtbl {
pub base__: IFabricQueryClient12_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetBlockList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_BLOCK_LIST_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetBlockList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetBlockList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetBlockList: usize,
}
unsafe impl Send for IFabricQueryClient13 {}
unsafe impl Sync for IFabricQueryClient13 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient13_Impl: IFabricQueryClient12_Impl {
fn BeginGetBlockList(
&self,
querydescription: *const super::FabricTypes::FABRIC_BLOCK_LIST_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetBlockList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetBlockListResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient13_Vtbl {
pub const fn new<Identity: IFabricQueryClient13_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetBlockList<
Identity: IFabricQueryClient13_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_BLOCK_LIST_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient13_Impl::BeginGetBlockList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetBlockList<
Identity: IFabricQueryClient13_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient13_Impl::EndGetBlockList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricQueryClient12_Vtbl::new::<Identity, OFFSET>(),
BeginGetBlockList: BeginGetBlockList::<Identity, OFFSET>,
EndGetBlockList: EndGetBlockList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient13 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient2 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient3 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient4 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient5 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient6 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient7 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient8 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient9 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient10 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient11 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient12 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient13 {}
windows_core::imp::define_interface!(
IFabricQueryClient2,
IFabricQueryClient2_Vtbl,
0x4e6d5d61_24c8_4240_a2e8_bcb1fc15d9af
);
impl core::ops::Deref for IFabricQueryClient2 {
type Target = IFabricQueryClient;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricQueryClient2,
windows_core::IUnknown,
IFabricQueryClient
);
impl IFabricQueryClient2 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetDeployedReplicaDetail<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetDeployedReplicaDetail)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetDeployedReplicaDetail<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetDeployedServiceReplicaDetailResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetDeployedReplicaDetail)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetClusterLoadInformation<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetClusterLoadInformation)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetClusterLoadInformation<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetClusterLoadInformationResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetClusterLoadInformation)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetPartitionLoadInformation<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetPartitionLoadInformation)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetPartitionLoadInformation<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetPartitionLoadInformationResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetPartitionLoadInformation)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetProvisionedFabricCodeVersionList<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetProvisionedFabricCodeVersionList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetProvisionedFabricCodeVersionList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetProvisionedCodeVersionListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetProvisionedFabricCodeVersionList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetProvisionedFabricConfigVersionList<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetProvisionedFabricConfigVersionList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetProvisionedFabricConfigVersionList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetProvisionedConfigVersionListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetProvisionedFabricConfigVersionList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient2_Vtbl {
pub base__: IFabricQueryClient_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetDeployedReplicaDetail: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetDeployedReplicaDetail: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetDeployedReplicaDetail: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetDeployedReplicaDetail: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetClusterLoadInformation: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetClusterLoadInformation: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetClusterLoadInformation: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetClusterLoadInformation: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetPartitionLoadInformation: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetPartitionLoadInformation: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetPartitionLoadInformation: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetPartitionLoadInformation: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetProvisionedFabricCodeVersionList:
unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetProvisionedFabricCodeVersionList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetProvisionedFabricCodeVersionList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetProvisionedFabricCodeVersionList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetProvisionedFabricConfigVersionList:
unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetProvisionedFabricConfigVersionList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetProvisionedFabricConfigVersionList:
unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetProvisionedFabricConfigVersionList: usize,
}
unsafe impl Send for IFabricQueryClient2 {}
unsafe impl Sync for IFabricQueryClient2 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient2_Impl: IFabricQueryClient_Impl {
fn BeginGetDeployedReplicaDetail(
&self,
querydescription : * const super::FabricTypes::FABRIC_DEPLOYED_SERVICE_REPLICA_DETAIL_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetDeployedReplicaDetail(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetDeployedServiceReplicaDetailResult>;
fn BeginGetClusterLoadInformation(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetClusterLoadInformation(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetClusterLoadInformationResult>;
fn BeginGetPartitionLoadInformation(
&self,
querydescription : * const super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetPartitionLoadInformation(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetPartitionLoadInformationResult>;
fn BeginGetProvisionedFabricCodeVersionList(
&self,
querydescription : * const super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetProvisionedFabricCodeVersionList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetProvisionedCodeVersionListResult>;
fn BeginGetProvisionedFabricConfigVersionList(
&self,
querydescription : * const super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetProvisionedFabricConfigVersionList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetProvisionedConfigVersionListResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient2_Vtbl {
pub const fn new<Identity: IFabricQueryClient2_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetDeployedReplicaDetail<
Identity: IFabricQueryClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient2_Impl::BeginGetDeployedReplicaDetail(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetDeployedReplicaDetail<
Identity: IFabricQueryClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient2_Impl::EndGetDeployedReplicaDetail(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetClusterLoadInformation<
Identity: IFabricQueryClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient2_Impl::BeginGetClusterLoadInformation(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetClusterLoadInformation<
Identity: IFabricQueryClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient2_Impl::EndGetClusterLoadInformation(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetPartitionLoadInformation<
Identity: IFabricQueryClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_PARTITION_LOAD_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient2_Impl::BeginGetPartitionLoadInformation(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetPartitionLoadInformation<
Identity: IFabricQueryClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient2_Impl::EndGetPartitionLoadInformation(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetProvisionedFabricCodeVersionList<
Identity: IFabricQueryClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_PROVISIONED_CODE_VERSION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient2_Impl::BeginGetProvisionedFabricCodeVersionList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetProvisionedFabricCodeVersionList<
Identity: IFabricQueryClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient2_Impl::EndGetProvisionedFabricCodeVersionList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetProvisionedFabricConfigVersionList<
Identity: IFabricQueryClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_PROVISIONED_CONFIG_VERSION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient2_Impl::BeginGetProvisionedFabricConfigVersionList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetProvisionedFabricConfigVersionList<
Identity: IFabricQueryClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient2_Impl::EndGetProvisionedFabricConfigVersionList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricQueryClient_Vtbl::new::<Identity, OFFSET>(),
BeginGetDeployedReplicaDetail: BeginGetDeployedReplicaDetail::<Identity, OFFSET>,
EndGetDeployedReplicaDetail: EndGetDeployedReplicaDetail::<Identity, OFFSET>,
BeginGetClusterLoadInformation: BeginGetClusterLoadInformation::<Identity, OFFSET>,
EndGetClusterLoadInformation: EndGetClusterLoadInformation::<Identity, OFFSET>,
BeginGetPartitionLoadInformation: BeginGetPartitionLoadInformation::<Identity, OFFSET>,
EndGetPartitionLoadInformation: EndGetPartitionLoadInformation::<Identity, OFFSET>,
BeginGetProvisionedFabricCodeVersionList: BeginGetProvisionedFabricCodeVersionList::<
Identity,
OFFSET,
>,
EndGetProvisionedFabricCodeVersionList: EndGetProvisionedFabricCodeVersionList::<
Identity,
OFFSET,
>,
BeginGetProvisionedFabricConfigVersionList: BeginGetProvisionedFabricConfigVersionList::<
Identity,
OFFSET,
>,
EndGetProvisionedFabricConfigVersionList: EndGetProvisionedFabricConfigVersionList::<
Identity,
OFFSET,
>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient2 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient2 {}
windows_core::imp::define_interface!(
IFabricQueryClient3,
IFabricQueryClient3_Vtbl,
0x16f563f3_4017_496e_b0e7_2650de5774b3
);
impl core::ops::Deref for IFabricQueryClient3 {
type Target = IFabricQueryClient2;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricQueryClient3,
windows_core::IUnknown,
IFabricQueryClient,
IFabricQueryClient2
);
impl IFabricQueryClient3 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetNodeLoadInformation<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetNodeLoadInformation)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetNodeLoadInformation<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetNodeLoadInformationResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetNodeLoadInformation)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetReplicaLoadInformation<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetReplicaLoadInformation)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetReplicaLoadInformation<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetReplicaLoadInformationResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetReplicaLoadInformation)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient3_Vtbl {
pub base__: IFabricQueryClient2_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetNodeLoadInformation: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetNodeLoadInformation: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetNodeLoadInformation: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetNodeLoadInformation: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetReplicaLoadInformation: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetReplicaLoadInformation: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetReplicaLoadInformation: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetReplicaLoadInformation: usize,
}
unsafe impl Send for IFabricQueryClient3 {}
unsafe impl Sync for IFabricQueryClient3 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient3_Impl: IFabricQueryClient2_Impl {
fn BeginGetNodeLoadInformation(
&self,
querydescription: *const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetNodeLoadInformation(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetNodeLoadInformationResult>;
fn BeginGetReplicaLoadInformation(
&self,
querydescription : * const super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetReplicaLoadInformation(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetReplicaLoadInformationResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient3_Vtbl {
pub const fn new<Identity: IFabricQueryClient3_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetNodeLoadInformation<
Identity: IFabricQueryClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_NODE_LOAD_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient3_Impl::BeginGetNodeLoadInformation(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetNodeLoadInformation<
Identity: IFabricQueryClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient3_Impl::EndGetNodeLoadInformation(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetReplicaLoadInformation<
Identity: IFabricQueryClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_REPLICA_LOAD_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient3_Impl::BeginGetReplicaLoadInformation(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetReplicaLoadInformation<
Identity: IFabricQueryClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient3_Impl::EndGetReplicaLoadInformation(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricQueryClient2_Vtbl::new::<Identity, OFFSET>(),
BeginGetNodeLoadInformation: BeginGetNodeLoadInformation::<Identity, OFFSET>,
EndGetNodeLoadInformation: EndGetNodeLoadInformation::<Identity, OFFSET>,
BeginGetReplicaLoadInformation: BeginGetReplicaLoadInformation::<Identity, OFFSET>,
EndGetReplicaLoadInformation: EndGetReplicaLoadInformation::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient3 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient2 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient3 {}
windows_core::imp::define_interface!(
IFabricQueryClient4,
IFabricQueryClient4_Vtbl,
0xab92081d_0d78_410b_9777_0846dba24c10
);
impl core::ops::Deref for IFabricQueryClient4 {
type Target = IFabricQueryClient3;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricQueryClient4,
windows_core::IUnknown,
IFabricQueryClient,
IFabricQueryClient2,
IFabricQueryClient3
);
impl IFabricQueryClient4 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetServiceGroupMemberList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetServiceGroupMemberList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetServiceGroupMemberList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetServiceGroupMemberListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetServiceGroupMemberList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetServiceGroupMemberTypeList<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetServiceGroupMemberTypeList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetServiceGroupMemberTypeList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetServiceGroupMemberTypeListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetServiceGroupMemberTypeList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient4_Vtbl {
pub base__: IFabricQueryClient3_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetServiceGroupMemberList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetServiceGroupMemberList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetServiceGroupMemberList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetServiceGroupMemberList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetServiceGroupMemberTypeList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetServiceGroupMemberTypeList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetServiceGroupMemberTypeList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetServiceGroupMemberTypeList: usize,
}
unsafe impl Send for IFabricQueryClient4 {}
unsafe impl Sync for IFabricQueryClient4 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient4_Impl: IFabricQueryClient3_Impl {
fn BeginGetServiceGroupMemberList(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetServiceGroupMemberList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetServiceGroupMemberListResult>;
fn BeginGetServiceGroupMemberTypeList(
&self,
querydescription : * const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetServiceGroupMemberTypeList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetServiceGroupMemberTypeListResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient4_Vtbl {
pub const fn new<Identity: IFabricQueryClient4_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetServiceGroupMemberList<
Identity: IFabricQueryClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient4_Impl::BeginGetServiceGroupMemberList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetServiceGroupMemberList<
Identity: IFabricQueryClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient4_Impl::EndGetServiceGroupMemberList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetServiceGroupMemberTypeList<
Identity: IFabricQueryClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_SERVICE_GROUP_MEMBER_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient4_Impl::BeginGetServiceGroupMemberTypeList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetServiceGroupMemberTypeList<
Identity: IFabricQueryClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient4_Impl::EndGetServiceGroupMemberTypeList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricQueryClient3_Vtbl::new::<Identity, OFFSET>(),
BeginGetServiceGroupMemberList: BeginGetServiceGroupMemberList::<Identity, OFFSET>,
EndGetServiceGroupMemberList: EndGetServiceGroupMemberList::<Identity, OFFSET>,
BeginGetServiceGroupMemberTypeList: BeginGetServiceGroupMemberTypeList::<
Identity,
OFFSET,
>,
EndGetServiceGroupMemberTypeList: EndGetServiceGroupMemberTypeList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient4 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient2 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient3 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient4 {}
windows_core::imp::define_interface!(
IFabricQueryClient5,
IFabricQueryClient5_Vtbl,
0x75c35e8c_87a2_4810_a401_b50da858fe34
);
impl core::ops::Deref for IFabricQueryClient5 {
type Target = IFabricQueryClient4;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricQueryClient5,
windows_core::IUnknown,
IFabricQueryClient,
IFabricQueryClient2,
IFabricQueryClient3,
IFabricQueryClient4
);
impl IFabricQueryClient5 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetUnplacedReplicaInformation<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetUnplacedReplicaInformation)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetUnplacedReplicaInformation<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetUnplacedReplicaInformationResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetUnplacedReplicaInformation)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient5_Vtbl {
pub base__: IFabricQueryClient4_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetUnplacedReplicaInformation: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetUnplacedReplicaInformation: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetUnplacedReplicaInformation: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetUnplacedReplicaInformation: usize,
}
unsafe impl Send for IFabricQueryClient5 {}
unsafe impl Sync for IFabricQueryClient5 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient5_Impl: IFabricQueryClient4_Impl {
fn BeginGetUnplacedReplicaInformation(
&self,
querydescription : * const super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetUnplacedReplicaInformation(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetUnplacedReplicaInformationResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient5_Vtbl {
pub const fn new<Identity: IFabricQueryClient5_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetUnplacedReplicaInformation<
Identity: IFabricQueryClient5_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_UNPLACED_REPLICA_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient5_Impl::BeginGetUnplacedReplicaInformation(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetUnplacedReplicaInformation<
Identity: IFabricQueryClient5_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient5_Impl::EndGetUnplacedReplicaInformation(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricQueryClient4_Vtbl::new::<Identity, OFFSET>(),
BeginGetUnplacedReplicaInformation: BeginGetUnplacedReplicaInformation::<
Identity,
OFFSET,
>,
EndGetUnplacedReplicaInformation: EndGetUnplacedReplicaInformation::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient5 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient2 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient3 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient4 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient5 {}
windows_core::imp::define_interface!(
IFabricQueryClient6,
IFabricQueryClient6_Vtbl,
0x173b2bb4_09c6_42fb_8754_caa8d43cf1b2
);
impl core::ops::Deref for IFabricQueryClient6 {
type Target = IFabricQueryClient5;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricQueryClient6,
windows_core::IUnknown,
IFabricQueryClient,
IFabricQueryClient2,
IFabricQueryClient3,
IFabricQueryClient4,
IFabricQueryClient5
);
impl IFabricQueryClient6 {
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetNodeList2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetNodeListResult2>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetNodeList2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetApplicationList2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetApplicationListResult2>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetApplicationList2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetServiceList2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetServiceListResult2>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetServiceList2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetPartitionList2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetPartitionListResult2>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetPartitionList2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetReplicaList2<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetReplicaListResult2>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetReplicaList2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient6_Vtbl {
pub base__: IFabricQueryClient5_Vtbl,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetNodeList2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetNodeList2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetApplicationList2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetApplicationList2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetServiceList2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetServiceList2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetPartitionList2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetPartitionList2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetReplicaList2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetReplicaList2: usize,
}
unsafe impl Send for IFabricQueryClient6 {}
unsafe impl Sync for IFabricQueryClient6 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient6_Impl: IFabricQueryClient5_Impl {
fn EndGetNodeList2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetNodeListResult2>;
fn EndGetApplicationList2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetApplicationListResult2>;
fn EndGetServiceList2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetServiceListResult2>;
fn EndGetPartitionList2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetPartitionListResult2>;
fn EndGetReplicaList2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetReplicaListResult2>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient6_Vtbl {
pub const fn new<Identity: IFabricQueryClient6_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn EndGetNodeList2<
Identity: IFabricQueryClient6_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient6_Impl::EndGetNodeList2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetApplicationList2<
Identity: IFabricQueryClient6_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient6_Impl::EndGetApplicationList2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetServiceList2<
Identity: IFabricQueryClient6_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient6_Impl::EndGetServiceList2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetPartitionList2<
Identity: IFabricQueryClient6_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient6_Impl::EndGetPartitionList2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetReplicaList2<
Identity: IFabricQueryClient6_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient6_Impl::EndGetReplicaList2(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricQueryClient5_Vtbl::new::<Identity, OFFSET>(),
EndGetNodeList2: EndGetNodeList2::<Identity, OFFSET>,
EndGetApplicationList2: EndGetApplicationList2::<Identity, OFFSET>,
EndGetServiceList2: EndGetServiceList2::<Identity, OFFSET>,
EndGetPartitionList2: EndGetPartitionList2::<Identity, OFFSET>,
EndGetReplicaList2: EndGetReplicaList2::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient6 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient2 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient3 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient4 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient5 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient6 {}
windows_core::imp::define_interface!(
IFabricQueryClient7,
IFabricQueryClient7_Vtbl,
0x538baa81_ba97_46da_95ac_e1cdd184cc74
);
impl core::ops::Deref for IFabricQueryClient7 {
type Target = IFabricQueryClient6;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricQueryClient7,
windows_core::IUnknown,
IFabricQueryClient,
IFabricQueryClient2,
IFabricQueryClient3,
IFabricQueryClient4,
IFabricQueryClient5,
IFabricQueryClient6
);
impl IFabricQueryClient7 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetApplicationLoadInformation<P2>(
&self,
querydescription : * const super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetApplicationLoadInformation)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetApplicationLoadInformation<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetApplicationLoadInformationResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetApplicationLoadInformation)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient7_Vtbl {
pub base__: IFabricQueryClient6_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetApplicationLoadInformation: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetApplicationLoadInformation: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetApplicationLoadInformation: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetApplicationLoadInformation: usize,
}
unsafe impl Send for IFabricQueryClient7 {}
unsafe impl Sync for IFabricQueryClient7 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient7_Impl: IFabricQueryClient6_Impl {
fn BeginGetApplicationLoadInformation(
&self,
querydescription : * const super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetApplicationLoadInformation(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetApplicationLoadInformationResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient7_Vtbl {
pub const fn new<Identity: IFabricQueryClient7_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetApplicationLoadInformation<
Identity: IFabricQueryClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::FABRIC_APPLICATION_LOAD_INFORMATION_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient7_Impl::BeginGetApplicationLoadInformation(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetApplicationLoadInformation<
Identity: IFabricQueryClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient7_Impl::EndGetApplicationLoadInformation(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricQueryClient6_Vtbl::new::<Identity, OFFSET>(),
BeginGetApplicationLoadInformation: BeginGetApplicationLoadInformation::<
Identity,
OFFSET,
>,
EndGetApplicationLoadInformation: EndGetApplicationLoadInformation::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient7 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient2 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient3 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient4 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient5 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient6 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient7 {}
windows_core::imp::define_interface!(
IFabricQueryClient8,
IFabricQueryClient8_Vtbl,
0x2c850629_6a83_4fc3_8468_c868b87e9a17
);
impl core::ops::Deref for IFabricQueryClient8 {
type Target = IFabricQueryClient7;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricQueryClient8,
windows_core::IUnknown,
IFabricQueryClient,
IFabricQueryClient2,
IFabricQueryClient3,
IFabricQueryClient4,
IFabricQueryClient5,
IFabricQueryClient6,
IFabricQueryClient7
);
impl IFabricQueryClient8 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetServiceName<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetServiceName)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetServiceName<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetServiceNameResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetServiceName)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetApplicationName<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetApplicationName)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetApplicationName<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetApplicationNameResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetApplicationName)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient8_Vtbl {
pub base__: IFabricQueryClient7_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetServiceName: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetServiceName: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetServiceName: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetServiceName: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetApplicationName: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetApplicationName: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetApplicationName: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetApplicationName: usize,
}
unsafe impl Send for IFabricQueryClient8 {}
unsafe impl Sync for IFabricQueryClient8 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient8_Impl: IFabricQueryClient7_Impl {
fn BeginGetServiceName(
&self,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetServiceName(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetServiceNameResult>;
fn BeginGetApplicationName(
&self,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetApplicationName(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetApplicationNameResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient8_Vtbl {
pub const fn new<Identity: IFabricQueryClient8_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetServiceName<
Identity: IFabricQueryClient8_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_SERVICE_NAME_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient8_Impl::BeginGetServiceName(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetServiceName<
Identity: IFabricQueryClient8_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient8_Impl::EndGetServiceName(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetApplicationName<
Identity: IFabricQueryClient8_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_APPLICATION_NAME_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient8_Impl::BeginGetApplicationName(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetApplicationName<
Identity: IFabricQueryClient8_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient8_Impl::EndGetApplicationName(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricQueryClient7_Vtbl::new::<Identity, OFFSET>(),
BeginGetServiceName: BeginGetServiceName::<Identity, OFFSET>,
EndGetServiceName: EndGetServiceName::<Identity, OFFSET>,
BeginGetApplicationName: BeginGetApplicationName::<Identity, OFFSET>,
EndGetApplicationName: EndGetApplicationName::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient8 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient2 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient3 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient4 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient5 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient6 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient7 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient8 {}
windows_core::imp::define_interface!(
IFabricQueryClient9,
IFabricQueryClient9_Vtbl,
0x76f0b4a5_4941_49d7_993c_ad7afc37c6af
);
impl core::ops::Deref for IFabricQueryClient9 {
type Target = IFabricQueryClient8;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricQueryClient9,
windows_core::IUnknown,
IFabricQueryClient,
IFabricQueryClient2,
IFabricQueryClient3,
IFabricQueryClient4,
IFabricQueryClient5,
IFabricQueryClient6,
IFabricQueryClient7,
IFabricQueryClient8
);
impl IFabricQueryClient9 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetApplicationTypePagedList<P2>(
&self,
querydescription : * const super::FabricTypes::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetApplicationTypePagedList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetApplicationTypePagedList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetApplicationTypePagedListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetApplicationTypePagedList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricQueryClient9_Vtbl {
pub base__: IFabricQueryClient8_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetApplicationTypePagedList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetApplicationTypePagedList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetApplicationTypePagedList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetApplicationTypePagedList: usize,
}
unsafe impl Send for IFabricQueryClient9 {}
unsafe impl Sync for IFabricQueryClient9 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricQueryClient9_Impl: IFabricQueryClient8_Impl {
fn BeginGetApplicationTypePagedList(
&self,
querydescription : * const super::FabricTypes::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetApplicationTypePagedList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetApplicationTypePagedListResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricQueryClient9_Vtbl {
pub const fn new<Identity: IFabricQueryClient9_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetApplicationTypePagedList<
Identity: IFabricQueryClient9_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription : * const super::FabricTypes::PAGED_FABRIC_APPLICATION_TYPE_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient9_Impl::BeginGetApplicationTypePagedList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetApplicationTypePagedList<
Identity: IFabricQueryClient9_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricQueryClient9_Impl::EndGetApplicationTypePagedList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricQueryClient8_Vtbl::new::<Identity, OFFSET>(),
BeginGetApplicationTypePagedList: BeginGetApplicationTypePagedList::<Identity, OFFSET>,
EndGetApplicationTypePagedList: EndGetApplicationTypePagedList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricQueryClient9 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient2 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient3 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient4 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient5 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient6 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient7 as windows_core::Interface>::IID
|| iid == &<IFabricQueryClient8 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricQueryClient9 {}
windows_core::imp::define_interface!(
IFabricRepairManagementClient,
IFabricRepairManagementClient_Vtbl,
0xee483ba5_9018_4c99_9804_be6185db88e6
);
windows_core::imp::interface_hierarchy!(IFabricRepairManagementClient, windows_core::IUnknown);
impl IFabricRepairManagementClient {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub unsafe fn BeginCreateRepairTask<P2>(
&self,
repairtask: *const super::FabricTypes::FABRIC_REPAIR_TASK,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginCreateRepairTask)(
windows_core::Interface::as_raw(self),
repairtask,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn EndCreateRepairTask<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricTypes::FABRIC_SEQUENCE_NUMBER>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndCreateRepairTask)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.map(|| result__)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginCancelRepairTask<P2>(
&self,
requestdescription: *const super::FabricTypes::FABRIC_REPAIR_CANCEL_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginCancelRepairTask)(
windows_core::Interface::as_raw(self),
requestdescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn EndCancelRepairTask<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricTypes::FABRIC_SEQUENCE_NUMBER>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndCancelRepairTask)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.map(|| result__)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginForceApproveRepairTask<P2>(
&self,
requestdescription: *const super::FabricTypes::FABRIC_REPAIR_APPROVE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginForceApproveRepairTask)(
windows_core::Interface::as_raw(self),
requestdescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn EndForceApproveRepairTask<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricTypes::FABRIC_SEQUENCE_NUMBER>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndForceApproveRepairTask)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.map(|| result__)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDeleteRepairTask<P2>(
&self,
requestdescription: *const super::FabricTypes::FABRIC_REPAIR_DELETE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDeleteRepairTask)(
windows_core::Interface::as_raw(self),
requestdescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDeleteRepairTask<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDeleteRepairTask)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub unsafe fn BeginUpdateRepairExecutionState<P2>(
&self,
repairtask: *const super::FabricTypes::FABRIC_REPAIR_TASK,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpdateRepairExecutionState)(
windows_core::Interface::as_raw(self),
repairtask,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn EndUpdateRepairExecutionState<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricTypes::FABRIC_SEQUENCE_NUMBER>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndUpdateRepairExecutionState)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.map(|| result__)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetRepairTaskList<P2>(
&self,
querydescription: *const super::FabricTypes::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetRepairTaskList)(
windows_core::Interface::as_raw(self),
querydescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetRepairTaskList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricGetRepairTaskListResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetRepairTaskList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricRepairManagementClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub BeginCreateRepairTask: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_REPAIR_TASK,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
)))]
BeginCreateRepairTask: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub EndCreateRepairTask: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut super::FabricTypes::FABRIC_SEQUENCE_NUMBER,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
EndCreateRepairTask: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginCancelRepairTask: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_REPAIR_CANCEL_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginCancelRepairTask: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub EndCancelRepairTask: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut super::FabricTypes::FABRIC_SEQUENCE_NUMBER,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
EndCancelRepairTask: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginForceApproveRepairTask: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_REPAIR_APPROVE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginForceApproveRepairTask: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub EndForceApproveRepairTask: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut super::FabricTypes::FABRIC_SEQUENCE_NUMBER,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
EndForceApproveRepairTask: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDeleteRepairTask: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_REPAIR_DELETE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDeleteRepairTask: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDeleteRepairTask: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDeleteRepairTask: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub BeginUpdateRepairExecutionState: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_REPAIR_TASK,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
)))]
BeginUpdateRepairExecutionState: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub EndUpdateRepairExecutionState: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut super::FabricTypes::FABRIC_SEQUENCE_NUMBER,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
EndUpdateRepairExecutionState: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetRepairTaskList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetRepairTaskList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetRepairTaskList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetRepairTaskList: usize,
}
unsafe impl Send for IFabricRepairManagementClient {}
unsafe impl Sync for IFabricRepairManagementClient {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub trait IFabricRepairManagementClient_Impl: windows_core::IUnknownImpl {
fn BeginCreateRepairTask(
&self,
repairtask: *const super::FabricTypes::FABRIC_REPAIR_TASK,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndCreateRepairTask(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricTypes::FABRIC_SEQUENCE_NUMBER>;
fn BeginCancelRepairTask(
&self,
requestdescription: *const super::FabricTypes::FABRIC_REPAIR_CANCEL_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndCancelRepairTask(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricTypes::FABRIC_SEQUENCE_NUMBER>;
fn BeginForceApproveRepairTask(
&self,
requestdescription: *const super::FabricTypes::FABRIC_REPAIR_APPROVE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndForceApproveRepairTask(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricTypes::FABRIC_SEQUENCE_NUMBER>;
fn BeginDeleteRepairTask(
&self,
requestdescription: *const super::FabricTypes::FABRIC_REPAIR_DELETE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDeleteRepairTask(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginUpdateRepairExecutionState(
&self,
repairtask: *const super::FabricTypes::FABRIC_REPAIR_TASK,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpdateRepairExecutionState(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricTypes::FABRIC_SEQUENCE_NUMBER>;
fn BeginGetRepairTaskList(
&self,
querydescription: *const super::FabricTypes::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetRepairTaskList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricGetRepairTaskListResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
impl IFabricRepairManagementClient_Vtbl {
pub const fn new<Identity: IFabricRepairManagementClient_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginCreateRepairTask<
Identity: IFabricRepairManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
repairtask: *const super::FabricTypes::FABRIC_REPAIR_TASK,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient_Impl::BeginCreateRepairTask(
this,
core::mem::transmute_copy(&repairtask),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndCreateRepairTask<
Identity: IFabricRepairManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
commitversion: *mut super::FabricTypes::FABRIC_SEQUENCE_NUMBER,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient_Impl::EndCreateRepairTask(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
commitversion.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginCancelRepairTask<
Identity: IFabricRepairManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
requestdescription: *const super::FabricTypes::FABRIC_REPAIR_CANCEL_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient_Impl::BeginCancelRepairTask(
this,
core::mem::transmute_copy(&requestdescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndCancelRepairTask<
Identity: IFabricRepairManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
commitversion: *mut super::FabricTypes::FABRIC_SEQUENCE_NUMBER,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient_Impl::EndCancelRepairTask(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
commitversion.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginForceApproveRepairTask<
Identity: IFabricRepairManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
requestdescription: *const super::FabricTypes::FABRIC_REPAIR_APPROVE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient_Impl::BeginForceApproveRepairTask(
this,
core::mem::transmute_copy(&requestdescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndForceApproveRepairTask<
Identity: IFabricRepairManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
commitversion: *mut super::FabricTypes::FABRIC_SEQUENCE_NUMBER,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient_Impl::EndForceApproveRepairTask(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
commitversion.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginDeleteRepairTask<
Identity: IFabricRepairManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
requestdescription: *const super::FabricTypes::FABRIC_REPAIR_DELETE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient_Impl::BeginDeleteRepairTask(
this,
core::mem::transmute_copy(&requestdescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDeleteRepairTask<
Identity: IFabricRepairManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricRepairManagementClient_Impl::EndDeleteRepairTask(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginUpdateRepairExecutionState<
Identity: IFabricRepairManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
repairtask: *const super::FabricTypes::FABRIC_REPAIR_TASK,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient_Impl::BeginUpdateRepairExecutionState(
this,
core::mem::transmute_copy(&repairtask),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpdateRepairExecutionState<
Identity: IFabricRepairManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
commitversion: *mut super::FabricTypes::FABRIC_SEQUENCE_NUMBER,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient_Impl::EndUpdateRepairExecutionState(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
commitversion.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetRepairTaskList<
Identity: IFabricRepairManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
querydescription: *const super::FabricTypes::FABRIC_REPAIR_TASK_QUERY_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient_Impl::BeginGetRepairTaskList(
this,
core::mem::transmute_copy(&querydescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetRepairTaskList<
Identity: IFabricRepairManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient_Impl::EndGetRepairTaskList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginCreateRepairTask: BeginCreateRepairTask::<Identity, OFFSET>,
EndCreateRepairTask: EndCreateRepairTask::<Identity, OFFSET>,
BeginCancelRepairTask: BeginCancelRepairTask::<Identity, OFFSET>,
EndCancelRepairTask: EndCancelRepairTask::<Identity, OFFSET>,
BeginForceApproveRepairTask: BeginForceApproveRepairTask::<Identity, OFFSET>,
EndForceApproveRepairTask: EndForceApproveRepairTask::<Identity, OFFSET>,
BeginDeleteRepairTask: BeginDeleteRepairTask::<Identity, OFFSET>,
EndDeleteRepairTask: EndDeleteRepairTask::<Identity, OFFSET>,
BeginUpdateRepairExecutionState: BeginUpdateRepairExecutionState::<Identity, OFFSET>,
EndUpdateRepairExecutionState: EndUpdateRepairExecutionState::<Identity, OFFSET>,
BeginGetRepairTaskList: BeginGetRepairTaskList::<Identity, OFFSET>,
EndGetRepairTaskList: EndGetRepairTaskList::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricRepairManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
impl windows_core::RuntimeName for IFabricRepairManagementClient {}
windows_core::imp::define_interface!(
IFabricRepairManagementClient2,
IFabricRepairManagementClient2_Vtbl,
0x5067d775_3baa_48e4_8c72_bb5573cc3fb8
);
impl core::ops::Deref for IFabricRepairManagementClient2 {
type Target = IFabricRepairManagementClient;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricRepairManagementClient2,
windows_core::IUnknown,
IFabricRepairManagementClient
);
impl IFabricRepairManagementClient2 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpdateRepairTaskHealthPolicy<P2>(
&self,
updatedescription : * const super::FabricTypes::FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpdateRepairTaskHealthPolicy)(
windows_core::Interface::as_raw(self),
updatedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn EndUpdateRepairTaskHealthPolicy<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricTypes::FABRIC_SEQUENCE_NUMBER>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndUpdateRepairTaskHealthPolicy)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.map(|| result__)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricRepairManagementClient2_Vtbl {
pub base__: IFabricRepairManagementClient_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpdateRepairTaskHealthPolicy: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpdateRepairTaskHealthPolicy: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub EndUpdateRepairTaskHealthPolicy: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut super::FabricTypes::FABRIC_SEQUENCE_NUMBER,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
EndUpdateRepairTaskHealthPolicy: usize,
}
unsafe impl Send for IFabricRepairManagementClient2 {}
unsafe impl Sync for IFabricRepairManagementClient2 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub trait IFabricRepairManagementClient2_Impl: IFabricRepairManagementClient_Impl {
fn BeginUpdateRepairTaskHealthPolicy(
&self,
updatedescription : * const super::FabricTypes::FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpdateRepairTaskHealthPolicy(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricTypes::FABRIC_SEQUENCE_NUMBER>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
impl IFabricRepairManagementClient2_Vtbl {
pub const fn new<Identity: IFabricRepairManagementClient2_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginUpdateRepairTaskHealthPolicy<
Identity: IFabricRepairManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
updatedescription : * const super::FabricTypes::FABRIC_REPAIR_TASK_HEALTH_POLICY_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient2_Impl::BeginUpdateRepairTaskHealthPolicy(
this,
core::mem::transmute_copy(&updatedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpdateRepairTaskHealthPolicy<
Identity: IFabricRepairManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
commitversion: *mut super::FabricTypes::FABRIC_SEQUENCE_NUMBER,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricRepairManagementClient2_Impl::EndUpdateRepairTaskHealthPolicy(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
commitversion.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricRepairManagementClient_Vtbl::new::<Identity, OFFSET>(),
BeginUpdateRepairTaskHealthPolicy: BeginUpdateRepairTaskHealthPolicy::<Identity, OFFSET>,
EndUpdateRepairTaskHealthPolicy: EndUpdateRepairTaskHealthPolicy::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricRepairManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricRepairManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
impl windows_core::RuntimeName for IFabricRepairManagementClient2 {}
windows_core::imp::define_interface!(
IFabricReplicaHealthResult,
IFabricReplicaHealthResult_Vtbl,
0xb4d5f2d9_e5cc_49ae_a6c8_89e8df7b6c15
);
windows_core::imp::interface_hierarchy!(IFabricReplicaHealthResult, windows_core::IUnknown);
impl IFabricReplicaHealthResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ReplicaHealth(&self) -> *const super::FabricTypes::FABRIC_REPLICA_HEALTH {
unsafe {
(windows_core::Interface::vtable(self).get_ReplicaHealth)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricReplicaHealthResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_ReplicaHealth:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_REPLICA_HEALTH,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_ReplicaHealth: usize,
}
unsafe impl Send for IFabricReplicaHealthResult {}
unsafe impl Sync for IFabricReplicaHealthResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricReplicaHealthResult_Impl: windows_core::IUnknownImpl {
fn get_ReplicaHealth(&self) -> *const super::FabricTypes::FABRIC_REPLICA_HEALTH;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricReplicaHealthResult_Vtbl {
pub const fn new<Identity: IFabricReplicaHealthResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_ReplicaHealth<
Identity: IFabricReplicaHealthResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_REPLICA_HEALTH {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricReplicaHealthResult_Impl::get_ReplicaHealth(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ReplicaHealth: get_ReplicaHealth::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricReplicaHealthResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricReplicaHealthResult {}
windows_core::imp::define_interface!(
IFabricResolvedServicePartitionResult,
IFabricResolvedServicePartitionResult_Vtbl,
0xfd0fe113_cdf8_4803_b4a0_32b1b3ef3716
);
windows_core::imp::interface_hierarchy!(
IFabricResolvedServicePartitionResult,
windows_core::IUnknown
);
impl IFabricResolvedServicePartitionResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Partition(
&self,
) -> *const super::FabricTypes::FABRIC_RESOLVED_SERVICE_PARTITION {
unsafe {
(windows_core::Interface::vtable(self).get_Partition)(windows_core::Interface::as_raw(
self,
))
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn GetEndpoint(
&self,
) -> windows_core::Result<*mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_ENDPOINT> {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetEndpoint)(
windows_core::Interface::as_raw(self),
&mut result__,
)
.map(|| result__)
}
}
pub unsafe fn CompareVersion<P0>(&self, other: P0) -> windows_core::Result<i32>
where
P0: windows_core::Param<Self>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).CompareVersion)(
windows_core::Interface::as_raw(self),
other.param().abi(),
&mut result__,
)
.map(|| result__)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricResolvedServicePartitionResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Partition:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_RESOLVED_SERVICE_PARTITION,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Partition: usize,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub GetEndpoint: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut *mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_ENDPOINT,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
GetEndpoint: usize,
pub CompareVersion: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut i32,
) -> windows_core::HRESULT,
}
unsafe impl Send for IFabricResolvedServicePartitionResult {}
unsafe impl Sync for IFabricResolvedServicePartitionResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricResolvedServicePartitionResult_Impl: windows_core::IUnknownImpl {
fn get_Partition(&self) -> *const super::FabricTypes::FABRIC_RESOLVED_SERVICE_PARTITION;
fn GetEndpoint(
&self,
) -> windows_core::Result<*mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_ENDPOINT>;
fn CompareVersion(
&self,
other: windows_core::Ref<IFabricResolvedServicePartitionResult>,
) -> windows_core::Result<i32>;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricResolvedServicePartitionResult_Vtbl {
pub const fn new<Identity: IFabricResolvedServicePartitionResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_Partition<
Identity: IFabricResolvedServicePartitionResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_RESOLVED_SERVICE_PARTITION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricResolvedServicePartitionResult_Impl::get_Partition(this)
}
}
unsafe extern "system" fn GetEndpoint<
Identity: IFabricResolvedServicePartitionResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
endpoint: *mut *mut super::FabricTypes::FABRIC_RESOLVED_SERVICE_ENDPOINT,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricResolvedServicePartitionResult_Impl::GetEndpoint(this) {
Ok(ok__) => {
endpoint.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn CompareVersion<
Identity: IFabricResolvedServicePartitionResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
other: *mut core::ffi::c_void,
compareresult: *mut i32,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricResolvedServicePartitionResult_Impl::CompareVersion(
this,
core::mem::transmute_copy(&other),
) {
Ok(ok__) => {
compareresult.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Partition: get_Partition::<Identity, OFFSET>,
GetEndpoint: GetEndpoint::<Identity, OFFSET>,
CompareVersion: CompareVersion::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricResolvedServicePartitionResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricResolvedServicePartitionResult {}
windows_core::imp::define_interface!(
IFabricRestartDeployedCodePackageResult,
IFabricRestartDeployedCodePackageResult_Vtbl,
0xfe087dc4_7a6a_41e3_90e9_b734a4cef41f
);
windows_core::imp::interface_hierarchy!(
IFabricRestartDeployedCodePackageResult,
windows_core::IUnknown
);
impl IFabricRestartDeployedCodePackageResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Result(
&self,
) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT {
unsafe {
(windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricRestartDeployedCodePackageResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Result:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Result: usize,
}
unsafe impl Send for IFabricRestartDeployedCodePackageResult {}
unsafe impl Sync for IFabricRestartDeployedCodePackageResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricRestartDeployedCodePackageResult_Impl: windows_core::IUnknownImpl {
fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricRestartDeployedCodePackageResult_Vtbl {
pub const fn new<
Identity: IFabricRestartDeployedCodePackageResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_Result<
Identity: IFabricRestartDeployedCodePackageResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_DEPLOYED_CODE_PACKAGE_RESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricRestartDeployedCodePackageResult_Impl::get_Result(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Result: get_Result::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricRestartDeployedCodePackageResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricRestartDeployedCodePackageResult {}
windows_core::imp::define_interface!(
IFabricRestartNodeResult,
IFabricRestartNodeResult_Vtbl,
0x2f7e9d57_fe07_4e34_93e1_01d5a6298ca9
);
windows_core::imp::interface_hierarchy!(IFabricRestartNodeResult, windows_core::IUnknown);
impl IFabricRestartNodeResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT {
unsafe {
(windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricRestartNodeResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Result: unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_NODE_RESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Result: usize,
}
unsafe impl Send for IFabricRestartNodeResult {}
unsafe impl Sync for IFabricRestartNodeResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricRestartNodeResult_Impl: windows_core::IUnknownImpl {
fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricRestartNodeResult_Vtbl {
pub const fn new<Identity: IFabricRestartNodeResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Result<
Identity: IFabricRestartNodeResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_NODE_RESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricRestartNodeResult_Impl::get_Result(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Result: get_Result::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricRestartNodeResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricRestartNodeResult {}
windows_core::imp::define_interface!(
IFabricSecretReferencesResult,
IFabricSecretReferencesResult_Vtbl,
0xbb8f69de_f667_4fab_820d_274cf4303ab4
);
windows_core::imp::interface_hierarchy!(IFabricSecretReferencesResult, windows_core::IUnknown);
impl IFabricSecretReferencesResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_SecretReferences(
&self,
) -> *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_SecretReferences)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricSecretReferencesResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_SecretReferences:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_SecretReferences: usize,
}
unsafe impl Send for IFabricSecretReferencesResult {}
unsafe impl Sync for IFabricSecretReferencesResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricSecretReferencesResult_Impl: windows_core::IUnknownImpl {
fn get_SecretReferences(&self) -> *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricSecretReferencesResult_Vtbl {
pub const fn new<Identity: IFabricSecretReferencesResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_SecretReferences<
Identity: IFabricSecretReferencesResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricSecretReferencesResult_Impl::get_SecretReferences(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_SecretReferences: get_SecretReferences::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricSecretReferencesResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricSecretReferencesResult {}
windows_core::imp::define_interface!(
IFabricSecretStoreClient,
IFabricSecretStoreClient_Vtbl,
0x38c4c723_3815_49d8_bdf2_68bfb536b8c9
);
windows_core::imp::interface_hierarchy!(IFabricSecretStoreClient, windows_core::IUnknown);
impl IFabricSecretStoreClient {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetSecrets<P3>(
&self,
secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
includevalue: bool,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetSecrets)(
windows_core::Interface::as_raw(self),
secretreferences,
includevalue,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetSecrets<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricSecretsResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetSecrets)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginSetSecrets<P2>(
&self,
secrets: *const super::FabricTypes::FABRIC_SECRET_LIST,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginSetSecrets)(
windows_core::Interface::as_raw(self),
secrets,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndSetSecrets<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricSecretsResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndSetSecrets)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginRemoveSecrets<P2>(
&self,
secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRemoveSecrets)(
windows_core::Interface::as_raw(self),
secretreferences,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRemoveSecrets<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricSecretReferencesResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndRemoveSecrets)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetSecretVersions<P2>(
&self,
secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetSecretVersions)(
windows_core::Interface::as_raw(self),
secretreferences,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetSecretVersions<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricSecretReferencesResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetSecretVersions)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricSecretStoreClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetSecrets: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
bool,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetSecrets: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetSecrets: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetSecrets: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginSetSecrets: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SECRET_LIST,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginSetSecrets: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndSetSecrets: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndSetSecrets: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginRemoveSecrets: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginRemoveSecrets: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRemoveSecrets: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRemoveSecrets: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetSecretVersions: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetSecretVersions: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetSecretVersions: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetSecretVersions: usize,
}
unsafe impl Send for IFabricSecretStoreClient {}
unsafe impl Sync for IFabricSecretStoreClient {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricSecretStoreClient_Impl: windows_core::IUnknownImpl {
fn BeginGetSecrets(
&self,
secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
includevalue: bool,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetSecrets(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricSecretsResult>;
fn BeginSetSecrets(
&self,
secrets: *const super::FabricTypes::FABRIC_SECRET_LIST,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndSetSecrets(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricSecretsResult>;
fn BeginRemoveSecrets(
&self,
secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRemoveSecrets(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricSecretReferencesResult>;
fn BeginGetSecretVersions(
&self,
secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetSecretVersions(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricSecretReferencesResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricSecretStoreClient_Vtbl {
pub const fn new<Identity: IFabricSecretStoreClient_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetSecrets<
Identity: IFabricSecretStoreClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
includevalue: bool,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricSecretStoreClient_Impl::BeginGetSecrets(
this,
core::mem::transmute_copy(&secretreferences),
core::mem::transmute_copy(&includevalue),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetSecrets<
Identity: IFabricSecretStoreClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricSecretStoreClient_Impl::EndGetSecrets(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginSetSecrets<
Identity: IFabricSecretStoreClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
secrets: *const super::FabricTypes::FABRIC_SECRET_LIST,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricSecretStoreClient_Impl::BeginSetSecrets(
this,
core::mem::transmute_copy(&secrets),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndSetSecrets<
Identity: IFabricSecretStoreClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricSecretStoreClient_Impl::EndSetSecrets(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginRemoveSecrets<
Identity: IFabricSecretStoreClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricSecretStoreClient_Impl::BeginRemoveSecrets(
this,
core::mem::transmute_copy(&secretreferences),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRemoveSecrets<
Identity: IFabricSecretStoreClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricSecretStoreClient_Impl::EndRemoveSecrets(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetSecretVersions<
Identity: IFabricSecretStoreClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
secretreferences: *const super::FabricTypes::FABRIC_SECRET_REFERENCE_LIST,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricSecretStoreClient_Impl::BeginGetSecretVersions(
this,
core::mem::transmute_copy(&secretreferences),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetSecretVersions<
Identity: IFabricSecretStoreClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricSecretStoreClient_Impl::EndGetSecretVersions(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginGetSecrets: BeginGetSecrets::<Identity, OFFSET>,
EndGetSecrets: EndGetSecrets::<Identity, OFFSET>,
BeginSetSecrets: BeginSetSecrets::<Identity, OFFSET>,
EndSetSecrets: EndSetSecrets::<Identity, OFFSET>,
BeginRemoveSecrets: BeginRemoveSecrets::<Identity, OFFSET>,
EndRemoveSecrets: EndRemoveSecrets::<Identity, OFFSET>,
BeginGetSecretVersions: BeginGetSecretVersions::<Identity, OFFSET>,
EndGetSecretVersions: EndGetSecretVersions::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricSecretStoreClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricSecretStoreClient {}
windows_core::imp::define_interface!(
IFabricSecretsResult,
IFabricSecretsResult_Vtbl,
0xfe15a879_0dbe_4841_9cc6_6e92077cd669
);
windows_core::imp::interface_hierarchy!(IFabricSecretsResult, windows_core::IUnknown);
impl IFabricSecretsResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Secrets(&self) -> *const super::FabricTypes::FABRIC_SECRET_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_Secrets)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricSecretsResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Secrets: unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_SECRET_LIST,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Secrets: usize,
}
unsafe impl Send for IFabricSecretsResult {}
unsafe impl Sync for IFabricSecretsResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricSecretsResult_Impl: windows_core::IUnknownImpl {
fn get_Secrets(&self) -> *const super::FabricTypes::FABRIC_SECRET_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricSecretsResult_Vtbl {
pub const fn new<Identity: IFabricSecretsResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Secrets<
Identity: IFabricSecretsResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SECRET_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricSecretsResult_Impl::get_Secrets(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Secrets: get_Secrets::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricSecretsResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricSecretsResult {}
windows_core::imp::define_interface!(
IFabricServiceDescriptionResult,
IFabricServiceDescriptionResult_Vtbl,
0x86b4f744_38c7_4dab_b6b4_11c23734c269
);
windows_core::imp::interface_hierarchy!(IFabricServiceDescriptionResult, windows_core::IUnknown);
impl IFabricServiceDescriptionResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Description(&self) -> *const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION {
unsafe {
(windows_core::Interface::vtable(self).get_Description)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceDescriptionResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Description:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Description: usize,
}
unsafe impl Send for IFabricServiceDescriptionResult {}
unsafe impl Sync for IFabricServiceDescriptionResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricServiceDescriptionResult_Impl: windows_core::IUnknownImpl {
fn get_Description(&self) -> *const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricServiceDescriptionResult_Vtbl {
pub const fn new<Identity: IFabricServiceDescriptionResult_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn get_Description<
Identity: IFabricServiceDescriptionResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceDescriptionResult_Impl::get_Description(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Description: get_Description::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceDescriptionResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricServiceDescriptionResult {}
windows_core::imp::define_interface!(
IFabricServiceEndpointsVersion,
IFabricServiceEndpointsVersion_Vtbl,
0x0a673dc5_2297_4fc5_a38f_482d29144fa5
);
windows_core::imp::interface_hierarchy!(IFabricServiceEndpointsVersion, windows_core::IUnknown);
impl IFabricServiceEndpointsVersion {
pub unsafe fn Compare<P0>(&self, other: P0) -> windows_core::Result<i32>
where
P0: windows_core::Param<Self>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).Compare)(
windows_core::Interface::as_raw(self),
other.param().abi(),
&mut result__,
)
.map(|| result__)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceEndpointsVersion_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
pub Compare: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut i32,
) -> windows_core::HRESULT,
}
unsafe impl Send for IFabricServiceEndpointsVersion {}
unsafe impl Sync for IFabricServiceEndpointsVersion {}
pub trait IFabricServiceEndpointsVersion_Impl: windows_core::IUnknownImpl {
fn Compare(
&self,
other: windows_core::Ref<IFabricServiceEndpointsVersion>,
) -> windows_core::Result<i32>;
}
impl IFabricServiceEndpointsVersion_Vtbl {
pub const fn new<Identity: IFabricServiceEndpointsVersion_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn Compare<
Identity: IFabricServiceEndpointsVersion_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
other: *mut core::ffi::c_void,
compareresult: *mut i32,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceEndpointsVersion_Impl::Compare(
this,
core::mem::transmute_copy(&other),
) {
Ok(ok__) => {
compareresult.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
Compare: Compare::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceEndpointsVersion as windows_core::Interface>::IID
}
}
impl windows_core::RuntimeName for IFabricServiceEndpointsVersion {}
windows_core::imp::define_interface!(
IFabricServiceGroupDescriptionResult,
IFabricServiceGroupDescriptionResult_Vtbl,
0x3ca814d4_e067_48b7_9bdc_9be33810416d
);
windows_core::imp::interface_hierarchy!(
IFabricServiceGroupDescriptionResult,
windows_core::IUnknown
);
impl IFabricServiceGroupDescriptionResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Description(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION {
unsafe {
(windows_core::Interface::vtable(self).get_Description)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceGroupDescriptionResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Description:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Description: usize,
}
unsafe impl Send for IFabricServiceGroupDescriptionResult {}
unsafe impl Sync for IFabricServiceGroupDescriptionResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricServiceGroupDescriptionResult_Impl: windows_core::IUnknownImpl {
fn get_Description(&self) -> *const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricServiceGroupDescriptionResult_Vtbl {
pub const fn new<Identity: IFabricServiceGroupDescriptionResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_Description<
Identity: IFabricServiceGroupDescriptionResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceGroupDescriptionResult_Impl::get_Description(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Description: get_Description::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceGroupDescriptionResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricServiceGroupDescriptionResult {}
windows_core::imp::define_interface!(
IFabricServiceGroupManagementClient,
IFabricServiceGroupManagementClient_Vtbl,
0x2061227e_0281_4baf_9b19_b2dfb2e63bbe
);
windows_core::imp::interface_hierarchy!(
IFabricServiceGroupManagementClient,
windows_core::IUnknown
);
impl IFabricServiceGroupManagementClient {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginCreateServiceGroup<P2>(
&self,
description: *const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginCreateServiceGroup)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndCreateServiceGroup<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndCreateServiceGroup)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDeleteServiceGroup<P2>(
&self,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDeleteServiceGroup)(
windows_core::Interface::as_raw(self),
name,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDeleteServiceGroup<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDeleteServiceGroup)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetServiceGroupDescription<P2>(
&self,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetServiceGroupDescription)(
windows_core::Interface::as_raw(self),
name,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetServiceGroupDescription<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricServiceGroupDescriptionResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetServiceGroupDescription)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceGroupManagementClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginCreateServiceGroup: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginCreateServiceGroup: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndCreateServiceGroup: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndCreateServiceGroup: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDeleteServiceGroup: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDeleteServiceGroup: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDeleteServiceGroup: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDeleteServiceGroup: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetServiceGroupDescription: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetServiceGroupDescription: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetServiceGroupDescription: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetServiceGroupDescription: usize,
}
unsafe impl Send for IFabricServiceGroupManagementClient {}
unsafe impl Sync for IFabricServiceGroupManagementClient {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceGroupManagementClient_Impl: windows_core::IUnknownImpl {
fn BeginCreateServiceGroup(
&self,
description: *const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndCreateServiceGroup(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginDeleteServiceGroup(
&self,
name: &super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDeleteServiceGroup(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetServiceGroupDescription(
&self,
name: &super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetServiceGroupDescription(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricServiceGroupDescriptionResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceGroupManagementClient_Vtbl {
pub const fn new<Identity: IFabricServiceGroupManagementClient_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginCreateServiceGroup<
Identity: IFabricServiceGroupManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_SERVICE_GROUP_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceGroupManagementClient_Impl::BeginCreateServiceGroup(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndCreateServiceGroup<
Identity: IFabricServiceGroupManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceGroupManagementClient_Impl::EndCreateServiceGroup(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginDeleteServiceGroup<
Identity: IFabricServiceGroupManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceGroupManagementClient_Impl::BeginDeleteServiceGroup(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDeleteServiceGroup<
Identity: IFabricServiceGroupManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceGroupManagementClient_Impl::EndDeleteServiceGroup(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetServiceGroupDescription<
Identity: IFabricServiceGroupManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceGroupManagementClient_Impl::BeginGetServiceGroupDescription(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetServiceGroupDescription<
Identity: IFabricServiceGroupManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceGroupManagementClient_Impl::EndGetServiceGroupDescription(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginCreateServiceGroup: BeginCreateServiceGroup::<Identity, OFFSET>,
EndCreateServiceGroup: EndCreateServiceGroup::<Identity, OFFSET>,
BeginDeleteServiceGroup: BeginDeleteServiceGroup::<Identity, OFFSET>,
EndDeleteServiceGroup: EndDeleteServiceGroup::<Identity, OFFSET>,
BeginGetServiceGroupDescription: BeginGetServiceGroupDescription::<Identity, OFFSET>,
EndGetServiceGroupDescription: EndGetServiceGroupDescription::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceGroupManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceGroupManagementClient {}
windows_core::imp::define_interface!(
IFabricServiceGroupManagementClient2,
IFabricServiceGroupManagementClient2_Vtbl,
0x4f0dc42d_8fec_4ea9_a96b_5be1fa1e1d64
);
impl core::ops::Deref for IFabricServiceGroupManagementClient2 {
type Target = IFabricServiceGroupManagementClient;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricServiceGroupManagementClient2,
windows_core::IUnknown,
IFabricServiceGroupManagementClient
);
impl IFabricServiceGroupManagementClient2 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpdateServiceGroup<P3>(
&self,
name: super::FabricTypes::FABRIC_URI,
servicegroupupdatedescription : * const super::FabricTypes::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpdateServiceGroup)(
windows_core::Interface::as_raw(self),
name,
servicegroupupdatedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpdateServiceGroup<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUpdateServiceGroup)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceGroupManagementClient2_Vtbl {
pub base__: IFabricServiceGroupManagementClient_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpdateServiceGroup: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
*const super::FabricTypes::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpdateServiceGroup: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpdateServiceGroup: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpdateServiceGroup: usize,
}
unsafe impl Send for IFabricServiceGroupManagementClient2 {}
unsafe impl Sync for IFabricServiceGroupManagementClient2 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceGroupManagementClient2_Impl:
IFabricServiceGroupManagementClient_Impl
{
fn BeginUpdateServiceGroup(
&self,
name: &super::FabricTypes::FABRIC_URI,
servicegroupupdatedescription : * const super::FabricTypes::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpdateServiceGroup(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceGroupManagementClient2_Vtbl {
pub const fn new<Identity: IFabricServiceGroupManagementClient2_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginUpdateServiceGroup<
Identity: IFabricServiceGroupManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
servicegroupupdatedescription : * const super::FabricTypes::FABRIC_SERVICE_GROUP_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceGroupManagementClient2_Impl::BeginUpdateServiceGroup(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&servicegroupupdatedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpdateServiceGroup<
Identity: IFabricServiceGroupManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceGroupManagementClient2_Impl::EndUpdateServiceGroup(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricServiceGroupManagementClient_Vtbl::new::<Identity, OFFSET>(),
BeginUpdateServiceGroup: BeginUpdateServiceGroup::<Identity, OFFSET>,
EndUpdateServiceGroup: EndUpdateServiceGroup::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceGroupManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricServiceGroupManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceGroupManagementClient2 {}
windows_core::imp::define_interface!(
IFabricServiceGroupManagementClient3,
IFabricServiceGroupManagementClient3_Vtbl,
0xcbee0e12_b5a0_44dc_8c3c_c067958f82f6
);
impl core::ops::Deref for IFabricServiceGroupManagementClient3 {
type Target = IFabricServiceGroupManagementClient2;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricServiceGroupManagementClient3,
windows_core::IUnknown,
IFabricServiceGroupManagementClient,
IFabricServiceGroupManagementClient2
);
impl IFabricServiceGroupManagementClient3 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginCreateServiceGroupFromTemplate<P2, P6>(
&self,
applicationname: super::FabricTypes::FABRIC_URI,
servicename: super::FabricTypes::FABRIC_URI,
servicetypename: P2,
initializationdatasize: u32,
initializationdata: *const u8,
timeoutmilliseconds: u32,
callback: P6,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<windows_core::PCWSTR>,
P6: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginCreateServiceGroupFromTemplate)(
windows_core::Interface::as_raw(self),
applicationname,
servicename,
servicetypename.param().abi(),
initializationdatasize,
initializationdata,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndCreateServiceGroupFromTemplate<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndCreateServiceGroupFromTemplate)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceGroupManagementClient3_Vtbl {
pub base__: IFabricServiceGroupManagementClient2_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginCreateServiceGroupFromTemplate: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
u32,
*const u8,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginCreateServiceGroupFromTemplate: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndCreateServiceGroupFromTemplate: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndCreateServiceGroupFromTemplate: usize,
}
unsafe impl Send for IFabricServiceGroupManagementClient3 {}
unsafe impl Sync for IFabricServiceGroupManagementClient3 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceGroupManagementClient3_Impl:
IFabricServiceGroupManagementClient2_Impl
{
fn BeginCreateServiceGroupFromTemplate(
&self,
applicationname: &super::FabricTypes::FABRIC_URI,
servicename: &super::FabricTypes::FABRIC_URI,
servicetypename: &windows_core::PCWSTR,
initializationdatasize: u32,
initializationdata: *const u8,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndCreateServiceGroupFromTemplate(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceGroupManagementClient3_Vtbl {
pub const fn new<Identity: IFabricServiceGroupManagementClient3_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginCreateServiceGroupFromTemplate<
Identity: IFabricServiceGroupManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationname: super::FabricTypes::FABRIC_URI,
servicename: super::FabricTypes::FABRIC_URI,
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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceGroupManagementClient3_Impl::BeginCreateServiceGroupFromTemplate(
this,
core::mem::transmute(&applicationname),
core::mem::transmute(&servicename),
core::mem::transmute(&servicetypename),
core::mem::transmute_copy(&initializationdatasize),
core::mem::transmute_copy(&initializationdata),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndCreateServiceGroupFromTemplate<
Identity: IFabricServiceGroupManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceGroupManagementClient3_Impl::EndCreateServiceGroupFromTemplate(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricServiceGroupManagementClient2_Vtbl::new::<Identity, OFFSET>(),
BeginCreateServiceGroupFromTemplate: BeginCreateServiceGroupFromTemplate::<
Identity,
OFFSET,
>,
EndCreateServiceGroupFromTemplate: EndCreateServiceGroupFromTemplate::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceGroupManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricServiceGroupManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricServiceGroupManagementClient2 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceGroupManagementClient3 {}
windows_core::imp::define_interface!(
IFabricServiceGroupManagementClient4,
IFabricServiceGroupManagementClient4_Vtbl,
0x3c73b32e_9a08_48ca_b3a3_993a2029e37a
);
impl core::ops::Deref for IFabricServiceGroupManagementClient4 {
type Target = IFabricServiceGroupManagementClient3;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricServiceGroupManagementClient4,
windows_core::IUnknown,
IFabricServiceGroupManagementClient,
IFabricServiceGroupManagementClient2,
IFabricServiceGroupManagementClient3
);
impl IFabricServiceGroupManagementClient4 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginCreateServiceGroupFromTemplate2<P2>(
&self,
servicegroupfromtemplatedescription : * const super::FabricTypes::FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginCreateServiceGroupFromTemplate2)(
windows_core::Interface::as_raw(self),
servicegroupfromtemplatedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndCreateServiceGroupFromTemplate2<P0>(
&self,
context: P0,
) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndCreateServiceGroupFromTemplate2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceGroupManagementClient4_Vtbl {
pub base__: IFabricServiceGroupManagementClient3_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginCreateServiceGroupFromTemplate2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginCreateServiceGroupFromTemplate2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndCreateServiceGroupFromTemplate2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndCreateServiceGroupFromTemplate2: usize,
}
unsafe impl Send for IFabricServiceGroupManagementClient4 {}
unsafe impl Sync for IFabricServiceGroupManagementClient4 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceGroupManagementClient4_Impl:
IFabricServiceGroupManagementClient3_Impl
{
fn BeginCreateServiceGroupFromTemplate2(
&self,
servicegroupfromtemplatedescription : * const super::FabricTypes::FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndCreateServiceGroupFromTemplate2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceGroupManagementClient4_Vtbl {
pub const fn new<Identity: IFabricServiceGroupManagementClient4_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn BeginCreateServiceGroupFromTemplate2<
Identity: IFabricServiceGroupManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
servicegroupfromtemplatedescription : * const super::FabricTypes::FABRIC_SERVICE_GROUP_FROM_TEMPLATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceGroupManagementClient4_Impl::BeginCreateServiceGroupFromTemplate2 (this , core::mem::transmute_copy (& servicegroupfromtemplatedescription) , core::mem::transmute_copy (& timeoutmilliseconds) , core::mem::transmute_copy (& callback) ,) { Ok (ok__) => { context . write (core::mem::transmute (ok__)) ; windows_core::HRESULT (0) } Err (err) => err . into () }
}
}
unsafe extern "system" fn EndCreateServiceGroupFromTemplate2<
Identity: IFabricServiceGroupManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceGroupManagementClient4_Impl::EndCreateServiceGroupFromTemplate2(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricServiceGroupManagementClient3_Vtbl::new::<Identity, OFFSET>(),
BeginCreateServiceGroupFromTemplate2: BeginCreateServiceGroupFromTemplate2::<
Identity,
OFFSET,
>,
EndCreateServiceGroupFromTemplate2: EndCreateServiceGroupFromTemplate2::<
Identity,
OFFSET,
>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceGroupManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricServiceGroupManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricServiceGroupManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricServiceGroupManagementClient3 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceGroupManagementClient4 {}
windows_core::imp::define_interface!(
IFabricServiceHealthResult,
IFabricServiceHealthResult_Vtbl,
0x52040bd9_a78e_4308_a30e_7114e3684e76
);
windows_core::imp::interface_hierarchy!(IFabricServiceHealthResult, windows_core::IUnknown);
impl IFabricServiceHealthResult {
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub unsafe fn get_ServiceHealth(&self) -> *const super::FabricTypes::FABRIC_SERVICE_HEALTH {
unsafe {
(windows_core::Interface::vtable(self).get_ServiceHealth)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceHealthResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub get_ServiceHealth:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_HEALTH,
#[cfg(not(all(feature = "ServiceFabric_FabricTypes", feature = "Win32")))]
get_ServiceHealth: usize,
}
unsafe impl Send for IFabricServiceHealthResult {}
unsafe impl Sync for IFabricServiceHealthResult {}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
pub trait IFabricServiceHealthResult_Impl: windows_core::IUnknownImpl {
fn get_ServiceHealth(&self) -> *const super::FabricTypes::FABRIC_SERVICE_HEALTH;
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl IFabricServiceHealthResult_Vtbl {
pub const fn new<Identity: IFabricServiceHealthResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_ServiceHealth<
Identity: IFabricServiceHealthResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_HEALTH {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceHealthResult_Impl::get_ServiceHealth(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ServiceHealth: get_ServiceHealth::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceHealthResult as windows_core::Interface>::IID
}
}
#[cfg(all(feature = "ServiceFabric_FabricTypes", feature = "Win32"))]
impl windows_core::RuntimeName for IFabricServiceHealthResult {}
windows_core::imp::define_interface!(
IFabricServiceManagementClient,
IFabricServiceManagementClient_Vtbl,
0xf7368189_fd1f_437c_888d_8c89cecc57a0
);
windows_core::imp::interface_hierarchy!(IFabricServiceManagementClient, windows_core::IUnknown);
impl IFabricServiceManagementClient {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginCreateService<P2>(
&self,
description: *const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginCreateService)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndCreateService<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndCreateService)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginCreateServiceFromTemplate<P2, P6>(
&self,
applicationname: super::FabricTypes::FABRIC_URI,
servicename: super::FabricTypes::FABRIC_URI,
servicetypename: P2,
initializationdatasize: u32,
initializationdata: *const u8,
timeoutmilliseconds: u32,
callback: P6,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<windows_core::PCWSTR>,
P6: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginCreateServiceFromTemplate)(
windows_core::Interface::as_raw(self),
applicationname,
servicename,
servicetypename.param().abi(),
initializationdatasize,
initializationdata,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndCreateServiceFromTemplate<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndCreateServiceFromTemplate)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDeleteService<P2>(
&self,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDeleteService)(
windows_core::Interface::as_raw(self),
name,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDeleteService<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDeleteService)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetServiceDescription<P2>(
&self,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetServiceDescription)(
windows_core::Interface::as_raw(self),
name,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetServiceDescription<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricServiceDescriptionResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetServiceDescription)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn RegisterServicePartitionResolutionChangeHandler<P3>(
&self,
name: super::FabricTypes::FABRIC_URI,
keytype: super::FabricTypes::FABRIC_PARTITION_KEY_TYPE,
partitionkey: *const core::ffi::c_void,
callback: P3,
) -> windows_core::Result<i64>
where
P3: windows_core::Param<IFabricServicePartitionResolutionChangeHandler>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).RegisterServicePartitionResolutionChangeHandler)(
windows_core::Interface::as_raw(self),
name,
keytype,
partitionkey,
callback.param().abi(),
&mut result__,
)
.map(|| result__)
}
}
pub unsafe fn UnregisterServicePartitionResolutionChangeHandler(
&self,
callbackhandle: i64,
) -> windows_core::HRESULT {
unsafe {
(windows_core::Interface::vtable(self)
.UnregisterServicePartitionResolutionChangeHandler)(
windows_core::Interface::as_raw(self),
callbackhandle,
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginResolveServicePartition<P3, P5>(
&self,
name: super::FabricTypes::FABRIC_URI,
partitionkeytype: super::FabricTypes::FABRIC_PARTITION_KEY_TYPE,
partitionkey: *const core::ffi::c_void,
previousresult: P3,
timeoutmilliseconds: u32,
callback: P5,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P3: windows_core::Param<IFabricResolvedServicePartitionResult>,
P5: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginResolveServicePartition)(
windows_core::Interface::as_raw(self),
name,
partitionkeytype,
partitionkey,
previousresult.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndResolveServicePartition<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricResolvedServicePartitionResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndResolveServicePartition)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceManagementClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginCreateService: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginCreateService: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndCreateService: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndCreateService: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginCreateServiceFromTemplate: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
super::FabricTypes::FABRIC_URI,
windows_core::PCWSTR,
u32,
*const u8,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginCreateServiceFromTemplate: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndCreateServiceFromTemplate: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndCreateServiceFromTemplate: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDeleteService: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDeleteService: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDeleteService: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDeleteService: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetServiceDescription: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetServiceDescription: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetServiceDescription: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetServiceDescription: usize,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub RegisterServicePartitionResolutionChangeHandler:
unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
super::FabricTypes::FABRIC_PARTITION_KEY_TYPE,
*const core::ffi::c_void,
*mut core::ffi::c_void,
*mut i64,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
RegisterServicePartitionResolutionChangeHandler: usize,
pub UnregisterServicePartitionResolutionChangeHandler:
unsafe extern "system" fn(*mut core::ffi::c_void, i64) -> windows_core::HRESULT,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginResolveServicePartition: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
super::FabricTypes::FABRIC_PARTITION_KEY_TYPE,
*const core::ffi::c_void,
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginResolveServicePartition: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndResolveServicePartition: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndResolveServicePartition: usize,
}
unsafe impl Send for IFabricServiceManagementClient {}
unsafe impl Sync for IFabricServiceManagementClient {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceManagementClient_Impl: windows_core::IUnknownImpl {
fn BeginCreateService(
&self,
description: *const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndCreateService(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginCreateServiceFromTemplate(
&self,
applicationname: &super::FabricTypes::FABRIC_URI,
servicename: &super::FabricTypes::FABRIC_URI,
servicetypename: &windows_core::PCWSTR,
initializationdatasize: u32,
initializationdata: *const u8,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndCreateServiceFromTemplate(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginDeleteService(
&self,
name: &super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDeleteService(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetServiceDescription(
&self,
name: &super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetServiceDescription(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricServiceDescriptionResult>;
fn RegisterServicePartitionResolutionChangeHandler(
&self,
name: &super::FabricTypes::FABRIC_URI,
keytype: super::FabricTypes::FABRIC_PARTITION_KEY_TYPE,
partitionkey: *const core::ffi::c_void,
callback: windows_core::Ref<IFabricServicePartitionResolutionChangeHandler>,
) -> windows_core::Result<i64>;
fn UnregisterServicePartitionResolutionChangeHandler(
&self,
callbackhandle: i64,
) -> windows_core::Result<()>;
fn BeginResolveServicePartition(
&self,
name: &super::FabricTypes::FABRIC_URI,
partitionkeytype: super::FabricTypes::FABRIC_PARTITION_KEY_TYPE,
partitionkey: *const core::ffi::c_void,
previousresult: windows_core::Ref<IFabricResolvedServicePartitionResult>,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndResolveServicePartition(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricResolvedServicePartitionResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceManagementClient_Vtbl {
pub const fn new<Identity: IFabricServiceManagementClient_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginCreateService<
Identity: IFabricServiceManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_SERVICE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient_Impl::BeginCreateService(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndCreateService<
Identity: IFabricServiceManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient_Impl::EndCreateService(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginCreateServiceFromTemplate<
Identity: IFabricServiceManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
applicationname: super::FabricTypes::FABRIC_URI,
servicename: super::FabricTypes::FABRIC_URI,
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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient_Impl::BeginCreateServiceFromTemplate(
this,
core::mem::transmute(&applicationname),
core::mem::transmute(&servicename),
core::mem::transmute(&servicetypename),
core::mem::transmute_copy(&initializationdatasize),
core::mem::transmute_copy(&initializationdata),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndCreateServiceFromTemplate<
Identity: IFabricServiceManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient_Impl::EndCreateServiceFromTemplate(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginDeleteService<
Identity: IFabricServiceManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient_Impl::BeginDeleteService(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDeleteService<
Identity: IFabricServiceManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient_Impl::EndDeleteService(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetServiceDescription<
Identity: IFabricServiceManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient_Impl::BeginGetServiceDescription(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetServiceDescription<
Identity: IFabricServiceManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient_Impl::EndGetServiceDescription(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn RegisterServicePartitionResolutionChangeHandler<
Identity: IFabricServiceManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
keytype: super::FabricTypes::FABRIC_PARTITION_KEY_TYPE,
partitionkey: *const core::ffi::c_void,
callback: *mut core::ffi::c_void,
callbackhandle: *mut i64,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient_Impl::RegisterServicePartitionResolutionChangeHandler (this , core::mem::transmute (& name) , core::mem::transmute_copy (& keytype) , core::mem::transmute_copy (& partitionkey) , core::mem::transmute_copy (& callback) ,) { Ok (ok__) => { callbackhandle . write (ok__) ; windows_core::HRESULT (0) } Err (err) => err . into () }
}
}
unsafe extern "system" fn UnregisterServicePartitionResolutionChangeHandler<
Identity: IFabricServiceManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
callbackhandle: i64,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient_Impl::UnregisterServicePartitionResolutionChangeHandler (this , core::mem::transmute_copy (& callbackhandle) ,) . into ()
}
}
unsafe extern "system" fn BeginResolveServicePartition<
Identity: IFabricServiceManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
partitionkeytype: super::FabricTypes::FABRIC_PARTITION_KEY_TYPE,
partitionkey: *const core::ffi::c_void,
previousresult: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient_Impl::BeginResolveServicePartition(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&partitionkeytype),
core::mem::transmute_copy(&partitionkey),
core::mem::transmute_copy(&previousresult),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndResolveServicePartition<
Identity: 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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient_Impl::EndResolveServicePartition(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginCreateService: BeginCreateService::<Identity, OFFSET>,
EndCreateService: EndCreateService::<Identity, OFFSET>,
BeginCreateServiceFromTemplate: BeginCreateServiceFromTemplate::<Identity, OFFSET>,
EndCreateServiceFromTemplate: EndCreateServiceFromTemplate::<Identity, OFFSET>,
BeginDeleteService: BeginDeleteService::<Identity, OFFSET>,
EndDeleteService: EndDeleteService::<Identity, OFFSET>,
BeginGetServiceDescription: BeginGetServiceDescription::<Identity, OFFSET>,
EndGetServiceDescription: EndGetServiceDescription::<Identity, OFFSET>,
RegisterServicePartitionResolutionChangeHandler:
RegisterServicePartitionResolutionChangeHandler::<Identity, OFFSET>,
UnregisterServicePartitionResolutionChangeHandler:
UnregisterServicePartitionResolutionChangeHandler::<Identity, OFFSET>,
BeginResolveServicePartition: BeginResolveServicePartition::<Identity, OFFSET>,
EndResolveServicePartition: EndResolveServicePartition::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceManagementClient {}
windows_core::imp::define_interface!(
IFabricServiceManagementClient2,
IFabricServiceManagementClient2_Vtbl,
0x9933ed08_5d0c_4aed_bab6_f676bf5be8aa
);
impl core::ops::Deref for IFabricServiceManagementClient2 {
type Target = IFabricServiceManagementClient;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricServiceManagementClient2,
windows_core::IUnknown,
IFabricServiceManagementClient
);
impl IFabricServiceManagementClient2 {
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetServiceManifest<P0, P1, P2, P4>(
&self,
applicationtypename: P0,
applicationtypeversion: P1,
servicemanifestname: P2,
timeoutmilliseconds: u32,
callback: P4,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P0: windows_core::Param<windows_core::PCWSTR>,
P1: windows_core::Param<windows_core::PCWSTR>,
P2: windows_core::Param<windows_core::PCWSTR>,
P4: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetServiceManifest)(
windows_core::Interface::as_raw(self),
applicationtypename.param().abi(),
applicationtypeversion.param().abi(),
servicemanifestname.param().abi(),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetServiceManifest<P0>(
&self,
context: P0,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetServiceManifest)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginUpdateService<P3>(
&self,
name: super::FabricTypes::FABRIC_URI,
serviceupdatedescription: *const super::FabricTypes::FABRIC_SERVICE_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUpdateService)(
windows_core::Interface::as_raw(self),
name,
serviceupdatedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUpdateService<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUpdateService)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceManagementClient2_Vtbl {
pub base__: IFabricServiceManagementClient_Vtbl,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetServiceManifest: unsafe extern "system" fn(
*mut core::ffi::c_void,
windows_core::PCWSTR,
windows_core::PCWSTR,
windows_core::PCWSTR,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetServiceManifest: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetServiceManifest: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetServiceManifest: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginUpdateService: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
*const super::FabricTypes::FABRIC_SERVICE_UPDATE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginUpdateService: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUpdateService: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUpdateService: usize,
}
unsafe impl Send for IFabricServiceManagementClient2 {}
unsafe impl Sync for IFabricServiceManagementClient2 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceManagementClient2_Impl: IFabricServiceManagementClient_Impl {
fn BeginGetServiceManifest(
&self,
applicationtypename: &windows_core::PCWSTR,
applicationtypeversion: &windows_core::PCWSTR,
servicemanifestname: &windows_core::PCWSTR,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetServiceManifest(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<super::FabricCommon::IFabricStringResult>;
fn BeginUpdateService(
&self,
name: &super::FabricTypes::FABRIC_URI,
serviceupdatedescription: *const super::FabricTypes::FABRIC_SERVICE_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUpdateService(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceManagementClient2_Vtbl {
pub const fn new<Identity: IFabricServiceManagementClient2_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginGetServiceManifest<
Identity: IFabricServiceManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient2_Impl::BeginGetServiceManifest(
this,
core::mem::transmute(&applicationtypename),
core::mem::transmute(&applicationtypeversion),
core::mem::transmute(&servicemanifestname),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetServiceManifest<
Identity: 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 {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient2_Impl::EndGetServiceManifest(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginUpdateService<
Identity: IFabricServiceManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
name: super::FabricTypes::FABRIC_URI,
serviceupdatedescription: *const super::FabricTypes::FABRIC_SERVICE_UPDATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient2_Impl::BeginUpdateService(
this,
core::mem::transmute(&name),
core::mem::transmute_copy(&serviceupdatedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUpdateService<
Identity: IFabricServiceManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient2_Impl::EndUpdateService(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricServiceManagementClient_Vtbl::new::<Identity, OFFSET>(),
BeginGetServiceManifest: BeginGetServiceManifest::<Identity, OFFSET>,
EndGetServiceManifest: EndGetServiceManifest::<Identity, OFFSET>,
BeginUpdateService: BeginUpdateService::<Identity, OFFSET>,
EndUpdateService: EndUpdateService::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceManagementClient2 {}
windows_core::imp::define_interface!(
IFabricServiceManagementClient3,
IFabricServiceManagementClient3_Vtbl,
0x98ec1156_c249_4f66_8d7c_9a5fa88e8e6d
);
impl core::ops::Deref for IFabricServiceManagementClient3 {
type Target = IFabricServiceManagementClient2;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricServiceManagementClient3,
windows_core::IUnknown,
IFabricServiceManagementClient,
IFabricServiceManagementClient2
);
impl IFabricServiceManagementClient3 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginRemoveReplica<P2>(
&self,
description: *const super::FabricTypes::FABRIC_REMOVE_REPLICA_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRemoveReplica)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRemoveReplica<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndRemoveReplica)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginRestartReplica<P2>(
&self,
description: *const super::FabricTypes::FABRIC_RESTART_REPLICA_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRestartReplica)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRestartReplica<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndRestartReplica)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceManagementClient3_Vtbl {
pub base__: IFabricServiceManagementClient2_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginRemoveReplica: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_REMOVE_REPLICA_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginRemoveReplica: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRemoveReplica: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRemoveReplica: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginRestartReplica: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_RESTART_REPLICA_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginRestartReplica: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRestartReplica: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRestartReplica: usize,
}
unsafe impl Send for IFabricServiceManagementClient3 {}
unsafe impl Sync for IFabricServiceManagementClient3 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceManagementClient3_Impl: IFabricServiceManagementClient2_Impl {
fn BeginRemoveReplica(
&self,
description: *const super::FabricTypes::FABRIC_REMOVE_REPLICA_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRemoveReplica(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginRestartReplica(
&self,
description: *const super::FabricTypes::FABRIC_RESTART_REPLICA_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRestartReplica(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceManagementClient3_Vtbl {
pub const fn new<Identity: IFabricServiceManagementClient3_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginRemoveReplica<
Identity: IFabricServiceManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_REMOVE_REPLICA_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient3_Impl::BeginRemoveReplica(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRemoveReplica<
Identity: IFabricServiceManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient3_Impl::EndRemoveReplica(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginRestartReplica<
Identity: IFabricServiceManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_RESTART_REPLICA_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient3_Impl::BeginRestartReplica(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRestartReplica<
Identity: IFabricServiceManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient3_Impl::EndRestartReplica(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricServiceManagementClient2_Vtbl::new::<Identity, OFFSET>(),
BeginRemoveReplica: BeginRemoveReplica::<Identity, OFFSET>,
EndRemoveReplica: EndRemoveReplica::<Identity, OFFSET>,
BeginRestartReplica: BeginRestartReplica::<Identity, OFFSET>,
EndRestartReplica: EndRestartReplica::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient2 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceManagementClient3 {}
windows_core::imp::define_interface!(
IFabricServiceManagementClient4,
IFabricServiceManagementClient4_Vtbl,
0x8180db27_7d0b_43b0_82e0_4a8e022fc238
);
impl core::ops::Deref for IFabricServiceManagementClient4 {
type Target = IFabricServiceManagementClient3;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricServiceManagementClient4,
windows_core::IUnknown,
IFabricServiceManagementClient,
IFabricServiceManagementClient2,
IFabricServiceManagementClient3
);
impl IFabricServiceManagementClient4 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginRegisterServiceNotificationFilter<P2>(
&self,
description: *const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginRegisterServiceNotificationFilter)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndRegisterServiceNotificationFilter<P0>(
&self,
context: P0,
) -> windows_core::Result<i64>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndRegisterServiceNotificationFilter)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.map(|| result__)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginUnregisterServiceNotificationFilter<P2>(
&self,
filterid: i64,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginUnregisterServiceNotificationFilter)(
windows_core::Interface::as_raw(self),
filterid,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndUnregisterServiceNotificationFilter<P0>(
&self,
context: P0,
) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndUnregisterServiceNotificationFilter)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceManagementClient4_Vtbl {
pub base__: IFabricServiceManagementClient3_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginRegisterServiceNotificationFilter: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginRegisterServiceNotificationFilter: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndRegisterServiceNotificationFilter: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut i64,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndRegisterServiceNotificationFilter: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginUnregisterServiceNotificationFilter:
unsafe extern "system" fn(
*mut core::ffi::c_void,
i64,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginUnregisterServiceNotificationFilter: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndUnregisterServiceNotificationFilter: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndUnregisterServiceNotificationFilter: usize,
}
unsafe impl Send for IFabricServiceManagementClient4 {}
unsafe impl Sync for IFabricServiceManagementClient4 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceManagementClient4_Impl: IFabricServiceManagementClient3_Impl {
fn BeginRegisterServiceNotificationFilter(
&self,
description: *const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndRegisterServiceNotificationFilter(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<i64>;
fn BeginUnregisterServiceNotificationFilter(
&self,
filterid: i64,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndUnregisterServiceNotificationFilter(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceManagementClient4_Vtbl {
pub const fn new<Identity: IFabricServiceManagementClient4_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginRegisterServiceNotificationFilter<
Identity: IFabricServiceManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION_FILTER_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient4_Impl::BeginRegisterServiceNotificationFilter(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndRegisterServiceNotificationFilter<
Identity: IFabricServiceManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
filterid: *mut i64,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient4_Impl::EndRegisterServiceNotificationFilter(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
filterid.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginUnregisterServiceNotificationFilter<
Identity: IFabricServiceManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
filterid: i64,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient4_Impl::BeginUnregisterServiceNotificationFilter(
this,
core::mem::transmute_copy(&filterid),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndUnregisterServiceNotificationFilter<
Identity: IFabricServiceManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient4_Impl::EndUnregisterServiceNotificationFilter(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricServiceManagementClient3_Vtbl::new::<Identity, OFFSET>(),
BeginRegisterServiceNotificationFilter: BeginRegisterServiceNotificationFilter::<
Identity,
OFFSET,
>,
EndRegisterServiceNotificationFilter: EndRegisterServiceNotificationFilter::<
Identity,
OFFSET,
>,
BeginUnregisterServiceNotificationFilter: BeginUnregisterServiceNotificationFilter::<
Identity,
OFFSET,
>,
EndUnregisterServiceNotificationFilter: EndUnregisterServiceNotificationFilter::<
Identity,
OFFSET,
>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient3 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceManagementClient4 {}
windows_core::imp::define_interface!(
IFabricServiceManagementClient5,
IFabricServiceManagementClient5_Vtbl,
0xf9a70679_8ca3_4e27_9411_483e0c89b1fa
);
impl core::ops::Deref for IFabricServiceManagementClient5 {
type Target = IFabricServiceManagementClient4;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricServiceManagementClient5,
windows_core::IUnknown,
IFabricServiceManagementClient,
IFabricServiceManagementClient2,
IFabricServiceManagementClient3,
IFabricServiceManagementClient4
);
impl IFabricServiceManagementClient5 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDeleteService2<P2>(
&self,
deletedescription: *const super::FabricTypes::FABRIC_DELETE_SERVICE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDeleteService2)(
windows_core::Interface::as_raw(self),
deletedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDeleteService2<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDeleteService2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceManagementClient5_Vtbl {
pub base__: IFabricServiceManagementClient4_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDeleteService2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DELETE_SERVICE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDeleteService2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDeleteService2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDeleteService2: usize,
}
unsafe impl Send for IFabricServiceManagementClient5 {}
unsafe impl Sync for IFabricServiceManagementClient5 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceManagementClient5_Impl: IFabricServiceManagementClient4_Impl {
fn BeginDeleteService2(
&self,
deletedescription: *const super::FabricTypes::FABRIC_DELETE_SERVICE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDeleteService2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceManagementClient5_Vtbl {
pub const fn new<Identity: IFabricServiceManagementClient5_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginDeleteService2<
Identity: IFabricServiceManagementClient5_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
deletedescription: *const super::FabricTypes::FABRIC_DELETE_SERVICE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient5_Impl::BeginDeleteService2(
this,
core::mem::transmute_copy(&deletedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDeleteService2<
Identity: IFabricServiceManagementClient5_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient5_Impl::EndDeleteService2(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricServiceManagementClient4_Vtbl::new::<Identity, OFFSET>(),
BeginDeleteService2: BeginDeleteService2::<Identity, OFFSET>,
EndDeleteService2: EndDeleteService2::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient4 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceManagementClient5 {}
windows_core::imp::define_interface!(
IFabricServiceManagementClient6,
IFabricServiceManagementClient6_Vtbl,
0x23e4ee1b_049a_48f5_8dd7_b601eace47de
);
impl core::ops::Deref for IFabricServiceManagementClient6 {
type Target = IFabricServiceManagementClient5;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricServiceManagementClient6,
windows_core::IUnknown,
IFabricServiceManagementClient,
IFabricServiceManagementClient2,
IFabricServiceManagementClient3,
IFabricServiceManagementClient4,
IFabricServiceManagementClient5
);
impl IFabricServiceManagementClient6 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginCreateServiceFromTemplate2<P2>(
&self,
servicefromtemplatedescription : * const super::FabricTypes::FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginCreateServiceFromTemplate2)(
windows_core::Interface::as_raw(self),
servicefromtemplatedescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndCreateServiceFromTemplate2<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndCreateServiceFromTemplate2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceManagementClient6_Vtbl {
pub base__: IFabricServiceManagementClient5_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginCreateServiceFromTemplate2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginCreateServiceFromTemplate2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndCreateServiceFromTemplate2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndCreateServiceFromTemplate2: usize,
}
unsafe impl Send for IFabricServiceManagementClient6 {}
unsafe impl Sync for IFabricServiceManagementClient6 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceManagementClient6_Impl: IFabricServiceManagementClient5_Impl {
fn BeginCreateServiceFromTemplate2(
&self,
servicefromtemplatedescription : * const super::FabricTypes::FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndCreateServiceFromTemplate2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceManagementClient6_Vtbl {
pub const fn new<Identity: IFabricServiceManagementClient6_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginCreateServiceFromTemplate2<
Identity: IFabricServiceManagementClient6_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
servicefromtemplatedescription : * const super::FabricTypes::FABRIC_SERVICE_FROM_TEMPLATE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient6_Impl::BeginCreateServiceFromTemplate2(
this,
core::mem::transmute_copy(&servicefromtemplatedescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndCreateServiceFromTemplate2<
Identity: IFabricServiceManagementClient6_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient6_Impl::EndCreateServiceFromTemplate2(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricServiceManagementClient5_Vtbl::new::<Identity, OFFSET>(),
BeginCreateServiceFromTemplate2: BeginCreateServiceFromTemplate2::<Identity, OFFSET>,
EndCreateServiceFromTemplate2: EndCreateServiceFromTemplate2::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient5 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceManagementClient6 {}
windows_core::imp::define_interface!(
IFabricServiceManagementClient7,
IFabricServiceManagementClient7_Vtbl,
0x332c88b9_ba98_429f_bb50_a562c17476eb
);
impl core::ops::Deref for IFabricServiceManagementClient7 {
type Target = IFabricServiceManagementClient6;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricServiceManagementClient7,
windows_core::IUnknown,
IFabricServiceManagementClient,
IFabricServiceManagementClient2,
IFabricServiceManagementClient3,
IFabricServiceManagementClient4,
IFabricServiceManagementClient5,
IFabricServiceManagementClient6
);
impl IFabricServiceManagementClient7 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginReportCompletion<P2>(
&self,
description: *const super::FabricTypes::FABRIC_COMPLETE_REPLICA_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginReportCompletion)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndReportCompletion<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndReportCompletion)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceManagementClient7_Vtbl {
pub base__: IFabricServiceManagementClient6_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginReportCompletion: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_COMPLETE_REPLICA_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginReportCompletion: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndReportCompletion: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndReportCompletion: usize,
}
unsafe impl Send for IFabricServiceManagementClient7 {}
unsafe impl Sync for IFabricServiceManagementClient7 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceManagementClient7_Impl: IFabricServiceManagementClient6_Impl {
fn BeginReportCompletion(
&self,
description: *const super::FabricTypes::FABRIC_COMPLETE_REPLICA_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndReportCompletion(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceManagementClient7_Vtbl {
pub const fn new<Identity: IFabricServiceManagementClient7_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginReportCompletion<
Identity: IFabricServiceManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_COMPLETE_REPLICA_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient7_Impl::BeginReportCompletion(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndReportCompletion<
Identity: IFabricServiceManagementClient7_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient7_Impl::EndReportCompletion(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricServiceManagementClient6_Vtbl::new::<Identity, OFFSET>(),
BeginReportCompletion: BeginReportCompletion::<Identity, OFFSET>,
EndReportCompletion: EndReportCompletion::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient6 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceManagementClient7 {}
windows_core::imp::define_interface!(
IFabricServiceManagementClient8,
IFabricServiceManagementClient8_Vtbl,
0x27309db9_61a7_ae11_967a_bbff7d5a5460
);
impl core::ops::Deref for IFabricServiceManagementClient8 {
type Target = IFabricServiceManagementClient7;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricServiceManagementClient8,
windows_core::IUnknown,
IFabricServiceManagementClient,
IFabricServiceManagementClient2,
IFabricServiceManagementClient3,
IFabricServiceManagementClient4,
IFabricServiceManagementClient5,
IFabricServiceManagementClient6,
IFabricServiceManagementClient7
);
impl IFabricServiceManagementClient8 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDisableService<P3>(
&self,
servicenameuri: super::FabricTypes::FABRIC_URI,
disableserviceflag: super::FabricTypes::FABRIC_SERVICE_DISABLE_FLAG,
timeoutmilliseconds: u32,
callback: P3,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P3: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDisableService)(
windows_core::Interface::as_raw(self),
servicenameuri,
disableserviceflag,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDisableService<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDisableService)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginEnableService<P2>(
&self,
servicenameuri: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginEnableService)(
windows_core::Interface::as_raw(self),
servicenameuri,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndEnableService<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndEnableService)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceManagementClient8_Vtbl {
pub base__: IFabricServiceManagementClient7_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDisableService: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
super::FabricTypes::FABRIC_SERVICE_DISABLE_FLAG,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDisableService: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDisableService: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDisableService: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginEnableService: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_URI,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginEnableService: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndEnableService: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndEnableService: usize,
}
unsafe impl Send for IFabricServiceManagementClient8 {}
unsafe impl Sync for IFabricServiceManagementClient8 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceManagementClient8_Impl: IFabricServiceManagementClient7_Impl {
fn BeginDisableService(
&self,
servicenameuri: &super::FabricTypes::FABRIC_URI,
disableserviceflag: super::FabricTypes::FABRIC_SERVICE_DISABLE_FLAG,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDisableService(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginEnableService(
&self,
servicenameuri: &super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndEnableService(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceManagementClient8_Vtbl {
pub const fn new<Identity: IFabricServiceManagementClient8_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginDisableService<
Identity: IFabricServiceManagementClient8_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
servicenameuri: super::FabricTypes::FABRIC_URI,
disableserviceflag: super::FabricTypes::FABRIC_SERVICE_DISABLE_FLAG,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient8_Impl::BeginDisableService(
this,
core::mem::transmute(&servicenameuri),
core::mem::transmute_copy(&disableserviceflag),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDisableService<
Identity: IFabricServiceManagementClient8_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient8_Impl::EndDisableService(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginEnableService<
Identity: IFabricServiceManagementClient8_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
servicenameuri: super::FabricTypes::FABRIC_URI,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient8_Impl::BeginEnableService(
this,
core::mem::transmute(&servicenameuri),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndEnableService<
Identity: IFabricServiceManagementClient8_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient8_Impl::EndEnableService(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricServiceManagementClient7_Vtbl::new::<Identity, OFFSET>(),
BeginDisableService: BeginDisableService::<Identity, OFFSET>,
EndDisableService: EndDisableService::<Identity, OFFSET>,
BeginEnableService: BeginEnableService::<Identity, OFFSET>,
EndEnableService: EndEnableService::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceManagementClient8 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient7 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceManagementClient8 {}
windows_core::imp::define_interface!(
IFabricServiceManagementClient9,
IFabricServiceManagementClient9_Vtbl,
0xb5ae51b2_62e1_4bd8_bd7e_f47a96b8de96
);
impl core::ops::Deref for IFabricServiceManagementClient9 {
type Target = IFabricServiceManagementClient8;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricServiceManagementClient9,
windows_core::IUnknown,
IFabricServiceManagementClient,
IFabricServiceManagementClient2,
IFabricServiceManagementClient3,
IFabricServiceManagementClient4,
IFabricServiceManagementClient5,
IFabricServiceManagementClient6,
IFabricServiceManagementClient7,
IFabricServiceManagementClient8
);
impl IFabricServiceManagementClient9 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginDisableService2<P2>(
&self,
disabledescription: *const super::FabricTypes::FABRIC_DISABLE_SERVICE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginDisableService2)(
windows_core::Interface::as_raw(self),
disabledescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndDisableService2<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndDisableService2)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceManagementClient9_Vtbl {
pub base__: IFabricServiceManagementClient8_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginDisableService2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_DISABLE_SERVICE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginDisableService2: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndDisableService2: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndDisableService2: usize,
}
unsafe impl Send for IFabricServiceManagementClient9 {}
unsafe impl Sync for IFabricServiceManagementClient9 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricServiceManagementClient9_Impl: IFabricServiceManagementClient8_Impl {
fn BeginDisableService2(
&self,
disabledescription: *const super::FabricTypes::FABRIC_DISABLE_SERVICE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndDisableService2(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricServiceManagementClient9_Vtbl {
pub const fn new<Identity: IFabricServiceManagementClient9_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn BeginDisableService2<
Identity: IFabricServiceManagementClient9_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
disabledescription: *const super::FabricTypes::FABRIC_DISABLE_SERVICE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceManagementClient9_Impl::BeginDisableService2(
this,
core::mem::transmute_copy(&disabledescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndDisableService2<
Identity: IFabricServiceManagementClient9_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceManagementClient9_Impl::EndDisableService2(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricServiceManagementClient8_Vtbl::new::<Identity, OFFSET>(),
BeginDisableService2: BeginDisableService2::<Identity, OFFSET>,
EndDisableService2: EndDisableService2::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceManagementClient9 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient6 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient7 as windows_core::Interface>::IID
|| iid == &<IFabricServiceManagementClient8 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricServiceManagementClient9 {}
windows_core::imp::define_interface!(
IFabricServiceNotification,
IFabricServiceNotification_Vtbl,
0x8222c825_08ad_4639_afce_a8988cbd6db3
);
windows_core::imp::interface_hierarchy!(IFabricServiceNotification, windows_core::IUnknown);
impl IFabricServiceNotification {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Notification(
&self,
) -> *const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION {
unsafe {
(windows_core::Interface::vtable(self).get_Notification)(
windows_core::Interface::as_raw(self),
)
}
}
pub unsafe fn GetVersion(&self) -> windows_core::Result<IFabricServiceEndpointsVersion> {
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetVersion)(
windows_core::Interface::as_raw(self),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceNotification_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Notification:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Notification: usize,
pub GetVersion: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
}
unsafe impl Send for IFabricServiceNotification {}
unsafe impl Sync for IFabricServiceNotification {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricServiceNotification_Impl: windows_core::IUnknownImpl {
fn get_Notification(&self) -> *const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION;
fn GetVersion(&self) -> windows_core::Result<IFabricServiceEndpointsVersion>;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricServiceNotification_Vtbl {
pub const fn new<Identity: IFabricServiceNotification_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Notification<
Identity: IFabricServiceNotification_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_SERVICE_NOTIFICATION {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceNotification_Impl::get_Notification(this)
}
}
unsafe extern "system" fn GetVersion<
Identity: IFabricServiceNotification_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricServiceNotification_Impl::GetVersion(this) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Notification: get_Notification::<Identity, OFFSET>,
GetVersion: GetVersion::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceNotification as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricServiceNotification {}
windows_core::imp::define_interface!(
IFabricServiceNotificationEventHandler,
IFabricServiceNotificationEventHandler_Vtbl,
0xa04b7e9a_daab_45d4_8da3_95ef3ab5dbac
);
windows_core::imp::interface_hierarchy!(
IFabricServiceNotificationEventHandler,
windows_core::IUnknown
);
impl IFabricServiceNotificationEventHandler {
pub unsafe fn OnNotification<P0>(&self, param0: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<IFabricServiceNotification>,
{
unsafe {
(windows_core::Interface::vtable(self).OnNotification)(
windows_core::Interface::as_raw(self),
param0.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServiceNotificationEventHandler_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
pub OnNotification: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
}
unsafe impl Send for IFabricServiceNotificationEventHandler {}
unsafe impl Sync for IFabricServiceNotificationEventHandler {}
pub trait IFabricServiceNotificationEventHandler_Impl: windows_core::IUnknownImpl {
fn OnNotification(
&self,
param0: windows_core::Ref<IFabricServiceNotification>,
) -> windows_core::Result<()>;
}
impl IFabricServiceNotificationEventHandler_Vtbl {
pub const fn new<Identity: IFabricServiceNotificationEventHandler_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn OnNotification<
Identity: IFabricServiceNotificationEventHandler_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
param0: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServiceNotificationEventHandler_Impl::OnNotification(
this,
core::mem::transmute_copy(¶m0),
)
.into()
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
OnNotification: OnNotification::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServiceNotificationEventHandler as windows_core::Interface>::IID
}
}
impl windows_core::RuntimeName for IFabricServiceNotificationEventHandler {}
windows_core::imp::define_interface!(
IFabricServicePartitionResolutionChangeHandler,
IFabricServicePartitionResolutionChangeHandler_Vtbl,
0xf495715d_8e03_4232_b8d6_1227b39984fc
);
windows_core::imp::interface_hierarchy!(
IFabricServicePartitionResolutionChangeHandler,
windows_core::IUnknown
);
impl IFabricServicePartitionResolutionChangeHandler {
pub unsafe fn OnChange<P0, P2>(
&self,
source: P0,
handlerid: i64,
partition: P2,
error: windows_core::HRESULT,
) where
P0: windows_core::Param<IFabricServiceManagementClient>,
P2: windows_core::Param<IFabricResolvedServicePartitionResult>,
{
unsafe {
(windows_core::Interface::vtable(self).OnChange)(
windows_core::Interface::as_raw(self),
source.param().abi(),
handlerid,
partition.param().abi(),
error,
);
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricServicePartitionResolutionChangeHandler_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
pub OnChange: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
i64,
*mut core::ffi::c_void,
windows_core::HRESULT,
),
}
unsafe impl Send for IFabricServicePartitionResolutionChangeHandler {}
unsafe impl Sync for IFabricServicePartitionResolutionChangeHandler {}
pub trait IFabricServicePartitionResolutionChangeHandler_Impl: windows_core::IUnknownImpl {
fn OnChange(
&self,
source: windows_core::Ref<IFabricServiceManagementClient>,
handlerid: i64,
partition: windows_core::Ref<IFabricResolvedServicePartitionResult>,
error: windows_core::HRESULT,
);
}
impl IFabricServicePartitionResolutionChangeHandler_Vtbl {
pub const fn new<
Identity: IFabricServicePartitionResolutionChangeHandler_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn OnChange<
Identity: IFabricServicePartitionResolutionChangeHandler_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
source: *mut core::ffi::c_void,
handlerid: i64,
partition: *mut core::ffi::c_void,
error: windows_core::HRESULT,
) {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricServicePartitionResolutionChangeHandler_Impl::OnChange(
this,
core::mem::transmute_copy(&source),
core::mem::transmute_copy(&handlerid),
core::mem::transmute_copy(&partition),
core::mem::transmute_copy(&error),
);
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
OnChange: OnChange::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricServicePartitionResolutionChangeHandler as windows_core::Interface>::IID
}
}
impl windows_core::RuntimeName for IFabricServicePartitionResolutionChangeHandler {}
windows_core::imp::define_interface!(
IFabricStartNodeResult,
IFabricStartNodeResult_Vtbl,
0x7e9f51a5_88ac_49b8_958d_329e3334802e
);
windows_core::imp::interface_hierarchy!(IFabricStartNodeResult, windows_core::IUnknown);
impl IFabricStartNodeResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT {
unsafe {
(windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricStartNodeResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Result: unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_NODE_RESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Result: usize,
}
unsafe impl Send for IFabricStartNodeResult {}
unsafe impl Sync for IFabricStartNodeResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricStartNodeResult_Impl: windows_core::IUnknownImpl {
fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricStartNodeResult_Vtbl {
pub const fn new<Identity: IFabricStartNodeResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Result<
Identity: IFabricStartNodeResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_NODE_RESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricStartNodeResult_Impl::get_Result(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Result: get_Result::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricStartNodeResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricStartNodeResult {}
windows_core::imp::define_interface!(
IFabricStopNodeResult,
IFabricStopNodeResult_Vtbl,
0x711d60a6_9623_476c_970c_83059a0b4d55
);
windows_core::imp::interface_hierarchy!(IFabricStopNodeResult, windows_core::IUnknown);
impl IFabricStopNodeResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT {
unsafe {
(windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricStopNodeResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Result: unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_NODE_RESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Result: usize,
}
unsafe impl Send for IFabricStopNodeResult {}
unsafe impl Sync for IFabricStopNodeResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricStopNodeResult_Impl: windows_core::IUnknownImpl {
fn get_Result(&self) -> *mut super::FabricTypes::FABRIC_NODE_RESULT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricStopNodeResult_Vtbl {
pub const fn new<Identity: IFabricStopNodeResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Result<
Identity: IFabricStopNodeResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *mut super::FabricTypes::FABRIC_NODE_RESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricStopNodeResult_Impl::get_Result(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Result: get_Result::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricStopNodeResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricStopNodeResult {}
windows_core::imp::define_interface!(
IFabricTestCommandStatusResult,
IFabricTestCommandStatusResult_Vtbl,
0x87798f5c_e600_493a_a926_16b6807378e6
);
windows_core::imp::interface_hierarchy!(IFabricTestCommandStatusResult, windows_core::IUnknown);
impl IFabricTestCommandStatusResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_Result(&self) -> *const super::FabricTypes::TEST_COMMAND_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_Result)(windows_core::Interface::as_raw(
self,
))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricTestCommandStatusResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_Result:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> *const super::FabricTypes::TEST_COMMAND_QUERY_RESULT_LIST,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_Result: usize,
}
unsafe impl Send for IFabricTestCommandStatusResult {}
unsafe impl Sync for IFabricTestCommandStatusResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricTestCommandStatusResult_Impl: windows_core::IUnknownImpl {
fn get_Result(&self) -> *const super::FabricTypes::TEST_COMMAND_QUERY_RESULT_LIST;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricTestCommandStatusResult_Vtbl {
pub const fn new<Identity: IFabricTestCommandStatusResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_Result<
Identity: IFabricTestCommandStatusResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::TEST_COMMAND_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricTestCommandStatusResult_Impl::get_Result(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_Result: get_Result::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricTestCommandStatusResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricTestCommandStatusResult {}
windows_core::imp::define_interface!(
IFabricTestManagementClient,
IFabricTestManagementClient_Vtbl,
0x0df0f63a_4da0_44fe_81e8_f80cd28e9b28
);
windows_core::imp::interface_hierarchy!(IFabricTestManagementClient, windows_core::IUnknown);
impl IFabricTestManagementClient {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginStartPartitionDataLoss<P2>(
&self,
description: *const super::FabricTypes::FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginStartPartitionDataLoss)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndStartPartitionDataLoss<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndStartPartitionDataLoss)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetPartitionDataLossProgress<P2>(
&self,
operationid: super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetPartitionDataLossProgress)(
windows_core::Interface::as_raw(self),
operationid,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetPartitionDataLossProgress<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricPartitionDataLossProgressResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetPartitionDataLossProgress)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginStartPartitionQuorumLoss<P2>(
&self,
description: *const super::FabricTypes::FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginStartPartitionQuorumLoss)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndStartPartitionQuorumLoss<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndStartPartitionQuorumLoss)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetPartitionQuorumLossProgress<P2>(
&self,
operationid: super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetPartitionQuorumLossProgress)(
windows_core::Interface::as_raw(self),
operationid,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetPartitionQuorumLossProgress<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricPartitionQuorumLossProgressResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetPartitionQuorumLossProgress)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginStartPartitionRestart<P2>(
&self,
description: *const super::FabricTypes::FABRIC_START_PARTITION_RESTART_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginStartPartitionRestart)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndStartPartitionRestart<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndStartPartitionRestart)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetPartitionRestartProgress<P2>(
&self,
operationid: super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetPartitionRestartProgress)(
windows_core::Interface::as_raw(self),
operationid,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetPartitionRestartProgress<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricPartitionRestartProgressResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetPartitionRestartProgress)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetTestCommandStatusList<P2>(
&self,
operationid: *const super::FabricTypes::FABRIC_TEST_COMMAND_LIST_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetTestCommandStatusList)(
windows_core::Interface::as_raw(self),
operationid,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetTestCommandStatusList<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricTestCommandStatusResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetTestCommandStatusList)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginCancelTestCommand<P2>(
&self,
description: *const super::FabricTypes::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginCancelTestCommand)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndCancelTestCommand<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndCancelTestCommand)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricTestManagementClient_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginStartPartitionDataLoss: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginStartPartitionDataLoss: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndStartPartitionDataLoss: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndStartPartitionDataLoss: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetPartitionDataLossProgress: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetPartitionDataLossProgress: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetPartitionDataLossProgress: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetPartitionDataLossProgress: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginStartPartitionQuorumLoss: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginStartPartitionQuorumLoss: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndStartPartitionQuorumLoss: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndStartPartitionQuorumLoss: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetPartitionQuorumLossProgress: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
)
-> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetPartitionQuorumLossProgress: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetPartitionQuorumLossProgress: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetPartitionQuorumLossProgress: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginStartPartitionRestart: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_START_PARTITION_RESTART_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginStartPartitionRestart: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndStartPartitionRestart: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndStartPartitionRestart: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetPartitionRestartProgress: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetPartitionRestartProgress: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetPartitionRestartProgress: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetPartitionRestartProgress: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetTestCommandStatusList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_TEST_COMMAND_LIST_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetTestCommandStatusList: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetTestCommandStatusList: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetTestCommandStatusList: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginCancelTestCommand: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginCancelTestCommand: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndCancelTestCommand: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndCancelTestCommand: usize,
}
unsafe impl Send for IFabricTestManagementClient {}
unsafe impl Sync for IFabricTestManagementClient {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub trait IFabricTestManagementClient_Impl: windows_core::IUnknownImpl {
fn BeginStartPartitionDataLoss(
&self,
description: *const super::FabricTypes::FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndStartPartitionDataLoss(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetPartitionDataLossProgress(
&self,
operationid: &super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetPartitionDataLossProgress(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricPartitionDataLossProgressResult>;
fn BeginStartPartitionQuorumLoss(
&self,
description: *const super::FabricTypes::FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndStartPartitionQuorumLoss(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetPartitionQuorumLossProgress(
&self,
operationid: &super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetPartitionQuorumLossProgress(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricPartitionQuorumLossProgressResult>;
fn BeginStartPartitionRestart(
&self,
description: *const super::FabricTypes::FABRIC_START_PARTITION_RESTART_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndStartPartitionRestart(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetPartitionRestartProgress(
&self,
operationid: &super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetPartitionRestartProgress(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricPartitionRestartProgressResult>;
fn BeginGetTestCommandStatusList(
&self,
operationid: *const super::FabricTypes::FABRIC_TEST_COMMAND_LIST_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetTestCommandStatusList(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricTestCommandStatusResult>;
fn BeginCancelTestCommand(
&self,
description: *const super::FabricTypes::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndCancelTestCommand(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl IFabricTestManagementClient_Vtbl {
pub const fn new<Identity: IFabricTestManagementClient_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginStartPartitionDataLoss<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_START_PARTITION_DATA_LOSS_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient_Impl::BeginStartPartitionDataLoss(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndStartPartitionDataLoss<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricTestManagementClient_Impl::EndStartPartitionDataLoss(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetPartitionDataLossProgress<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
operationid: super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient_Impl::BeginGetPartitionDataLossProgress(
this,
core::mem::transmute(&operationid),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetPartitionDataLossProgress<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient_Impl::EndGetPartitionDataLossProgress(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginStartPartitionQuorumLoss<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_START_PARTITION_QUORUM_LOSS_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient_Impl::BeginStartPartitionQuorumLoss(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndStartPartitionQuorumLoss<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricTestManagementClient_Impl::EndStartPartitionQuorumLoss(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetPartitionQuorumLossProgress<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
operationid: super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient_Impl::BeginGetPartitionQuorumLossProgress(
this,
core::mem::transmute(&operationid),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetPartitionQuorumLossProgress<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient_Impl::EndGetPartitionQuorumLossProgress(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginStartPartitionRestart<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_START_PARTITION_RESTART_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient_Impl::BeginStartPartitionRestart(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndStartPartitionRestart<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricTestManagementClient_Impl::EndStartPartitionRestart(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetPartitionRestartProgress<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
operationid: super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient_Impl::BeginGetPartitionRestartProgress(
this,
core::mem::transmute(&operationid),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetPartitionRestartProgress<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient_Impl::EndGetPartitionRestartProgress(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetTestCommandStatusList<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
operationid: *const super::FabricTypes::FABRIC_TEST_COMMAND_LIST_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient_Impl::BeginGetTestCommandStatusList(
this,
core::mem::transmute_copy(&operationid),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetTestCommandStatusList<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient_Impl::EndGetTestCommandStatusList(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginCancelTestCommand<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_CANCEL_TEST_COMMAND_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient_Impl::BeginCancelTestCommand(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndCancelTestCommand<
Identity: IFabricTestManagementClient_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricTestManagementClient_Impl::EndCancelTestCommand(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
BeginStartPartitionDataLoss: BeginStartPartitionDataLoss::<Identity, OFFSET>,
EndStartPartitionDataLoss: EndStartPartitionDataLoss::<Identity, OFFSET>,
BeginGetPartitionDataLossProgress: BeginGetPartitionDataLossProgress::<Identity, OFFSET>,
EndGetPartitionDataLossProgress: EndGetPartitionDataLossProgress::<Identity, OFFSET>,
BeginStartPartitionQuorumLoss: BeginStartPartitionQuorumLoss::<Identity, OFFSET>,
EndStartPartitionQuorumLoss: EndStartPartitionQuorumLoss::<Identity, OFFSET>,
BeginGetPartitionQuorumLossProgress: BeginGetPartitionQuorumLossProgress::<
Identity,
OFFSET,
>,
EndGetPartitionQuorumLossProgress: EndGetPartitionQuorumLossProgress::<Identity, OFFSET>,
BeginStartPartitionRestart: BeginStartPartitionRestart::<Identity, OFFSET>,
EndStartPartitionRestart: EndStartPartitionRestart::<Identity, OFFSET>,
BeginGetPartitionRestartProgress: BeginGetPartitionRestartProgress::<Identity, OFFSET>,
EndGetPartitionRestartProgress: EndGetPartitionRestartProgress::<Identity, OFFSET>,
BeginGetTestCommandStatusList: BeginGetTestCommandStatusList::<Identity, OFFSET>,
EndGetTestCommandStatusList: EndGetTestCommandStatusList::<Identity, OFFSET>,
BeginCancelTestCommand: BeginCancelTestCommand::<Identity, OFFSET>,
EndCancelTestCommand: EndCancelTestCommand::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricTestManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
impl windows_core::RuntimeName for IFabricTestManagementClient {}
windows_core::imp::define_interface!(
IFabricTestManagementClient2,
IFabricTestManagementClient2_Vtbl,
0x1222b1ff_ae51_43b3_bbdf_439e7f61ca1a
);
impl core::ops::Deref for IFabricTestManagementClient2 {
type Target = IFabricTestManagementClient;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricTestManagementClient2,
windows_core::IUnknown,
IFabricTestManagementClient
);
impl IFabricTestManagementClient2 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginStartChaos<P2>(
&self,
description: *const super::FabricTypes::FABRIC_START_CHAOS_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginStartChaos)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndStartChaos<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndStartChaos)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginStopChaos<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginStopChaos)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndStopChaos<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndStopChaos)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub unsafe fn BeginGetChaosReport<P2>(
&self,
getchaosreportdescription: *const super::FabricTypes::FABRIC_GET_CHAOS_REPORT_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetChaosReport)(
windows_core::Interface::as_raw(self),
getchaosreportdescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetChaosReport<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricChaosReportResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetChaosReport)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricTestManagementClient2_Vtbl {
pub base__: IFabricTestManagementClient_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginStartChaos: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_START_CHAOS_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginStartChaos: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndStartChaos: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndStartChaos: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginStopChaos: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginStopChaos: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndStopChaos: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndStopChaos: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub BeginGetChaosReport: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_GET_CHAOS_REPORT_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
)))]
BeginGetChaosReport: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetChaosReport: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetChaosReport: usize,
}
unsafe impl Send for IFabricTestManagementClient2 {}
unsafe impl Sync for IFabricTestManagementClient2 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub trait IFabricTestManagementClient2_Impl: IFabricTestManagementClient_Impl {
fn BeginStartChaos(
&self,
description: *const super::FabricTypes::FABRIC_START_CHAOS_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndStartChaos(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginStopChaos(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndStopChaos(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetChaosReport(
&self,
getchaosreportdescription: *const super::FabricTypes::FABRIC_GET_CHAOS_REPORT_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetChaosReport(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricChaosReportResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
impl IFabricTestManagementClient2_Vtbl {
pub const fn new<Identity: IFabricTestManagementClient2_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginStartChaos<
Identity: IFabricTestManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_START_CHAOS_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient2_Impl::BeginStartChaos(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndStartChaos<
Identity: IFabricTestManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricTestManagementClient2_Impl::EndStartChaos(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginStopChaos<
Identity: IFabricTestManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient2_Impl::BeginStopChaos(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndStopChaos<
Identity: IFabricTestManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricTestManagementClient2_Impl::EndStopChaos(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetChaosReport<
Identity: IFabricTestManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
getchaosreportdescription : * const super::FabricTypes::FABRIC_GET_CHAOS_REPORT_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient2_Impl::BeginGetChaosReport(
this,
core::mem::transmute_copy(&getchaosreportdescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetChaosReport<
Identity: IFabricTestManagementClient2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient2_Impl::EndGetChaosReport(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricTestManagementClient_Vtbl::new::<Identity, OFFSET>(),
BeginStartChaos: BeginStartChaos::<Identity, OFFSET>,
EndStartChaos: EndStartChaos::<Identity, OFFSET>,
BeginStopChaos: BeginStopChaos::<Identity, OFFSET>,
EndStopChaos: EndStopChaos::<Identity, OFFSET>,
BeginGetChaosReport: BeginGetChaosReport::<Identity, OFFSET>,
EndGetChaosReport: EndGetChaosReport::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricTestManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricTestManagementClient as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
impl windows_core::RuntimeName for IFabricTestManagementClient2 {}
windows_core::imp::define_interface!(
IFabricTestManagementClient3,
IFabricTestManagementClient3_Vtbl,
0xa4b94afd_0cb5_4010_8995_e58e9b6ca373
);
impl core::ops::Deref for IFabricTestManagementClient3 {
type Target = IFabricTestManagementClient2;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricTestManagementClient3,
windows_core::IUnknown,
IFabricTestManagementClient,
IFabricTestManagementClient2
);
impl IFabricTestManagementClient3 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginStartNodeTransition<P2>(
&self,
description: *const super::FabricTypes::FABRIC_NODE_TRANSITION_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginStartNodeTransition)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndStartNodeTransition<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndStartNodeTransition)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginGetNodeTransitionProgress<P2>(
&self,
operationid: super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetNodeTransitionProgress)(
windows_core::Interface::as_raw(self),
operationid,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetNodeTransitionProgress<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricNodeTransitionProgressResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetNodeTransitionProgress)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricTestManagementClient3_Vtbl {
pub base__: IFabricTestManagementClient2_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginStartNodeTransition: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_NODE_TRANSITION_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginStartNodeTransition: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndStartNodeTransition: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndStartNodeTransition: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginGetNodeTransitionProgress: unsafe extern "system" fn(
*mut core::ffi::c_void,
super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginGetNodeTransitionProgress: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetNodeTransitionProgress: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetNodeTransitionProgress: usize,
}
unsafe impl Send for IFabricTestManagementClient3 {}
unsafe impl Sync for IFabricTestManagementClient3 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub trait IFabricTestManagementClient3_Impl: IFabricTestManagementClient2_Impl {
fn BeginStartNodeTransition(
&self,
description: *const super::FabricTypes::FABRIC_NODE_TRANSITION_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndStartNodeTransition(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetNodeTransitionProgress(
&self,
operationid: &super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetNodeTransitionProgress(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricNodeTransitionProgressResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
impl IFabricTestManagementClient3_Vtbl {
pub const fn new<Identity: IFabricTestManagementClient3_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginStartNodeTransition<
Identity: IFabricTestManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_NODE_TRANSITION_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient3_Impl::BeginStartNodeTransition(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndStartNodeTransition<
Identity: IFabricTestManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricTestManagementClient3_Impl::EndStartNodeTransition(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetNodeTransitionProgress<
Identity: IFabricTestManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
operationid: super::FabricTypes::FABRIC_TEST_COMMAND_OPERATION_ID,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient3_Impl::BeginGetNodeTransitionProgress(
this,
core::mem::transmute(&operationid),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetNodeTransitionProgress<
Identity: IFabricTestManagementClient3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient3_Impl::EndGetNodeTransitionProgress(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricTestManagementClient2_Vtbl::new::<Identity, OFFSET>(),
BeginStartNodeTransition: BeginStartNodeTransition::<Identity, OFFSET>,
EndStartNodeTransition: EndStartNodeTransition::<Identity, OFFSET>,
BeginGetNodeTransitionProgress: BeginGetNodeTransitionProgress::<Identity, OFFSET>,
EndGetNodeTransitionProgress: EndGetNodeTransitionProgress::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricTestManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricTestManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricTestManagementClient2 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
impl windows_core::RuntimeName for IFabricTestManagementClient3 {}
windows_core::imp::define_interface!(
IFabricTestManagementClient4,
IFabricTestManagementClient4_Vtbl,
0xb96aa7d4_acc0_4814_89dc_561b0cbb6028
);
impl core::ops::Deref for IFabricTestManagementClient4 {
type Target = IFabricTestManagementClient3;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricTestManagementClient4,
windows_core::IUnknown,
IFabricTestManagementClient,
IFabricTestManagementClient2,
IFabricTestManagementClient3
);
impl IFabricTestManagementClient4 {
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetChaos<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetChaos)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetChaos<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricChaosDescriptionResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetChaos)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn BeginGetChaosSchedule<P1>(
&self,
timeoutmilliseconds: u32,
callback: P1,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P1: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetChaosSchedule)(
windows_core::Interface::as_raw(self),
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetChaosSchedule<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricChaosScheduleDescriptionResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetChaosSchedule)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub unsafe fn BeginSetChaosSchedule<P2>(
&self,
setchaosscheduledescription : * const super::FabricTypes::FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginSetChaosSchedule)(
windows_core::Interface::as_raw(self),
setchaosscheduledescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndSetChaosSchedule<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndSetChaosSchedule)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub unsafe fn BeginGetChaosEvents<P2>(
&self,
chaoseventsdescription: *const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginGetChaosEvents)(
windows_core::Interface::as_raw(self),
chaoseventsdescription,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndGetChaosEvents<P0>(
&self,
context: P0,
) -> windows_core::Result<IFabricChaosEventsSegmentResult>
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).EndGetChaosEvents)(
windows_core::Interface::as_raw(self),
context.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricTestManagementClient4_Vtbl {
pub base__: IFabricTestManagementClient3_Vtbl,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetChaos: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetChaos: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetChaos: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetChaos: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub BeginGetChaosSchedule: unsafe extern "system" fn(
*mut core::ffi::c_void,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
BeginGetChaosSchedule: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetChaosSchedule: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetChaosSchedule: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub BeginSetChaosSchedule: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
)))]
BeginSetChaosSchedule: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndSetChaosSchedule: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndSetChaosSchedule: usize,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub BeginGetChaosEvents: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
)))]
BeginGetChaosEvents: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndGetChaosEvents: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndGetChaosEvents: usize,
}
unsafe impl Send for IFabricTestManagementClient4 {}
unsafe impl Sync for IFabricTestManagementClient4 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub trait IFabricTestManagementClient4_Impl: IFabricTestManagementClient3_Impl {
fn BeginGetChaos(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetChaos(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricChaosDescriptionResult>;
fn BeginGetChaosSchedule(
&self,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetChaosSchedule(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricChaosScheduleDescriptionResult>;
fn BeginSetChaosSchedule(
&self,
setchaosscheduledescription : * const super::FabricTypes::FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndSetChaosSchedule(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
fn BeginGetChaosEvents(
&self,
chaoseventsdescription: *const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndGetChaosEvents(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<IFabricChaosEventsSegmentResult>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
impl IFabricTestManagementClient4_Vtbl {
pub const fn new<Identity: IFabricTestManagementClient4_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginGetChaos<
Identity: IFabricTestManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient4_Impl::BeginGetChaos(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetChaos<
Identity: IFabricTestManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient4_Impl::EndGetChaos(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginGetChaosSchedule<
Identity: IFabricTestManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient4_Impl::BeginGetChaosSchedule(
this,
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetChaosSchedule<
Identity: IFabricTestManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient4_Impl::EndGetChaosSchedule(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn BeginSetChaosSchedule<
Identity: IFabricTestManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
setchaosscheduledescription : * const super::FabricTypes::FABRIC_CHAOS_SERVICE_SCHEDULE_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient4_Impl::BeginSetChaosSchedule(
this,
core::mem::transmute_copy(&setchaosscheduledescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndSetChaosSchedule<
Identity: IFabricTestManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricTestManagementClient4_Impl::EndSetChaosSchedule(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
unsafe extern "system" fn BeginGetChaosEvents<
Identity: IFabricTestManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
chaoseventsdescription : * const super::FabricTypes::FABRIC_CHAOS_EVENTS_SEGMENT_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient4_Impl::BeginGetChaosEvents(
this,
core::mem::transmute_copy(&chaoseventsdescription),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndGetChaosEvents<
Identity: IFabricTestManagementClient4_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
result: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient4_Impl::EndGetChaosEvents(
this,
core::mem::transmute_copy(&context),
) {
Ok(ok__) => {
result.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: IFabricTestManagementClient3_Vtbl::new::<Identity, OFFSET>(),
BeginGetChaos: BeginGetChaos::<Identity, OFFSET>,
EndGetChaos: EndGetChaos::<Identity, OFFSET>,
BeginGetChaosSchedule: BeginGetChaosSchedule::<Identity, OFFSET>,
EndGetChaosSchedule: EndGetChaosSchedule::<Identity, OFFSET>,
BeginSetChaosSchedule: BeginSetChaosSchedule::<Identity, OFFSET>,
EndSetChaosSchedule: EndSetChaosSchedule::<Identity, OFFSET>,
BeginGetChaosEvents: BeginGetChaosEvents::<Identity, OFFSET>,
EndGetChaosEvents: EndGetChaosEvents::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricTestManagementClient4 as windows_core::Interface>::IID
|| iid == &<IFabricTestManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricTestManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricTestManagementClient3 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
impl windows_core::RuntimeName for IFabricTestManagementClient4 {}
windows_core::imp::define_interface!(
IFabricTestManagementClient5,
IFabricTestManagementClient5_Vtbl,
0x227a607c_16d9_46f8_b005_77275921a301
);
impl core::ops::Deref for IFabricTestManagementClient5 {
type Target = IFabricTestManagementClient4;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricTestManagementClient5,
windows_core::IUnknown,
IFabricTestManagementClient,
IFabricTestManagementClient2,
IFabricTestManagementClient3,
IFabricTestManagementClient4
);
impl IFabricTestManagementClient5 {
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub unsafe fn BeginStartNodePoison<P2>(
&self,
description: *const super::FabricTypes::FABRIC_START_NODE_POISON_DESCRIPTION,
timeoutmilliseconds: u32,
callback: P2,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>
where
P2: windows_core::Param<super::FabricCommon::IFabricAsyncOperationCallback>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).BeginStartNodePoison)(
windows_core::Interface::as_raw(self),
description,
timeoutmilliseconds,
callback.param().abi(),
&mut result__,
)
.and_then(|| windows_core::imp::Type::from_abi(result__))
}
}
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub unsafe fn EndStartNodePoison<P0>(&self, context: P0) -> windows_core::HRESULT
where
P0: windows_core::Param<super::FabricCommon::IFabricAsyncOperationContext>,
{
unsafe {
(windows_core::Interface::vtable(self).EndStartNodePoison)(
windows_core::Interface::as_raw(self),
context.param().abi(),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricTestManagementClient5_Vtbl {
pub base__: IFabricTestManagementClient4_Vtbl,
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
))]
pub BeginStartNodePoison: unsafe extern "system" fn(
*mut core::ffi::c_void,
*const super::FabricTypes::FABRIC_START_NODE_POISON_DESCRIPTION,
u32,
*mut core::ffi::c_void,
*mut *mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes"
)))]
BeginStartNodePoison: usize,
#[cfg(feature = "ServiceFabric_FabricCommon")]
pub EndStartNodePoison: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricCommon"))]
EndStartNodePoison: usize,
}
unsafe impl Send for IFabricTestManagementClient5 {}
unsafe impl Sync for IFabricTestManagementClient5 {}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
pub trait IFabricTestManagementClient5_Impl: IFabricTestManagementClient4_Impl {
fn BeginStartNodePoison(
&self,
description: *const super::FabricTypes::FABRIC_START_NODE_POISON_DESCRIPTION,
timeoutmilliseconds: u32,
callback: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationCallback>,
) -> windows_core::Result<super::FabricCommon::IFabricAsyncOperationContext>;
fn EndStartNodePoison(
&self,
context: windows_core::Ref<super::FabricCommon::IFabricAsyncOperationContext>,
) -> windows_core::Result<()>;
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
impl IFabricTestManagementClient5_Vtbl {
pub const fn new<Identity: IFabricTestManagementClient5_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn BeginStartNodePoison<
Identity: IFabricTestManagementClient5_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
description: *const super::FabricTypes::FABRIC_START_NODE_POISON_DESCRIPTION,
timeoutmilliseconds: u32,
callback: *mut core::ffi::c_void,
context: *mut *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricTestManagementClient5_Impl::BeginStartNodePoison(
this,
core::mem::transmute_copy(&description),
core::mem::transmute_copy(&timeoutmilliseconds),
core::mem::transmute_copy(&callback),
) {
Ok(ok__) => {
context.write(core::mem::transmute(ok__));
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn EndStartNodePoison<
Identity: IFabricTestManagementClient5_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
context: *mut core::ffi::c_void,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricTestManagementClient5_Impl::EndStartNodePoison(
this,
core::mem::transmute_copy(&context),
)
.into()
}
}
Self {
base__: IFabricTestManagementClient4_Vtbl::new::<Identity, OFFSET>(),
BeginStartNodePoison: BeginStartNodePoison::<Identity, OFFSET>,
EndStartNodePoison: EndStartNodePoison::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricTestManagementClient5 as windows_core::Interface>::IID
|| iid == &<IFabricTestManagementClient as windows_core::Interface>::IID
|| iid == &<IFabricTestManagementClient2 as windows_core::Interface>::IID
|| iid == &<IFabricTestManagementClient3 as windows_core::Interface>::IID
|| iid == &<IFabricTestManagementClient4 as windows_core::Interface>::IID
}
}
#[cfg(all(
feature = "ServiceFabric_FabricCommon",
feature = "ServiceFabric_FabricTypes",
feature = "Win32"
))]
impl windows_core::RuntimeName for IFabricTestManagementClient5 {}
windows_core::imp::define_interface!(
IFabricUpdatePartitionLoadResult,
IFabricUpdatePartitionLoadResult_Vtbl,
0x4d2f3a32_864a_428b_8766_83a97f2c6a04
);
windows_core::imp::interface_hierarchy!(IFabricUpdatePartitionLoadResult, windows_core::IUnknown);
impl IFabricUpdatePartitionLoadResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_UpdatePartitionLoad(
&self,
) -> *const super::FabricTypes::FABRIC_UPDATE_PARTITION_LOAD_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_UpdatePartitionLoad)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricUpdatePartitionLoadResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_UpdatePartitionLoad : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_UPDATE_PARTITION_LOAD_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_UpdatePartitionLoad : usize , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_PagingStatus : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PAGING_STATUS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_PagingStatus : usize , }
unsafe impl Send for IFabricUpdatePartitionLoadResult {}
unsafe impl Sync for IFabricUpdatePartitionLoadResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricUpdatePartitionLoadResult_Impl: windows_core::IUnknownImpl {
fn get_UpdatePartitionLoad(
&self,
) -> *const super::FabricTypes::FABRIC_UPDATE_PARTITION_LOAD_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricUpdatePartitionLoadResult_Vtbl {
pub const fn new<Identity: IFabricUpdatePartitionLoadResult_Impl, const OFFSET: isize>() -> Self
{
unsafe extern "system" fn get_UpdatePartitionLoad<
Identity: IFabricUpdatePartitionLoadResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_UPDATE_PARTITION_LOAD_QUERY_RESULT_LIST {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricUpdatePartitionLoadResult_Impl::get_UpdatePartitionLoad(this)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricUpdatePartitionLoadResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricUpdatePartitionLoadResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_UpdatePartitionLoad: get_UpdatePartitionLoad::<Identity, OFFSET>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricUpdatePartitionLoadResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricUpdatePartitionLoadResult {}
windows_core::imp::define_interface!(
IFabricUpdatePartitionMoveCostResult,
IFabricUpdatePartitionMoveCostResult_Vtbl,
0xa9f66db9_852b_4c22_a2ca_f50e9a86690d
);
windows_core::imp::interface_hierarchy!(
IFabricUpdatePartitionMoveCostResult,
windows_core::IUnknown
);
impl IFabricUpdatePartitionMoveCostResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_UpdatePartitionMoveCost(
&self,
) -> *const super::FabricTypes::FABRIC_UPDATE_PARTITION_MOVE_COST_QUERY_RESULT_LIST {
unsafe {
(windows_core::Interface::vtable(self).get_UpdatePartitionMoveCost)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
(windows_core::Interface::vtable(self).get_PagingStatus)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricUpdatePartitionMoveCostResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_UpdatePartitionMoveCost : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_UPDATE_PARTITION_MOVE_COST_QUERY_RESULT_LIST , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_UpdatePartitionMoveCost : usize , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_PagingStatus : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_PAGING_STATUS , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_PagingStatus : usize , }
unsafe impl Send for IFabricUpdatePartitionMoveCostResult {}
unsafe impl Sync for IFabricUpdatePartitionMoveCostResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricUpdatePartitionMoveCostResult_Impl: windows_core::IUnknownImpl {
fn get_UpdatePartitionMoveCost(
&self,
) -> *const super::FabricTypes::FABRIC_UPDATE_PARTITION_MOVE_COST_QUERY_RESULT_LIST;
fn get_PagingStatus(&self) -> *const super::FabricTypes::FABRIC_PAGING_STATUS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricUpdatePartitionMoveCostResult_Vtbl {
pub const fn new<Identity: IFabricUpdatePartitionMoveCostResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_UpdatePartitionMoveCost<
Identity: IFabricUpdatePartitionMoveCostResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_UPDATE_PARTITION_MOVE_COST_QUERY_RESULT_LIST
{
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricUpdatePartitionMoveCostResult_Impl::get_UpdatePartitionMoveCost(this)
}
}
unsafe extern "system" fn get_PagingStatus<
Identity: IFabricUpdatePartitionMoveCostResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_PAGING_STATUS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricUpdatePartitionMoveCostResult_Impl::get_PagingStatus(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_UpdatePartitionMoveCost: get_UpdatePartitionMoveCost::<Identity, OFFSET>,
get_PagingStatus: get_PagingStatus::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricUpdatePartitionMoveCostResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricUpdatePartitionMoveCostResult {}
windows_core::imp::define_interface!(
IFabricUpgradeOrchestrationServiceStateResult,
IFabricUpgradeOrchestrationServiceStateResult_Vtbl,
0x413968aa_2eb7_4023_b9dc_0f2160b76a6d
);
windows_core::imp::interface_hierarchy!(
IFabricUpgradeOrchestrationServiceStateResult,
windows_core::IUnknown
);
impl IFabricUpgradeOrchestrationServiceStateResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_State(
&self,
) -> *const super::FabricTypes::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE {
unsafe {
(windows_core::Interface::vtable(self).get_State)(windows_core::Interface::as_raw(self))
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricUpgradeOrchestrationServiceStateResult_Vtbl { pub base__ : windows_core::IUnknown_Vtbl , # [cfg (feature = "ServiceFabric_FabricTypes")] pub get_State : unsafe extern "system" fn (* mut core::ffi::c_void ,) -> * const super::FabricTypes::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE , # [cfg (not (feature = "ServiceFabric_FabricTypes"))] get_State : usize , }
unsafe impl Send for IFabricUpgradeOrchestrationServiceStateResult {}
unsafe impl Sync for IFabricUpgradeOrchestrationServiceStateResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricUpgradeOrchestrationServiceStateResult_Impl: windows_core::IUnknownImpl {
fn get_State(&self) -> *const super::FabricTypes::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricUpgradeOrchestrationServiceStateResult_Vtbl {
pub const fn new<
Identity: IFabricUpgradeOrchestrationServiceStateResult_Impl,
const OFFSET: isize,
>() -> Self {
unsafe extern "system" fn get_State<
Identity: IFabricUpgradeOrchestrationServiceStateResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_UPGRADE_ORCHESTRATION_SERVICE_STATE {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricUpgradeOrchestrationServiceStateResult_Impl::get_State(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_State: get_State::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricUpgradeOrchestrationServiceStateResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricUpgradeOrchestrationServiceStateResult {}
windows_core::imp::define_interface!(
IFabricUpgradeProgressResult,
IFabricUpgradeProgressResult_Vtbl,
0x2adb07db_f7db_4621_9afc_daabe1e53bf8
);
windows_core::imp::interface_hierarchy!(IFabricUpgradeProgressResult, windows_core::IUnknown);
impl IFabricUpgradeProgressResult {
pub unsafe fn get_TargetCodeVersion(&self) -> windows_core::PCWSTR {
unsafe {
(windows_core::Interface::vtable(self).get_TargetCodeVersion)(
windows_core::Interface::as_raw(self),
)
}
}
pub unsafe fn get_TargetConfigVersion(&self) -> windows_core::PCWSTR {
unsafe {
(windows_core::Interface::vtable(self).get_TargetConfigVersion)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_UpgradeState(&self) -> super::FabricTypes::FABRIC_UPGRADE_STATE {
unsafe {
(windows_core::Interface::vtable(self).get_UpgradeState)(
windows_core::Interface::as_raw(self),
)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn GetUpgradeDomains(
&self,
itemcount: *mut u32,
) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetUpgradeDomains)(
windows_core::Interface::as_raw(self),
itemcount as _,
&mut result__,
)
.map(|| result__)
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn GetChangedUpgradeDomains<P0>(
&self,
previousprogress: P0,
itemcount: *mut u32,
) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>
where
P0: windows_core::Param<Self>,
{
unsafe {
let mut result__ = core::mem::zeroed();
(windows_core::Interface::vtable(self).GetChangedUpgradeDomains)(
windows_core::Interface::as_raw(self),
previousprogress.param().abi(),
itemcount as _,
&mut result__,
)
.map(|| result__)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricUpgradeProgressResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
pub get_TargetCodeVersion:
unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR,
pub get_TargetConfigVersion:
unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_UpgradeState: unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> super::FabricTypes::FABRIC_UPGRADE_STATE,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_UpgradeState: usize,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub GetUpgradeDomains: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut u32,
*mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
GetUpgradeDomains: usize,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub GetChangedUpgradeDomains: unsafe extern "system" fn(
*mut core::ffi::c_void,
*mut core::ffi::c_void,
*mut u32,
*mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION,
) -> windows_core::HRESULT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
GetChangedUpgradeDomains: usize,
}
unsafe impl Send for IFabricUpgradeProgressResult {}
unsafe impl Sync for IFabricUpgradeProgressResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricUpgradeProgressResult_Impl: windows_core::IUnknownImpl {
fn get_TargetCodeVersion(&self) -> windows_core::PCWSTR;
fn get_TargetConfigVersion(&self) -> windows_core::PCWSTR;
fn get_UpgradeState(&self) -> super::FabricTypes::FABRIC_UPGRADE_STATE;
fn GetUpgradeDomains(
&self,
itemcount: *mut u32,
) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>;
fn GetChangedUpgradeDomains(
&self,
previousprogress: windows_core::Ref<IFabricUpgradeProgressResult>,
itemcount: *mut u32,
) -> windows_core::Result<*mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION>;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricUpgradeProgressResult_Vtbl {
pub const fn new<Identity: IFabricUpgradeProgressResult_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_TargetCodeVersion<
Identity: IFabricUpgradeProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> windows_core::PCWSTR {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricUpgradeProgressResult_Impl::get_TargetCodeVersion(this)
}
}
unsafe extern "system" fn get_TargetConfigVersion<
Identity: IFabricUpgradeProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> windows_core::PCWSTR {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricUpgradeProgressResult_Impl::get_TargetConfigVersion(this)
}
}
unsafe extern "system" fn get_UpgradeState<
Identity: IFabricUpgradeProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> super::FabricTypes::FABRIC_UPGRADE_STATE {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricUpgradeProgressResult_Impl::get_UpgradeState(this)
}
}
unsafe extern "system" fn GetUpgradeDomains<
Identity: IFabricUpgradeProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
itemcount: *mut u32,
buffereditems: *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricUpgradeProgressResult_Impl::GetUpgradeDomains(
this,
core::mem::transmute_copy(&itemcount),
) {
Ok(ok__) => {
buffereditems.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
unsafe extern "system" fn GetChangedUpgradeDomains<
Identity: IFabricUpgradeProgressResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
previousprogress: *mut core::ffi::c_void,
itemcount: *mut u32,
buffereditems: *mut *mut super::FabricTypes::FABRIC_UPGRADE_DOMAIN_STATUS_DESCRIPTION,
) -> windows_core::HRESULT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
match IFabricUpgradeProgressResult_Impl::GetChangedUpgradeDomains(
this,
core::mem::transmute_copy(&previousprogress),
core::mem::transmute_copy(&itemcount),
) {
Ok(ok__) => {
buffereditems.write(ok__);
windows_core::HRESULT(0)
}
Err(err) => err.into(),
}
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_TargetCodeVersion: get_TargetCodeVersion::<Identity, OFFSET>,
get_TargetConfigVersion: get_TargetConfigVersion::<Identity, OFFSET>,
get_UpgradeState: get_UpgradeState::<Identity, OFFSET>,
GetUpgradeDomains: GetUpgradeDomains::<Identity, OFFSET>,
GetChangedUpgradeDomains: GetChangedUpgradeDomains::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricUpgradeProgressResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricUpgradeProgressResult {}
windows_core::imp::define_interface!(
IFabricUpgradeProgressResult2,
IFabricUpgradeProgressResult2_Vtbl,
0x9cc0aaf3_0f6c_40a3_85ac_38338dd36d75
);
impl core::ops::Deref for IFabricUpgradeProgressResult2 {
type Target = IFabricUpgradeProgressResult;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricUpgradeProgressResult2,
windows_core::IUnknown,
IFabricUpgradeProgressResult
);
impl IFabricUpgradeProgressResult2 {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_RollingUpgradeMode(&self) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE {
unsafe {
(windows_core::Interface::vtable(self).get_RollingUpgradeMode)(
windows_core::Interface::as_raw(self),
)
}
}
pub unsafe fn get_NextUpgradeDomain(&self) -> windows_core::PCWSTR {
unsafe {
(windows_core::Interface::vtable(self).get_NextUpgradeDomain)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricUpgradeProgressResult2_Vtbl {
pub base__: IFabricUpgradeProgressResult_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_RollingUpgradeMode:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_RollingUpgradeMode: usize,
pub get_NextUpgradeDomain:
unsafe extern "system" fn(*mut core::ffi::c_void) -> windows_core::PCWSTR,
}
unsafe impl Send for IFabricUpgradeProgressResult2 {}
unsafe impl Sync for IFabricUpgradeProgressResult2 {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricUpgradeProgressResult2_Impl: IFabricUpgradeProgressResult_Impl {
fn get_RollingUpgradeMode(&self) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE;
fn get_NextUpgradeDomain(&self) -> windows_core::PCWSTR;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricUpgradeProgressResult2_Vtbl {
pub const fn new<Identity: IFabricUpgradeProgressResult2_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_RollingUpgradeMode<
Identity: IFabricUpgradeProgressResult2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> super::FabricTypes::FABRIC_ROLLING_UPGRADE_MODE {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricUpgradeProgressResult2_Impl::get_RollingUpgradeMode(this)
}
}
unsafe extern "system" fn get_NextUpgradeDomain<
Identity: IFabricUpgradeProgressResult2_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> windows_core::PCWSTR {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricUpgradeProgressResult2_Impl::get_NextUpgradeDomain(this)
}
}
Self {
base__: IFabricUpgradeProgressResult_Vtbl::new::<Identity, OFFSET>(),
get_RollingUpgradeMode: get_RollingUpgradeMode::<Identity, OFFSET>,
get_NextUpgradeDomain: get_NextUpgradeDomain::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricUpgradeProgressResult2 as windows_core::Interface>::IID
|| iid == &<IFabricUpgradeProgressResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricUpgradeProgressResult2 {}
windows_core::imp::define_interface!(
IFabricUpgradeProgressResult3,
IFabricUpgradeProgressResult3_Vtbl,
0xdc3346ef_d2ef_40c1_807b_1ca8d2388b47
);
impl core::ops::Deref for IFabricUpgradeProgressResult3 {
type Target = IFabricUpgradeProgressResult2;
fn deref(&self) -> &Self::Target {
unsafe { core::mem::transmute(self) }
}
}
windows_core::imp::interface_hierarchy!(
IFabricUpgradeProgressResult3,
windows_core::IUnknown,
IFabricUpgradeProgressResult,
IFabricUpgradeProgressResult2
);
impl IFabricUpgradeProgressResult3 {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_UpgradeProgress(&self) -> *const super::FabricTypes::FABRIC_UPGRADE_PROGRESS {
unsafe {
(windows_core::Interface::vtable(self).get_UpgradeProgress)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricUpgradeProgressResult3_Vtbl {
pub base__: IFabricUpgradeProgressResult2_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_UpgradeProgress:
unsafe extern "system" fn(
*mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_UPGRADE_PROGRESS,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_UpgradeProgress: usize,
}
unsafe impl Send for IFabricUpgradeProgressResult3 {}
unsafe impl Sync for IFabricUpgradeProgressResult3 {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricUpgradeProgressResult3_Impl: IFabricUpgradeProgressResult2_Impl {
fn get_UpgradeProgress(&self) -> *const super::FabricTypes::FABRIC_UPGRADE_PROGRESS;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricUpgradeProgressResult3_Vtbl {
pub const fn new<Identity: IFabricUpgradeProgressResult3_Impl, const OFFSET: isize>() -> Self {
unsafe extern "system" fn get_UpgradeProgress<
Identity: IFabricUpgradeProgressResult3_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> *const super::FabricTypes::FABRIC_UPGRADE_PROGRESS {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricUpgradeProgressResult3_Impl::get_UpgradeProgress(this)
}
}
Self {
base__: IFabricUpgradeProgressResult2_Vtbl::new::<Identity, OFFSET>(),
get_UpgradeProgress: get_UpgradeProgress::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricUpgradeProgressResult3 as windows_core::Interface>::IID
|| iid == &<IFabricUpgradeProgressResult as windows_core::Interface>::IID
|| iid == &<IFabricUpgradeProgressResult2 as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricUpgradeProgressResult3 {}
windows_core::imp::define_interface!(
IFabricValidateFabricUpgradeResult,
IFabricValidateFabricUpgradeResult_Vtbl,
0xd3476a8f_77e2_41eb_bd46_4749620ce017
);
windows_core::imp::interface_hierarchy!(IFabricValidateFabricUpgradeResult, windows_core::IUnknown);
impl IFabricValidateFabricUpgradeResult {
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub unsafe fn get_ServiceHostUpgradeImpact(
&self,
) -> super::FabricTypes::FABRIC_SERVICE_HOST_UPGRADE_IMPACT {
unsafe {
(windows_core::Interface::vtable(self).get_ServiceHostUpgradeImpact)(
windows_core::Interface::as_raw(self),
)
}
}
}
#[repr(C)]
#[doc(hidden)]
pub struct IFabricValidateFabricUpgradeResult_Vtbl {
pub base__: windows_core::IUnknown_Vtbl,
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub get_ServiceHostUpgradeImpact:
unsafe extern "system" fn(
*mut core::ffi::c_void,
)
-> super::FabricTypes::FABRIC_SERVICE_HOST_UPGRADE_IMPACT,
#[cfg(not(feature = "ServiceFabric_FabricTypes"))]
get_ServiceHostUpgradeImpact: usize,
}
unsafe impl Send for IFabricValidateFabricUpgradeResult {}
unsafe impl Sync for IFabricValidateFabricUpgradeResult {}
#[cfg(feature = "ServiceFabric_FabricTypes")]
pub trait IFabricValidateFabricUpgradeResult_Impl: windows_core::IUnknownImpl {
fn get_ServiceHostUpgradeImpact(
&self,
) -> super::FabricTypes::FABRIC_SERVICE_HOST_UPGRADE_IMPACT;
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl IFabricValidateFabricUpgradeResult_Vtbl {
pub const fn new<Identity: IFabricValidateFabricUpgradeResult_Impl, const OFFSET: isize>()
-> Self {
unsafe extern "system" fn get_ServiceHostUpgradeImpact<
Identity: IFabricValidateFabricUpgradeResult_Impl,
const OFFSET: isize,
>(
this: *mut core::ffi::c_void,
) -> super::FabricTypes::FABRIC_SERVICE_HOST_UPGRADE_IMPACT {
unsafe {
let this: &Identity =
&*((this as *const *const ()).offset(OFFSET) as *const Identity);
IFabricValidateFabricUpgradeResult_Impl::get_ServiceHostUpgradeImpact(this)
}
}
Self {
base__: windows_core::IUnknown_Vtbl::new::<Identity, OFFSET>(),
get_ServiceHostUpgradeImpact: get_ServiceHostUpgradeImpact::<Identity, OFFSET>,
}
}
pub fn matches(iid: &windows_core::GUID) -> bool {
iid == &<IFabricValidateFabricUpgradeResult as windows_core::Interface>::IID
}
}
#[cfg(feature = "ServiceFabric_FabricTypes")]
impl windows_core::RuntimeName for IFabricValidateFabricUpgradeResult {}