| #[doc(hidden)] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
| pub struct IDeviceLockdownProfileInformation(::windows_core::IUnknown); |
| unsafe impl ::windows_core::Interface for IDeviceLockdownProfileInformation { |
| type Vtable = IDeviceLockdownProfileInformation_Vtbl; |
| } |
| unsafe impl ::windows_core::ComInterface for IDeviceLockdownProfileInformation { |
| const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x7980e14e_45b1_4a96_92fc_62756b739678); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IDeviceLockdownProfileInformation_Vtbl { |
| pub base__: ::windows_core::IInspectable_Vtbl, |
| pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows_core::HSTRING>) -> ::windows_core::HRESULT, |
| } |
| #[doc(hidden)] |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
| pub struct IDeviceLockdownProfileStatics(::windows_core::IUnknown); |
| unsafe impl ::windows_core::Interface for IDeviceLockdownProfileStatics { |
| type Vtable = IDeviceLockdownProfileStatics_Vtbl; |
| } |
| unsafe impl ::windows_core::ComInterface for IDeviceLockdownProfileStatics { |
| const IID: ::windows_core::GUID = ::windows_core::GUID::from_u128(0x622f6965_f9a8_41a1_a691_88cd80c7a069); |
| } |
| #[repr(C)] |
| #[doc(hidden)] |
| pub struct IDeviceLockdownProfileStatics_Vtbl { |
| pub base__: ::windows_core::IInspectable_Vtbl, |
| #[cfg(feature = "Foundation_Collections")] |
| pub GetSupportedLockdownProfiles: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
| #[cfg(not(feature = "Foundation_Collections"))] |
| GetSupportedLockdownProfiles: usize, |
| pub GetCurrentLockdownProfile: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows_core::GUID) -> ::windows_core::HRESULT, |
| #[cfg(feature = "Foundation")] |
| pub ApplyLockdownProfileAsync: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profileid: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
| #[cfg(not(feature = "Foundation"))] |
| ApplyLockdownProfileAsync: usize, |
| pub GetLockdownProfileInformation: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, profileid: ::windows_core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows_core::HRESULT, |
| } |
| pub struct DeviceLockdownProfile; |
| impl DeviceLockdownProfile { |
| #[doc = "Required features: `\"Foundation_Collections\"`"] |
| #[cfg(feature = "Foundation_Collections")] |
| pub fn GetSupportedLockdownProfiles() -> ::windows_core::Result<super::super::Foundation::Collections::IVectorView<::windows_core::GUID>> { |
| Self::IDeviceLockdownProfileStatics(|this| unsafe { |
| let mut result__ = ::std::mem::zeroed(); |
| (::windows_core::Interface::vtable(this).GetSupportedLockdownProfiles)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| }) |
| } |
| pub fn GetCurrentLockdownProfile() -> ::windows_core::Result<::windows_core::GUID> { |
| Self::IDeviceLockdownProfileStatics(|this| unsafe { |
| let mut result__ = ::std::mem::zeroed(); |
| (::windows_core::Interface::vtable(this).GetCurrentLockdownProfile)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| }) |
| } |
| #[doc = "Required features: `\"Foundation\"`"] |
| #[cfg(feature = "Foundation")] |
| pub fn ApplyLockdownProfileAsync(profileid: ::windows_core::GUID) -> ::windows_core::Result<super::super::Foundation::IAsyncAction> { |
| Self::IDeviceLockdownProfileStatics(|this| unsafe { |
| let mut result__ = ::std::mem::zeroed(); |
| (::windows_core::Interface::vtable(this).ApplyLockdownProfileAsync)(::windows_core::Interface::as_raw(this), profileid, &mut result__).from_abi(result__) |
| }) |
| } |
| pub fn GetLockdownProfileInformation(profileid: ::windows_core::GUID) -> ::windows_core::Result<DeviceLockdownProfileInformation> { |
| Self::IDeviceLockdownProfileStatics(|this| unsafe { |
| let mut result__ = ::std::mem::zeroed(); |
| (::windows_core::Interface::vtable(this).GetLockdownProfileInformation)(::windows_core::Interface::as_raw(this), profileid, &mut result__).from_abi(result__) |
| }) |
| } |
| #[doc(hidden)] |
| pub fn IDeviceLockdownProfileStatics<R, F: FnOnce(&IDeviceLockdownProfileStatics) -> ::windows_core::Result<R>>(callback: F) -> ::windows_core::Result<R> { |
| static SHARED: ::windows_core::imp::FactoryCache<DeviceLockdownProfile, IDeviceLockdownProfileStatics> = ::windows_core::imp::FactoryCache::new(); |
| SHARED.call(callback) |
| } |
| } |
| impl ::windows_core::RuntimeName for DeviceLockdownProfile { |
| const NAME: &'static str = "Windows.Embedded.DeviceLockdown.DeviceLockdownProfile"; |
| } |
| #[repr(transparent)] |
| #[derive(::core::cmp::PartialEq, ::core::cmp::Eq, ::core::fmt::Debug, ::core::clone::Clone)] |
| pub struct DeviceLockdownProfileInformation(::windows_core::IUnknown); |
| impl DeviceLockdownProfileInformation { |
| pub fn Name(&self) -> ::windows_core::Result<::windows_core::HSTRING> { |
| let this = self; |
| unsafe { |
| let mut result__ = ::std::mem::zeroed(); |
| (::windows_core::Interface::vtable(this).Name)(::windows_core::Interface::as_raw(this), &mut result__).from_abi(result__) |
| } |
| } |
| } |
| impl ::windows_core::RuntimeType for DeviceLockdownProfileInformation { |
| const SIGNATURE: ::windows_core::imp::ConstBuffer = ::windows_core::imp::ConstBuffer::from_slice(b"rc(Windows.Embedded.DeviceLockdown.DeviceLockdownProfileInformation;{7980e14e-45b1-4a96-92fc-62756b739678})"); |
| } |
| unsafe impl ::windows_core::Interface for DeviceLockdownProfileInformation { |
| type Vtable = IDeviceLockdownProfileInformation_Vtbl; |
| } |
| unsafe impl ::windows_core::ComInterface for DeviceLockdownProfileInformation { |
| const IID: ::windows_core::GUID = <IDeviceLockdownProfileInformation as ::windows_core::ComInterface>::IID; |
| } |
| impl ::windows_core::RuntimeName for DeviceLockdownProfileInformation { |
| const NAME: &'static str = "Windows.Embedded.DeviceLockdown.DeviceLockdownProfileInformation"; |
| } |
| ::windows_core::imp::interface_hierarchy!(DeviceLockdownProfileInformation, ::windows_core::IUnknown, ::windows_core::IInspectable); |
| unsafe impl ::core::marker::Send for DeviceLockdownProfileInformation {} |
| unsafe impl ::core::marker::Sync for DeviceLockdownProfileInformation {} |